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...
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.
I have x10 mini with cm7
I cant use swapper2
When I select create swap it says please wait and nothing happens
I have 3gb free sd space
Someone please help
Sent from my E10i using XDA
The best way to set it up is with a linux swap partition. Use Linux(gparted) or Windows (partition wizard), not cwm as on the xperia version it'll wipe your card. Go to settings/advanced and check there to use it.
sinkster©
How to use linux swap partition
Sent from my E10i using XDA
Maybe I can help you:
You can throw away ths swapper2 by follow me...
Create[or edit] two files:
1. file1: /system/SwapInSystem.sh
Code:
mount -o remount,rw /system;
swapoff /dev/block/loop7;
dd if=/dev/zero of=/system/swap.img bs=1024 count=60000;
mount -o remount,rw /system;
losetup /dev/block/loop7 /system/swap.img;
mkswap /dev/block/loop7;
swapon /dev/block/loop7;
free;
2. file2: /system/etc/init.d/90SwapInSystem
Code:
mount -o remount,rw /system;
losetup /dev/block/loop7 /system/swap.img;
mkswap /dev/block/loop7;
swapon /dev/block/loop7;
In the end, one click on /system/SwapInSystem.sh and touch "Execute".
Goog luck for you~~~
For your interest:
Swapping on SD card may harm your sd drive
always be careful and dont swap to much
i dont have many apps on my phone and need the space on sdcard for photos and videos....
so i made an init.d script to move some big folders (games) from sdcard to /data/ and /system/ partition because there is much space left.
Code:
busybox mkdir -p /sdcard/Android/obb/com.nextgenreality.minimoto
busybox mkdir -p /data/Android/obb/com.nextgenreality.minimoto
mount -o bind /data/Android/obb/com.nextgenreality.minimoto /sdcard/Android/obb/com.nextgenreality.minimoto
busybox mkdir -p /sdcard/Navigon
busybox mkdir -p /data/Navigon
mount -o bind /data/Navigon /sdcard/Navigon
rm -r /sdcard/Android/data/com.eamobile.sims3_row_qwf
busybox mkdir -p /sdcard/Android/data/com.eamobile.sims3_row_qwf
busybox mkdir -p /data/Android/data/com.eamobile.sims3_row_qwf
mount -o bind /data/Android/data/com.eamobile.sims3_row_qwf /sdcard/Android/data/com.eamobile.sims3_row_qwf
rm -r /sdcard/Android/data/com.eamobile.nfshp_row_wf
busybox mkdir -p /sdcard/Android/data/com.eamobile.nfshp_row_wf
busybox mkdir -p /system/Android/data/com.eamobile.nfshp_row_wf
mount -o bind /system/Android/data/com.eamobile.nfshp_row_wf /sdcard/Android/data/com.eamobile.nfshp_row_wf
after a reboot i have moved around 1gb to data and 320mb to system ->
Code:
Filesystem Size Used Free Blksize
/dev 386.3M 64.0K 386.3M 4096
/mnt/asec 386.3M 0.0K 386.3M 4096
/mnt/obb 386.3M 0.0K 386.3M 4096
/dev/shm 386.3M 0.0K 386.3M 4096
/system 1007.9M 891.6M 116.3M 4096
/modemfs 2.8M 1.1M 1.7M 1024
/data 2.0G 1.7G 269.0M 4096
/cache 246.1M 4.2M 241.8M 4096
/mnt/sdcard 11.3G 5.1G 6.1G 32768
/mnt/secure/asec 11.3G 5.1G 6.1G 32768
/mnt/sdcard/Android/obb/com.nextgenreality.minimoto 2.0G 1.7G 269.0M 4096
/mnt/sdcard/Navigon 2.0G 1.7G 269.0M 4096
/mnt/sdcard/Android/data/com.eamobile.sims3_row_qwf 2.0G 1.7G 269.0M 4096
/mnt/sdcard/Android/data/com.eamobile.nfshp_row_wf 1007.9M 891.6M 116.3M 4096
be aware that these data are lost if you reflash your rom !!!
have fun
inteks
[edit]
to let you know. i faced a small problem and found a solution
after i moved some big folders to phone memory i got a "low phone memory" at 200mb ?! witch i find is MORE than enogh !
this warning come usally at 10% ....
i found a mod to change the threshold to i.e. 2 or 5% :good:
http://forum.xda-developers.com/showthread.php?t=877793
so i can use this script ( or make my own, which would be very similar) on the xperia u too rite?
unreal3000 said:
so i can use this script ( or make my own, which would be very similar) on the xperia u too rite?
Click to expand...
Click to collapse
Yep, you should be able to.
@OP: what you need is to write a generic script that moves directories based on a plain text list on /sdcard.
there is a sd card in xperia P ? oO
ilgreco112 said:
there is a sd card in xperia P ? oO
Click to expand...
Click to collapse
There is no sdcard, but /sdcard is a separate partition.
the main idea stays the same. the xperia u has a partition which acts as an internal sd. so lets say i want to move my music folder on the sdcard to the /data partition. will this work? -
Code:
busybox mkdir -p /sdcard/music
busybox mkdir -p /data/music
mount -o bind /data/music /sdcard/music
tks fr the help!
unreal3000 said:
the main idea stays the same. the xperia u has a partition which acts as an internal sd. so lets say i want to move my music folder on the sdcard to the /data partition. will this work? -
Code:
busybox mkdir -p /sdcard/music
busybox mkdir -p /data/music
mount -o bind /data/music /sdcard/music
tks fr the help!
Click to expand...
Click to collapse
should work, but you should use it for i. e. gamedata that you can always redownload. because if you reflash your phone this data will be lost.
btw. next version of setxperia is able to execute /sdcard/userinit.sh then you can easily edit this file on pc when phone is docked...
Gesendet von meinem LT22i
inteks said:
should work, but you should use it for i. e. gamedata that you can always redownload. because if you reflash your phone this data will be lost.
btw. next version of setxperia is able to execute /sdcard/userinit.sh then you can easily edit this file on pc when phone is docked...
Gesendet von meinem LT22i
Click to expand...
Click to collapse
so your saying once i have my music folder on the /data partition, i cant edit it through the sdcard partition? (like copy things to the music folder on the sd from my comp, but it would actual get stored on the /data partition?)
unreal3000 said:
so your saying once i have my music folder on the /data partition, i cant edit it through the sdcard partition? (like copy things to the music folder on the sd from my comp, but it would actual get stored on the /data partition?)
Click to expand...
Click to collapse
Yeah, that's exactly it.
unreal3000 said:
so your saying once i have my music folder on the /data partition, i cant edit it through the sdcard partition? (like copy things to the music folder on the sd from my comp, but it would actual get stored on the /data partition?)
Click to expand...
Click to collapse
no you can't access them through PC. on PC these folders are empty. as i said this is only useful for i. e. big game folder to save some space...
Gesendet von meinem LT22i
to let you know. i faced a small problem and found a solution
after i moved some big folders to phone memory i got a "low phone memory" at 200mb ?! witch i find is MORE than enogh !
this warning come usally at 10% ....
i found a mod to change the threshold to i.e. 2 or 5% :good:
http://forum.xda-developers.com/showthread.php?t=877793
ok.... last version of setxperia can execute "/sdcard/userinit.sh"
btw. i change the script to use a function to mount folders. its easier to add new locations here is the act version of my /sdcard/userinit.sh -->>
Code:
echo '/dev/block/mmcblk0p14' > /sys/devices/platform/usb_mass_storage/lun0/file
echo '1' > /sys/devices/virtual/usb_composite/usb_mass_storage/enable
checkMount(){
if grep -qs $1 /proc/mounts; then
echo "$1 is allready mounted"
else
busybox rm -r $1
busybox mkdir -p $1
busybox mkdir -p $2
mount -o bind $2 $1
echo "$1 successfully mounted"
fi
}
checkMount '/sdcard/Navigon' '/data/Navigon'
checkMount '/sdcard/Android/data/com.eamobile.sims3_row_qwf' '/data/Android/data/com.eamobile.sims3_row_qwf'
checkMount '/sdcard/Android/data/com.eamobile.nfshp_row_wf' '/system/Android/data/com.eamobile.nfshp_row_wf'
checkMount '/sdcard/Android/data/com.opera.browser' '/cache/Android/data/com.opera.browser'
checkMount '/sdcard/PlayerPro' '/cache/data/PlayerPro'
Hi inteks i own a xperia U. I want to move asphalt 7 gamedata to the data partition. I used this script:
rm -r /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
busybox mkdir -p /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
busybox mkdir -p /system/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
mount -o bind /data/Android/obb/com.gameloft.android.ANMP.GloftA7HM /sdcard/Android/obb/com
But its still in the sdcard partition after reboot. Something wrong i'm doing here. Please point it out so i can move the data.
Thanks !
Sent from my ST25i using Tapatalk 2
Rapier07 said:
Hi inteks i own a xperia U. I want to move asphalt 7 gamedata to the data partition. I used this script:
rm -r /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
busybox mkdir -p /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
busybox mkdir -p /system/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
mount -o bind /data/Android/obb/com.gameloft.android.ANMP.GloftA7HM /sdcard/Android/obb/com
But its still in the sdcard partition after reboot. Something wrong i'm doing here. Please point it out so i can move the data.
Thanks !
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
busybox mkdir -p /system/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
mount -o bind /data/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
a few errors in script...
inteks said:
busybox mkdir -p /system/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
mount -o bind /data/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf
a few errors in script...
Click to expand...
Click to collapse
Oh.. What should i use in place of them?
Edit: i get it i guess. Will try again and report back.
Thanks for your help.
Sent from my ST25i using Tapatalk 2
No go
I've been trying this since morning. Tried one more method and it destroyed my gta3 data.
Could you please write the full script i need to use?
The gamedata location is
/sdcard/Android/obb/ com.gameloft.android.ANMP.GloftA7HM
Thanks.
Sent from my ST25i using Tapatalk 2
Rapier07 said:
No go
I've been trying this since morning. Tried one more method and it destroyed my gta3 data.
Could you please write the full script i need to use?
The gamedata location is
/sdcard/Android/obb/ com.gameloft.android.ANMP.GloftA7HM
Thanks.
Sent from my ST25i using Tapatalk 2
Click to expand...
Click to collapse
how do you start the script ? /etc/init.d or /sdcard/userinit.sh with setxperia ?
have you tryed my new script ?
save this to /sdcard/userinit.sh and use setxperia .... -->>
checkMount(){
if grep -qs $1 /proc/mounts; then
echo "$1 is allready mounted"
else
busybox rm -r $1
busybox mkdir -p $1
busybox mkdir -p $2
mount -o bind $2 $1
echo "$1 successfully mounted"
fi
}
checkMount '/sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf' '/data/Android/obb/com.gameloft.android.ANMP.GloftA7HM_row_wf'
Click to expand...
Click to collapse
but keep in mind after this you have to redownload gamedata ...
parameter of checkmount -> "checkmount orginalfolderpath newfolderpath"
Hi... I m kinda noob... So could u plz tell me to steps to follow to how to get this done.... Tnx
Sent from my ST25i using xda app-developers app
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.......