Some people have no pc , so they face problems with formatting their sdext pertition , this is for those guys
------*******----------**********----------
1. Download terminal emulator
2. Open terminal emultor
Type
--------------*********-----------------
su (press enter)
mkdir /data/sdext (press enter)
mount -t ext2 -o nosuid,nodev /dev/block/mmcblk0p2 /data/sdext (press enter)
3. Go to /data/sdext
Delete all in it.
4. Open emulator and
Type
su (press enter)
umount /data/sdext (press enter)
Then reboot.
------*****----------*****-----*****--------
It is for when you are using any rom without a2sd like stock and you want to format sdext for flash new rom.
-------------**************-------------------
Note: 1. if you are using ext3 then use code
mount -t ext3 -o nosuid,nodev /dev/block/mmcblk0p2 /data/sdext
If you are using ext4 then use code
mount -t ext4 -o nosuid,nodev /dev/block/mmcblk0p2 /data/sdext
2. If the no. 4 not works then dont worry, just reboot. But always try to use all codes.
---------------*******--------*******--------
If it is helpful press thanks.
Very Good Guide...................
manoranjan2050 said:
Very Good Guide...................
Click to expand...
Click to collapse
Thankyou
Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
thats not a correct reformating method but it can be used as a alternative method if we don't have a PC. the correct command is mkfs.ext2.
kurotsugi said:
thats not a correct reformating method but it can be used as a alternative method if we don't have a PC. the correct command is mkfs.ext2.
Click to expand...
Click to collapse
how to use this code?:thumbup:
Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
very usefull,good info:good:
CALIBAN666 said:
very usefull,good info:good:
Click to expand...
Click to collapse
:thumbup::thumbup::thumbup::thumbup:
Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
Thank you for this post! It helped me clean up my sd-ext..
android1561 said:
Thank you for this post! It helped me clean up my sd-ext..
Click to expand...
Click to collapse
Welcome.
Sent from my GT-S5360 using Xparent ICS Blue Tapatalk 2
Related
Suddenly my ClockworkMod recovery started to fail on acessing sd-ext.
My SD-EXT is an EXT4 partition, and I have done severall ROM backups before.
Now it just can't access SD-EXT. If I try to backup the ROM it returns the error:
E:Can't mount /dev/block/mmcblk0p2
(File exists)
I'm using version 2.5.0.1 of ClockworkMod Recovery but I also tried many older versions and the error is the same. The partition is working perfectly from A2SD...
I googled a lot and found many people with an issue like this, but no answers. What can I do?
did the backup work before?
As far as I know, ClockworkMod works by 'live patching' the normal recovery. So it has to use the normal recovery's kernel... which I think don't supports ext4.
you have to flash recovery via unrevoked, only then youll get a possibility to mount/format/backup your ext
It might be the Ext4 but I'm almost sure that it was working after I switched from Ext3
Sent from my HTC Desire using XDA App
I flashed clockworkmod from unrevoked for the first time, but Ive been using Rom manager's versions ever since with success.
Sent from my HTC Desire using XDA App
I dont know why it does not support ext4 :s
Sent from my HTC Desire
The latest version of Clockwork suppports EXT3 and EXT4 perfectly.
Are you using ROM Manager? if not, I urge you to do so. In ROM Manager, check that Clockwork Recovery is at version 2.5.0.1. If not, update it.
I've been using ROM manager. Recovery version 2.5.0.1
Just can't access Sd-ext from whithin recovery
Sent from my HTC Desire using XDA App
Help...
Sent from my HTC Desire using XDA App
same here, with ext3 all is working but not with ext4 =(
Is there an easy way to copy the contents of the sd-ext partition to the Pc? (So I can go back to ext3 without wiping everything)
Sent from my HTC Desire using XDA App
Maybe a live linux could help you out. Just boot from the cd then plug your phone in, it should now detects all your partitions.
Sent from my HTC Desire using Tapatalk
cant mount sd-ext
hi.. any solution found to clockworkmod not being able to
mount the sd-ext?
i am trying to flash an a2we rom and can not because every time i partition my sd to ext4 (folowing a fat32 partition) i get this message from cmw2.5.0.7/3.0.0.5:
"cant mount sd-ext! (files exists)"
ehwn i try to wipe to factory defaults.
any ideas?
Hi are you sure a2sd is zip aligned and set up properly. Download terminal emulator from the market and type su (enter) a2sd check (enter) it will tell you if its working. if a2sd is not configured properly you can type su (enter) a2sd zipalign (enter) a2sd cachesd (enter)
Sent from my HTC Desire using XDA Premium App
Hi if you download root explorer and longpress on your SD ex you should get the option to copy.do this and paste it into your SD card folder. connect to PC and copy your sd ex folder that you previously pasted.
Sent from my HTC Desire using XDA Premium App
Oops... can't delete this
Sent from my HTC Desire using XDA App
Hi all!
The linux solution works great but forces me to several minutes of waiting and I am also forced to use a laptop.
In other words, when I have not my laptop handy I can't do the trick.
I've asked the developer (hi Vache!) who ported clockworkmod to my beloved Acer Liquid Metal but then I thought...
It is such a simple thing: just a copy.
So I'd like to prepare a bash script to copy all the needed files from the sd-ext to fat32 sd and vice-versa.
The data is normally in /data/sdext2 but I'd need to mount it "manually" if it's not mounted (e.g. new rom flash)...
Using:
mount /dev/block/mmcblk0p2 /data/sdext2
will do the trick or I could destroy anything? à_à
As soon as I finish the script I'll post it.
fat 32 file system cannot preserve the permissions of files. So you can't do a simple copy. You can therefore do two things, one do as the recovery does, with a dd if/of command. Second solution is to simply do a tar backup.
su
mkdir /sdext
mount -t ext4 /dev/block/mmcblk0p2 /sdext
busybox tar cvvf /sdcard/mybackup.tgz /sdext
To restore,
su
mkdir /sdext
mount -t ext4 /dev/block/mmcblk0p2 /sdext
cd /
busybox tar xvvf /sdcard/mybackup.tgz
You may need to run it from recovery. su may not be needed, and if it is, you may need to mount system for busybox and su
Hi,
in case that anybody of you was using Mimocan fix (ext4 on the external SD), here I have attached libs for enabling ext4 on JP6/JPM (without modifying kernel).
I'm personally using ext4 partition on external SD, and loopback file on this partition formatted in ext2.
That way I'm getting 2000 in Quadrant, and the phone is working fast.
Here is my userinit:
Code:
insmod /data/local/fs_jpm/slow-work.ko
insmod /data/local/fs_jpm/jbd2.ko
insmod /data/local/fs_jpm/fscache.ko
insmod /data/local/fs_jpm/mbcache.ko
insmod /data/local/fs_jpm/ext4.ko
busybox mount -t ext4 -o noatime,nodiratime,errors=continue /dev/block/mmcblk1p2 /data/sdcard_ex2_mnt
busybox mknod /dev/loop0 b 7 0
busybox losetup /dev/loop0 /data/sdcard_ex2_mnt/linux.ex2
mount -t ext2 -o noatime,nodiratime,errors=continue /dev/loop0 /data/ext2data
busybox mount -o bind /data/ext2data/data /data/data;
busybox mount -o bind /data/ext2data/app /data/app;
busybox mount -o bind /data/ext2data/dalvik-cache /data/dalvik-cache;
P.S. Thanks for darkbyt3, for making slow_work module!
P.S. 2. Also in the archive is NILFS2 support for those who like experiments , and CIFS by darkbyt3.
thanks for the info.
linux noob question, but where does the userinit file live?
im used to editing scripts in /system/init.d but that was on a custom rom.
/system/bin/userinit.sh
kanemari said:
thanks for the info.
linux noob question, but where does the userinit file live?
im used to editing scripts in /system/init.d but that was on a custom rom.
Click to expand...
Click to collapse
Sorry for being even more of a noob, but can you tell me how to apply the mimocan fix for JPM/JP6 step by step please, I would love to be able to use it.
I have tried all the lag fixes and nothing comes close to what I had with the mimocan fix, even though you get better scores none of them were as smooth as mimocan fix.
Thanks a lot really appreciate the help.
milan2008 said:
Sorry for being even more of a noob, but can you tell me how to apply the mimocan fix for JPM/JP6 step by step please, I would love to be able to use it.
I have tried all the lag fixes and nothing comes close to what I had with the mimocan fix, even though you get better scores none of them were as smooth as mimocan fix.
Thanks a lot really appreciate the help.
Click to expand...
Click to collapse
Like u did i tried many lagfix, feel less lag with voodoo or mimocan compare others, but least lag with combo of voodoo or mimocan with minfree (autokiller preset aggressive). Give it a try...
Hi, sorry for the questions:
How i can do this fix?
Thanks
vitalij said:
Hi,
in case that anybody of you was using Mimocan fix (ext4 on the external SD), here I have attached libs for enabling ext4 on JP6/JPM (without modifying kernel).
I'm personally using ext4 partition on external SD, and loopback file on this partition formatted in ext2.
That way I'm getting 2000 in Quadrant, and the phone is working fast.
Here is my userinit:
Code:
insmod /data/local/fs_jpm/slow-work.ko
insmod /data/local/fs_jpm/jbd2.ko
insmod /data/local/fs_jpm/fscache.ko
insmod /data/local/fs_jpm/mbcache.ko
insmod /data/local/fs_jpm/ext4.ko
busybox mount -t ext4 -o noatime,nodiratime,errors=continue /dev/block/mmcblk1p2 /data/sdcard_ex2_mnt
busybox mknod /dev/loop0 b 7 0
busybox losetup /dev/loop0 /data/sdcard_ex2_mnt/linux.ex2
mount -t ext2 -o noatime,nodiratime,errors=continue /dev/loop0 /data/ext2data
busybox mount -o bind /data/ext2data/data /data/data;
busybox mount -o bind /data/ext2data/app /data/app;
busybox mount -o bind /data/ext2data/dalvik-cache /data/dalvik-cache;
P.S. Thanks for darkbyt3, for making slow_work module!
P.S. 2. Also in the archive is NILFS2 support for those who like experiments , and CIFS by darkbyt3.
Click to expand...
Click to collapse
Isn't there aversion without debug information? 3mb for a kernel module is huge
sztupy said:
Isn't there aversion without debug information? 3mb for a kernel module is huge
Click to expand...
Click to collapse
Maybe, the size is irrelevant for this kind of using these modules - anyway I copy them to /data where I have plenty of space.
Ext4 is working fine, however if used separately without loop device it doesn't produce speed increase, differently from eclair builds.
Sent from my GT-I9000 using XDA App
tanoxxx said:
Hi, sorry for the questions:
How i can do this fix?
Thanks
Click to expand...
Click to collapse
I did it manually, and it have lots of steps. Probably if you were not using mimocan's fix - this lagfix is not for you. You need to repartition sd card, format it, create loop device, and then manually copy data there.
milan2008 said:
Sorry for being even more of a noob, but can you tell me how to apply the mimocan fix for JPM/JP6 step by step please, I would love to be able to use it.
I have tried all the lag fixes and nothing comes close to what I had with the mimocan fix, even though you get better scores none of them were as smooth as mimocan fix.
Thanks a lot really appreciate the help.
Click to expand...
Click to collapse
Well It may contain errors, but I am doing like this:
1) Create second primary partition on the external SD card and make it EXT4 (easiest to do it in external card reader, using PARAGON or GPARTED). And format it of cause. Choose size, for example 1Gb
Remember that first primary partition must remain FAT32
2) Put the card back to phone.
3) You need root and terminal (adb or any terminal on phone)
4) copy modules from my first post to /data/local/fs_jpm/
5) run following commands:
Code:
insmod /data/local/fs_jpm/slow-work.ko
insmod /data/local/fs_jpm/jbd2.ko
insmod /data/local/fs_jpm/fscache.ko
insmod /data/local/fs_jpm/mbcache.ko
insmod /data/local/fs_jpm/ext4.ko
mkdir /data/sdcard_ex2_mnt
busybox mount -t ext4 -o noatime,nodiratime,errors=continue /dev/block/mmcblk1p2 /data/sdcard_ex2_mnt
busybox dd if=/dev/zero of=/data/sdcard_ex2_mnt/linux.ex2 bs=1024 count=800000
Change 800000 to any size of loopback file you want (here it is 800Mb)
Code:
busybox mknod /dev/loop0 b 7 0
busybox losetup /dev/loop0 /data/sdcard_ex2_mnt/linux.ex2
busybox mkfs.ext2 /dev/loop0
mkdir /data/ext2data/
mount -t ext2 -o noatime,nodiratime,errors=continue /dev/loop0 /data/ext2data
cp -rp /data/data /data/ext2data/
cp -rp /data/app /data/ext2data/
cp -rp /data/dalvik-cache /data/ext2data/
mv /system/bin/playlogos1 /system/bin/playlogosnow
copy files from attached system_bin.zip archive, to /system/bin.
Code:
busybox chmod +x /system/bin/userinit
busybox chmod +x /system/bin/playlogos1
then just reboot.
After reboot you can check that correct mounts are used with
Code:
mount
command.
wolfiett said:
/system/bin/userinit.sh
Click to expand...
Click to collapse
i put a script there but it doesnt work... and the script runs fine if i run it from the terminal prompt.
how can i check what the issue is?
vitalij said:
Well It may contain errors, but I am doing like this:
1) Create second primary partition on the external SD card and make it EXT4 (easiest to do it in external card reader, using PARAGON or GPARTED). And format it of cause. Choose size, for example 1Gb
Remember that first primary partition must remain FAT32
2) Put the card back to phone.
3) You need root and terminal (adb or any terminal on phone)
4) copy modules from my first post to /data/local/fs_jpm/
5) run following commands:
Code:
insmod /data/local/fs_jpm/slow-work.ko
insmod /data/local/fs_jpm/jbd2.ko
insmod /data/local/fs_jpm/fscache.ko
insmod /data/local/fs_jpm/mbcache.ko
insmod /data/local/fs_jpm/ext4.ko
mkdir /data/sdcard_ex2_mnt
busybox mount -t ext4 -o noatime,nodiratime,errors=continue /dev/block/mmcblk1p2 /data/sdcard_ex2_mnt
busybox dd if=/dev/zero of=/data/sdcard_ex2_mnt/linux.ex2 bs=1024 count=800000
Change 800000 to any size of loopback file you want (here it is 800Mb)
Code:
busybox mknod /dev/loop0 b 7 0
busybox losetup /dev/loop0 /data/sdcard_ex2_mnt/linux.ex2
busybox mkfs.ext2 /dev/loop0
mkdir /data/ext2data/
mount -t ext2 -o noatime,nodiratime,errors=continue /dev/loop0 /data/ext2data
cp -rp /data/data /data/ext2data/
cp -rp /data/app /data/ext2data/
cp -rp /data/dalvik-cache /data/ext2data/
mv /system/bin/playlogos1 /system/bin/playlogosnow
copy files from attached system_bin.zip archive, to /system/bin.
Code:
busybox chmod +x /system/bin/userinit
busybox chmod +x /system/bin/playlogos1
then just reboot.
After reboot you can check that correct mounts are used with
Code:
mount
command.
Click to expand...
Click to collapse
Thanks a lot, I am going to try it now.
Update: it keeps failing, I am getting `Failed (Operations not permitted)`. I don't know if anyone can help.
I tried it with Tayutama's latest rom.
milan2008 said:
Thanks a lot, I am going to try it now.
Update: it keeps failing, I am getting `Failed (Operations not permitted)`. I don't know if anyone can help.
I tried it with Tayutama's latest rom.
Click to expand...
Click to collapse
At which point are you getting the error? Maybe you /system partition is read-only? try
Code:
su
busybox mount -o remount,rw /system
Or you do not have a root
wolfiett said:
/system/bin/userinit.sh
Click to expand...
Click to collapse
Actually it should be
Code:
/system/bin/userinit
Any quick and dirty way to get all the apps I have on my ext3 partition not downloaded from market (came with rom or titanium backup )? Thanks, i searched but couldn't find anything
Sent from my PC36100 using XDA App
Something similar to this should work:
Code:
mount -o remount,rw /
mkdir /sd-ext
mount /dev/block/mmcblk0p2 /sd-ext
#Then in /sd-ext you can
cp /sd-ext/*.apk /data/app
cp /sd-ext/*.zip /data/app
#unmount ext partition
umount /dev/block/mmcblk0p2
#remove ext mount folder
rm -rf /sd-ext/
mount -o remount,ro /
spiicytuna said:
Something similar to this should work:
Code:
mount -o remount,rw /
mkdir /sd-ext
mount /dev/block/mmcblk0p2 /sd-ext
#Then in /sd-ext you can
cp /sd-ext/*.apk /data/app
cp /sd-ext/*.zip /data/app
#unmount ext partition
umount /dev/block/mmcblk0p2
#remove ext mount folder
rm -rf /sd-ext/
mount -o remount,ro /
Click to expand...
Click to collapse
+1
Also try $a2sd help
think #a2sd remove could doit.
So basically remove and then reinstall
Sent from my PC36100 using XDA App
jpmaniac87 said:
Any quick and dirty way to get all the apps I have on my ext3 partition not downloaded from market (came with rom or titanium backup )? Thanks, i searched but couldn't find anything
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
jpmaniac87 said:
So basically remove and then reinstall
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Stop!!
Guess I dn't know what you mean by "get".
What do you mean?
Basically, all of my apps are there, but when I go to the market and see "my apps", only the ones that I've actually downloaded from the market since installing rom show up, so I can't update any of my apps
Sent from my PC36100 using XDA App
Try Market Doctor in Titanium Backup options it fixes the links to the market. But it dose not always work.
tpi383 said:
Try Market Doctor in Titanium Backup options it fixes the links to the market. But it dose not always work.
Click to expand...
Click to collapse
Didn't work ...
Sent from my PC36100 using XDA App
You can also try clearing data and cache for the market in settings.
Synce all your Pps with appbrain the update threw there
Sent From Da Hood.
Clearing data didn't work and appbrain wont work on all updates... I may try wiping everything and reflashing
Sent from my PC36100 using XDA App
Is there any way to see if I have ext4 file system on my phone?
goto a terminal, or adb, and type mount...
the output tells what FS each partition is..
I think you could also do a nandroid backup. Mine looks for sd/ext4 and fails. I figure that's because I'm on an Ext4 Rom.
sd-ext is a swap partition, and used for the older apps2sd... nothing to do with ext4. most dont use sdext anymore though
chris41g said:
goto a terminal, or adb, and type mount...
the output tells what FS each partition is..
Click to expand...
Click to collapse
Thank you for your help. I did, but a whole bunch of stuff came up LOL....and being the noob than I am.....I have no idea what I'm looking at.... :/
xfilemanx said:
Thank you for your help. I did, but a whole bunch of stuff came up LOL....and being the noob than I am.....I have no idea what I'm looking at.... :/
Click to expand...
Click to collapse
In the terminal type the following
mount | grep ext4
This should show you only those partitions that are ext4
Sent from the communications console of the NX-01 using a universal translator
jarcher1971 said:
In the terminal type the following
mount | grep ext4
This should show you only those partitions that are ext4
Sent from the communications console of the NX-01 using a universal translator
Click to expand...
Click to collapse
thank you for your help
and thank you everyone for your patience with the noob
Hi, everybody! dows anyone know if the file swap or the partition swap for ram will work on kitkat? and if yes, is there a tutoriali that i can read? thank you all
jam90 said:
Hi, everybody! dows anyone know if the file swap or the partition swap for ram will work on kitkat? and if yes, is there a tutoriali that i can read? thank you all
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2095573
hack4er said:
http://forum.xda-developers.com/showthread.php?t=2095573
Click to expand...
Click to collapse
Thanks, i already knows what that apps do...do you know if there's a manually mode for the file.swap or if there's a tutorial for the swap partition? And do they works on kitkat?
Sent from my GT-I8150 using xda app-developers app
You can create a swapfile from terminal emulator. I suggest you to use internal memory, but if you have swapped your memory so it would be external memory.
First, Go to term. Then type
Su
targ=/external_sd/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=512
mkswap $targ
swapon $targ
For "count=512" you can change the number to other swap size that you want.
You must to enable the swap ram on every boot from term again. Its simple, just type;
Su
Swapon /external_sd/.swapfile
Nb: you can change "external_sd" with "sdcard". Its up to you, but choose a disk that have more space to swap.
Sent from my GT-I8150 using xda premium
eryzerz said:
You can create a swapfile from terminal emulator. I suggest you to use internal memory, but if you have swapped your memory so it would be external memory.
First, Go to term. Then type
Su
targ=/external_sd/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=512
mkswap $targ
swapon $targ
For "count=512" you can change the number to other swap size that you want.
You must to enable the swap ram on every boot from term again. Its simple, just type;
Su
Swapon /external_sd/.swapfile
Nb: you can change "external_sd" with "sdcard". Its up to you, but choose a disk that have more space to swap.
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
This works on cm10? just for curiosity
It work on all android version.
Sent from my GT-I8150 using xda premium
what advantage of this swap campare to turbo boost..because turbo boost will make pgone laggy after 2,3 days if phone not reboot
Sent from my GT-I8150 using Tapatalk 4
kacanghantu said:
what advantage of this swap campare to turbo boost..because turbo boost will make pgone laggy after 2,3 days if phone not reboot
Sent from my GT-I8150 using Tapatalk 4
Click to expand...
Click to collapse
There's no specific different, turbo boost using space for swap in /cache,/data and /system, normal swapram using /sdcard or /external_sd. Just that.
For performance, try it by yourself. Test by playing a game, not antutu.
If you're using normal swapram u can change the swappinnes value easily with performance control app. 0-50 for a good perform, 51-100 for heavy use(hard gaming,etc).
Sent from my GT-I8150 using xda premium
eryzerz said:
There's no specific different, turbo boost using space for swap in /cache,/data and /system, normal swapram using /sdcard or /external_sd. Just that.
For performance, try it by yourself. Test by playing a game, not antutu.
If you're using normal swapram u can change the swappinnes value easily with performance control app. 0-50 for a good perform, 51-100 for heavy use(hard gaming,etc).
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
so that mean the only difference is where the swap file created..thanks brother
Sent from my GT-I8150 using Tapatalk 4
kacanghantu said:
so that mean the only difference is where the swap file created..thanks brother
Sent from my GT-I8150 using Tapatalk 4
Click to expand...
Click to collapse
Yes, you got it. My pleasure brother
Sent from my GT-I8150 using xda premium
it always tell me that swapon failed !!!!
eryzerz said:
You can create a swapfile from terminal emulator. I suggest you to use internal memory, but if you have swapped your memory so it would be external memory.
First, Go to term. Then type
Su
targ=/external_sd/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=512
mkswap $targ
swapon $targ
For "count=512" you can change the number to other swap size that you want.
You must to enable the swap ram on every boot from term again. Its simple, just type;
Su
Swapon /external_sd/.swapfile
Nb: you can change "external_sd" with "sdcard". Its up to you, but choose a disk that have more space to swap.
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
Uhh well i got 1.6gb on my device and i type count=500 but it could use all my phone space is the number wrong or what?
it says invalid argument
terminal emu. swaped on sd card but say invalid argument when swapon...pls help