Anyone interested on this part
EXT4 has journaling FS so it will be more fast I/0
Code:
ui_print("EXT4 script by LtHuNTer_StepheN");
ui_print("");
show_progress(1, 50);
ui_print("-> Formatting System To EXT4 ");
format("ext4", "MTD", "system");
ui_print("-> Formatting Cache To EXT4");
format("ext4", "MTD", "cache");
ui_print("-> Formatting Data To EXT4");
format("ext4", "MTD", "userdata");
ui_print("Finished");
for edititing necesary file
ask ur rom builder ok
LtHuNTer_StepheN said:
Anyone interested on this part
EXT4 has journaling FS so it will be more fast I/0
Click to expand...
Click to collapse
What???
WTF?!
Sent from my E15i using xda premium
LtHuNTer_StepheN said:
Anyone interested on this part
EXT4 has journaling FS so it will be more fast I/0
Click to expand...
Click to collapse
im to interest
n1kolaa said:
im to interest
Click to expand...
Click to collapse
I'm interested too, but what's this?
Sent from my E15i using xda premium
we can try to format system,data,cache with EXT4 filesystem
and use it
we need to edit init.rc (and some file) to mount system,data,cache as ext4
LtHuNTer_StepheN said:
Anyone interested on this part
EXT4 has journaling FS so it will be more fast I/0
Click to expand...
Click to collapse
http://www.thegeekstuff.com/2011/05/ext2-ext3-ext4/
Journaling is SLOWING DOWN writes and it destroy SD card faster!
rav3n_pl said:
http://www.thegeekstuff.com/2011/05/ext2-ext3-ext4/
Journaling is SLOWING DOWN writes and it destroy SD card faster!
Click to expand...
Click to collapse
no ur wrong
ur totaly wrong
here some code for you
Code:
tune2fs -o journal_data_writeback /block/path/to/system
tune2fs -O ^has_journal /block/path/to/system
tune2fs -o journal_data_writeback /block/path/to/cache
tune2fs -O ^has_journal /block/path/to/cache
tune2fs -o journal_data_writeback /block/path/to/data
tune2fs -O ^has_journal /block/path/to/data
this code remove some journalism
this will make I/0 faster
and sdcard ???
?????????????
O.k., so what and how can I do to have faster i/o?
Sent from my E15i using xda premium
LtHuNTer_StepheN said:
we can try to format system,data,cache with EXT4 filesystem
and use it
we need to edit init.rc (and some file) to mount system,data,cache as ext4
Click to expand...
Click to collapse
Okay, maybe you write down exact solution?
And what about CWM?
Update Script finished
still editing init.rc to mount system with ext4 file system
LtHuNTer_StepheN said:
Update Script finished
still editing init.rc to mount system with ext4 file system
Click to expand...
Click to collapse
But for safe I'll try that with a 2GB card, I don't want to destroy my 8GB ;D
Sent from my E15i using xda premium
Our X8 don't have emmc,but mtd(nand).Your script will not work.
I'm currently testing to see if this is something we can use.
alfsamsung said:
Our X8 don't have emmc,but mtd(nand).Your script will not work.
I'm currently testing to see if this is something we can use.
Click to expand...
Click to collapse
i think ext4 is the fastest i/0
update script changed
we need rom/kernel builder (i found kernel builder you)
just rom builder to edit necessary file
I have experience in this stuff, my former phone was a galaxy spica.
ext2 will be the fastest, ext4 is slower, ext3 is in middle.
For that phone the fs conversion did miracle in speed (stock fs is rfs).
I don't really know that this fs conversion will do something with this phone, but if it will do some plus I will try... but will wait for news on this
hey...I tried to implement that script in my rom and edited the init.rc to mount system and cache from the boot.img but my rom doesn't boot...
i changed the init.rc from this
Code:
mount yaffs2 [email protected] /system
mount yaffs2 [email protected] /system ro remount
mount yaffs2 [email protected] /data nosuid nodev
mount yaffs2 [email protected] /cache nosuid nodev
to this
Code:
mount ext4 [email protected] /system
mount ext4 [email protected] /system ro remount
mount ext4 [email protected] /data nosuid nodev
mount ext4 [email protected] /cache nosuid nodev
droidx8 said:
But for safe I'll try that with a 2GB card, I don't want to destroy my 8GB ;D
Sent from my E15i using xda premium
Click to expand...
Click to collapse
facepalm This mod is for internal storage, not external like sd.
Related
How to convert to EXT4 non-destructively from EXT3 for SD-EXT and Dalvik when you have activated A2SD chachesd and A2SD datasd?
EXT3 > EXT4
Easy. Don't convert. Ext4 spoils your card.
Sent from my GT-S5830 using XDA App
http://www.ibm.com/developerworks/linux/library/l-ext4/
is a good resource for this.
http://ext3vsext4.com/2011/06/ext4-compared-to-ext3/
Something else to read
http://gparted.sourceforge.net/
or try this.
Hope it helps.
Baracs said:
http://www.ibm.com/developerworks/linux/library/l-ext4/
is a good resource for this.
http://ext3vsext4.com/2011/06/ext4-compared-to-ext3/
Something else to read
http://gparted.sourceforge.net/
or try this.
Hope it helps.
Click to expand...
Click to collapse
I booted into Ubuntu Linux LiveCD then
Converting ext3 to ext4
If you are upgrading /dev/sda2 that is mounted as /home, from ext3 to ext4, do the following.
umount /dev/sda2
tune2fs -O extents,uninit_bg,dir_index /dev/sda2
e2fsck -pf /dev/sda2
mount /dev/sda2 /home
Again, try all of the above commands only on a test system, where you can afford to lose all your data.
Click to expand...
Click to collapse
from http://www.thegeekstuff.com/2011/05/ext2-ext3-ext4/
Although in Minitool Partition Wizard Home Edition, no matter how many times I refresh it, the EXT4 partition that shows as /dev/sdb2 in GParted always shows as EXT3. Maybe a program limitation?
Why?
consegregate said:
Easy. Don't convert. Ext4 spoils your card
Click to expand...
Click to collapse
Why does it spoil the card? Did it spoil your card with data=writeback (no journalling) mode or without?
Well, I've just had a complete corruption of my ext4 /sd-ext/ *with* journalling, and rebooting into recovery and using e2fsck on the unmounted partition couldn't fix the filesystem:
Code:
e2fsck: Invalid argument passed to ext2 library while rewriting block and inode bitmaps for /dev/block/mmcblk0p2
Not sure why ext2 library error occurs with e2fsck, but no way to fix, had to do a full recover of sd-ext using CWM...
I've not used ext2, but do note that cyanogenmod 7.2 always mounts /sd-ext/ as ext3, I suppose for a reason...
Can someone post the script that mount sdcard at boot?
I created a kernel but it doesn't mount sdcard at boot, it's possibile to create the script in system/etc/init.d that mount sdcard at boot?
Try busybox mount while booted to see if it's possible to mount SD Card with a script. SD card mounts automatically if it's FAT32 and it takes a little vold.fstab configuration for other file systems. You should check franco's or LG's kernel to see how to automount sd card from kernel.
This is taken from CM7, put it in init.d and see.
Turducken said:
This is taken from CM7, put it in init.d and see.
Click to expand...
Click to collapse
Thank you very much but what's that?
# set property with exit code in case an error occurs
setprop cm.e2fsck.errors $e2fsk_exitcode;
if [ "$e2fsk_exitcode" -lt 2 ];
then
# mount and set perms
$BB mount -o noatime,nodiratime,barrier=1 -t ext3 $SD_EXT_PART $SD_EXT_DIRECTORY;
if [ "$?" = 0 ];
then
$BB chown 1000:1000 $SD_EXT_DIRECTORY;
$BB chmod 771 $SD_EXT_DIRECTORY;
log -p i -t mountsd "$SD_EXT_DIRECTORY successfully mounted";
else
log -p e -t mountsd "Unable to mount filesystem for $SD_EXT_DIRECTORY!";
fi
else
log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
fi
Click to expand...
Click to collapse
EDIT: Mount This script sdcard?
#!/system/bin/sh
mount -o remount,ro -t yaffs2 /dev/block/mmcblk0
Click to expand...
Click to collapse
RE-EDIT: The CM7 script doesn't works, in the second reboot the sd wasn't mount
The CM7 script mounts a2sd apps (apps2sd script). The second one should be like
Code:
mount -o remount,r[b]w[/b] -t [b]fat32[/b] /dev/block/mmcblk0
. As I already said, it's probably a kernel problem, vold mounts sdcards automatically.
Cricco said:
Thank you very much but what's that?
Click to expand...
Click to collapse
That part of the script mounts an ext partition if one exists.
RE-EDIT: The CM7 script doesn't works, in the second reboot the sd wasn't mount
Click to expand...
Click to collapse
As Ianis G. Vasilev said there are various ways to mount the SD card but I suspect the issue is with the kernel you've compiled. Flash francos, if it mounts then your kernel is bad. Run logcat to see what's going on.
**EDIT**
I didn't see Ianis post before I began mine...
so with
mount -o remount,rw -t fat32 /dev/block/mmcblk0
Click to expand...
Click to collapse
the sd will be mount?
EDIT: I need a script that mount sd without write or read permission, infact if i use root explorer and I go to sdcard sometimes the sdcard folder is blank, so the sd didn't mount
Read permissions are needed to see what's on the sd card. For a read-only mount replace rw with ro:
Code:
mount -o remount,r[b]o[/b] -t fat32 /dev/block/mmcblk0
I would advice you to use dmesg(should be enabled in kernel) to see if your phone detects the card and logcat to see if any errors are preventing your card from mounting.
Now i create script
#!/system/bin/sh
mount -o remount,rw -t fat32 /dev/block/mmcblk0
mount -t vfat -o /dev/block/mmcblk0
Click to expand...
Click to collapse
is it correct?
hey all,
I had some BIG problems on my sdcard and I had to physically remove it to get my phone back to work,
I´ve been using an 8gb external sdcard as internal sd since then, so i had to make some changes on the systems I desired to use,but i had always founded a problem, I cant make my sd recognized by system as internal, at maximum as external, so i tried this boot script:
umount /mnt/emmc
mount -w -t vfat /dev/block/vold/179:3 /mnt/sdcard/external_sd
mount -w -t vfat /dev/block/vold/179:3 /sys/devices/platform/s3c-sdhci.2/mmc_host/mmc2
mount -w -t vfat /dev/block/vold/179:1 /mnt/sdcard
mount -w -t vfat /dev/block/vold/179:1 /mnt/secure/asec
mount -w -t tmpfs /dev/block/vold/179:1 /mnt/sdcard/.android_secure
mount -w -t vfat /dev/block/vold/179:1 /sys/devices/platform/s3c-sdhci.0/mmc_host/mmc0
and it makes my sdcard be reconized by some programs as internal an external (partitions1 and 3 as 2 is /data),but not for all as games from gameloft and some players for audio and video.
so I ask you a help or an idea so I can "hack" the system and make it works...(I use ICZEN 1.8.5)
thanks.
Check out the EU bug thread.
http://forum.xda-developers.com/showthread.php?p=24418319
Sent from my SGH-T959 using xda premium
samsgun357 said:
Check out the EU bug thread.
http://forum.xda-developers.com/showthread.php?p=24418319
Sent from my SGH-T959 using xda premium
Click to expand...
Click to collapse
tried commands on vold.fstab but it didnt work....
please help me with new ideas.......
Hallo, I want to know how I can switch the SD cards from external to internal in CM11?
I didn't find vold.fstab.
Thanks
SWTR said:
Hallo, I want to know how I can switch the SD cards from external to internal in CM11?
I didn't find vold.fstab.
Thanks
Click to expand...
Click to collapse
Since 10.2 I've done it by uncommenting the #persist in the Vold section toward the end of the build.prop but it isn't working for me in cm11. At least on my Moto Bionic that works. I still can't find a way but if you find out how I'd love to know.
Sent from my Bionic
bump also looking for solution
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
It ain't working
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Installed the Script manager,wrote the scripts but while executing it says no unmount command found....
vivin007 said:
Installed the Script manager,wrote the scripts but while executing it says no unmount command found....
Click to expand...
Click to collapse
What phone?
Samsung Galaxy Tab P1000
adx3660 said:
What phone?
Click to expand...
Click to collapse
P1000 Installed with Cm11 terecheng 25-12-2013.....
External to Internal sdcard app also is a no go.....its only a partial success
vivin007 said:
P1000 Installed with Cm11 terecheng 25-12-2013.....
External to Internal sdcard app also is a no go.....its only a partial success
Click to expand...
Click to collapse
I am sorry @vivin007 I don't have that device.. but I suggest you to double check the code that u typed in and try to ask in your device section the code and how to mount and unmount sd.. I am really2 sorry..
Up!
Sorry, but also looking for a better solution than linking!
I am currently trying this http://forum.xda-developers.com/showpost.php?p=48876834&postcount=472
so far so good but havent tested it much, i think games run slower..
No Problem dude
adx3660 said:
I am sorry @vivin007 I don't have that device.. but I suggest you to double check the code that u typed in and try to ask in your device section the code and how to mount and unmount sd.. I am really2 sorry..
Click to expand...
Click to collapse
Ha ha ha ....No Problem dude...You did a great Job helping me!
BTW Wish you a Happy New Year....
Will find a Solution....
vivin007 said:
Ha ha ha ....No Problem dude...You did a great Job helping me!
BTW Wish you a Happy New Year....
Will find a Solution....
Click to expand...
Click to collapse
Happy New Year too.. don't forget to share if u find a solution,,
Found it for P1/L/N Tab
adx3660 said:
Happy New Year too.. don't forget to share if u find a solution,,
Click to expand...
Click to collapse
Got Sd switched @adx3660 dude for P1/L/N Tab after Requesting such a feature with the Terenceng dev in his CM11 Roms, he was kind enough to build it for me.
He has asked me to test it, I am going to do it Now.
Folder mount
Gesendet von meinem Xperia SP
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Thanks, this worked on my galaxy ace plus! But having unmount before mount threw some error like device is busy or something, works if I just have the mount command.
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Cant execute those commands with terminal?
TecknoFreak said:
Cant execute those commands with terminal?
Click to expand...
Click to collapse
Why not give it a test.. :good:
p/s: I am not responsible for anything happen while / when you using this script..
Guys Im a newbie here but Ive been looking for a way to swap my Galaxy Tab 2 7'0's (running CM11 ) external sd with the internal memory. ive tried several scripts and guides but I just cant seem to find a solution. Is there a memory swap mod made for it or can anyone help me with that.
Hi can u help me? how to swap memory with 2.5 build.. i have some trouble with that.. (newbie here )
Hi, did anybody tried a sdcard with a fat and ext4 partition? I'm getting error "could not create target file" while writing to ext4.
I followed these steps:
Parted sdcard with parted from CWM Recovery. SDcard is ADATA MicroSDHC 64GB =2GB Fat, 62 GB EXT4
Code:
umount /storage/sdcard1
parted /dev/block/mmcblk1
mklabel
msdos
unit MB
print
mkpartfs primary fat32 0 2048
mkpartfs primary ext2 2048 67109
print
quit
Update FS to EXT4:
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk1p2
Set Journal to writeback mode:
Code:
tune2fs -O ^has_journal /dev/block/mmcblk1p2
tune2fs -o journal_data_writeback /dev/block/mmcblk1p2
Check FS:
Code:
e2fsck -f /dev/block/mmcblk1p2
Mount:
Code:
mount -t ext4 -o rw,nosuid,nodev,nodiratime,noatime,data=writeback,barrier=0,journal_checksum /dev/block/mmcblk1p2 /storage/sdcard1
Now when I copy from Internal sd to ext4, write error appear. Any solution?
Device: THL T100S
Chip: MTK 6592
Ram: 2GB
Android: 4.2.2
Rooted, Insecure boot.img
tony753 said:
Hi, did anybody tried a sdcard with a fat and ext4 partition? I'm getting error "could not create target file" while writing to ext4.
I followed these steps:
Parted sdcard with parted from CWM Recovery. SDcard is ADATA MicroSDHC 64GB =2GB Fat, 62 GB EXT4
Code:
umount /storage/sdcard1
parted /dev/block/mmcblk1
mklabel
msdos
unit MB
print
mkpartfs primary fat32 0 2048
mkpartfs primary ext2 2048 67109
print
quit
Update FS to EXT4:
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk1p2
Set Journal to writeback mode:
Code:
tune2fs -O ^has_journal /dev/block/mmcblk1p2
tune2fs -o journal_data_writeback /dev/block/mmcblk1p2
Check FS:
Code:
e2fsck -f /dev/block/mmcblk1p2
Mount:
Code:
mount -t ext4 -o rw,nosuid,nodev,nodiratime,noatime,data=writeback,barrier=0,journal_checksum /dev/block/mmcblk1p2 /storage/sdcard1
Now when I copy from Internal sd to ext4, write error appear. Any solution?
Device: THL T100S
Chip: MTK 6592
Ram: 2GB
Android: 4.2.2
Rooted, Insecure boot.img
Click to expand...
Click to collapse
are you sure your kernel supports ext4 SD partition ?
try leaving it as ext2 and mount as that see if error appears
if not then u can try ext3 and if no error stay with that
IGGYVIP said:
are you sure your kernel supports ext4 SD partition ?
try leaving it as ext2 and mount as that see if error appears
if not then u can try ext3 and if no error stay with that
Click to expand...
Click to collapse
Mount as EXT2 failed. e2fsck: Bad magic number in super-block