Is it possible convert the ext2 partition to rfs format? i have changed the /dev/block/stl3 to ext2 format by mistake, and could not find the way back to rfs, which cause all official ROM stop working properly, please kindly help.
Eddie
haoning said:
Is it possible convert the ext2 partition to rfs format? i have changed the /dev/block/stl3 to ext2 format by mistake, and could not find the way back to rfs, which cause all official ROM stop working properly, please kindly help.
Eddie
Click to expand...
Click to collapse
try newfs_msdos or fat.fotmat
wipe uses fat.format to new partitions
tried to use fat.format with -F 32 parameter, but got the error "too small partition" as this partition is only 6M, which parameter should be used to avoid this? and where can i find newfs_msdos?
someone help? urgent for help.
Did you try to tick "repartition" in Odin?
yes, but it doesn't help as odin will not touch this partition.
try this
Code:
fat.format -F 16 -S 512 -s 1 /dev/block/stl3
Related
help please .. paragon partitiion is not working
wc326 said:
help please .. paragon partitiion is not working
Click to expand...
Click to collapse
-repeatedly bangs head against wall-
follow this guide but in the beginning where it says use adb and type adb shell
just be in recovery console and hit enter then from there out all the commands should be the same.
if you need more help pm me and i will walk you through the steps
cant; do itr without adb ??
wc326 said:
help please .. paragon partitiion is not working
Click to expand...
Click to collapse
turn phone off and boot into recovery via home+red key
go to console and type in
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
this has been covered many times in many other threads
NOTE:dont type in the # signs. but do however type in the * sign.
go to recovery console hit enter
parted /dev/block/mmcblk0
print
the fourth line in the 'print' command output shows you the total size of sdcard in MB(or GB if you card is large)..mine says: Disk /dev/block/mmcblk0: 7969MB
use this number(XXXXMB) and do some simple math to get the size of your partitions.
7969MB - 32MB linux-swap = 7937MB
7937MB - 500MB ext2 = 7437MB fat32
32MB seems to be alright size for swap, though it can be lower depending on your sdcard size.
500 MB is a good round number for the ext2 partition...no need for more.
that leaves us with 7437MB for fat32 storage.
Click to expand...
Click to collapse
if you do not want linux-swap then do not figure it in
after figuring out the size of your partitions from using the above method type rm 1 (if you only have one partition skip next part) then rm2
then to make the partitions type (numbers are from above example substitute your own in)
mkpartfs primary fat32 0 7437
mkpartfs primary ext2 7437 7937
mkpartfs primary linux-swap 7937 7969 (only if you want linux-swap)
then type print again to see if it worked. if it did you will have 1 and 2 (and 3 if you want linux-swap) come up under all the other info.
then type quit
then to upgrade to ext3 type upgrade_fs
then if apps2sd is automatic in your rom of choice reflash it and you are set. i am too nice tonight.
brian_v3ntura said:
turn phone off and boot into recovery via home+red key
go to console and type in
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
this has been covered many times in many other threads
NOTE:dont type in the # signs. but do however type in the * sign.
Click to expand...
Click to collapse
too bad its not that simple. i think he means partitioning since he references not having adb to do the partitioning in the guide i linked him to. (sorry for assuming your gender OP)
i just want to format my ext3 app2sd partition....
it already has fat32 , ext 3 , and linus swap
really only want to format ext3 partition so i can install my new rom
just wondering can you format ext3 partition without havn'ing to erase fat32 and linus swap
david1171 said:
too bad its not that simple. i think he means partitioning since he references not having adb to do the partitioning in the guide i linked him to. (sorry for assuming your gender OP)
Click to expand...
Click to collapse
actually its clear as day that he means he JUST wants to format his ext.
wc326 said:
is there a way to format ext3 partition (app2sd) from g1 phone or from recovery mode
help please .. paragon partitiion is not working
Click to expand...
Click to collapse
paragon partition is aprogram that will enable you to partition your card on your computer and format.
wc326 said:
i just want to format my ext3 app2sd partition....
it already has fat32 , ext 3 , and linus swap
really only want to format ext3 partition so i can install my new rom
just wondering can you format ext3 partition without havn'ing to erase fat32 and linus swap
Click to expand...
Click to collapse
THIS IS WHAT YOU NEED TO DO to format ext. the other guy must've confused u
turn phone off and boot into recovery via home+red key
go to console and type in
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
NOTE:dont type in the # signs. just push enter when done typing each line. and be sure to type everything exact and carefully.but do however type in the * sign.
errr wrong post
Hello, at the moment my phone is in a bit weird state and I would really appreciate any help
this is what I have, it's a SHS bought in Europe
Model number: GT-I9000
Formware version: 2.2
Baseband version: I9000XXJPP
Kernel version: 2.6.32.9 [email protected] #Voodoo_stable_5.5
Build number: FROYO.XWJPF
I installed latest voodoo recently and it worked fine, quadrant was giving me about 1500 points so I'm sure it working and the phone was really fast
everything was fine until decided to root it to apply wifi timeout fix... since I have 3 button recovery mode I didn't think I was risking anything (MY MISTAKE!)
unfortunately, after 4 hours of reviving my phone I don't remember what program from market I used to root... anyway, I ended up having SuperUser app with ninja icon... and I lost all my other apps... now I know I should have converted the filesystem back before doing anything, but it was too late
at this point female voice was already saying "data partition /*something*/ system not available"
I decided to reset the phone from the recovery menu and it was giving me errors, it couldn't mount partition or do something with them, and it also wouldn't boot anymore
I started searching for solutions and found THIS, everything looked exactly as I had so I decided to follow those instructions, I think they can be summed up to this:
Now, we need to fix the partitions. This is assuming that the partitions are there, just the wrong format (which is what happened to me .. I accidentally made them FAT32 instead of ext). So, run the following: parted /dev/block/mmcblk0 mkfs ext2. It will ask if you want to continue, hit yes. When it asks for the partition number, enter 1. Next, when it asks for the format, enter ext2. Let it do its thing. Now, once it's done, run parted again. This time, enter partition 2 (everything else is the same).
Click to expand...
Click to collapse
I did what this said and my phone could boot and wipe data from recovery menu could also work
but it kept saying about "system not available"
I thought the problem could still be in the superuser ninja app, so I started looking how to remove it, and found THIS, which also worked and I got rid of it
but I still have female void saying "system not available" on boot
and for some reason, the phone can't connect by wifi to my router anymore, it gets stuck on obraining IP address, it could after all this, but after some restarts and resets it can't connect anymore
he's the voodoo logs that I have now:
2011-03-20 20:33:52 model detected: 8GB
2011-03-20 20:33:53 option: lagfix disabled
2011-03-20 20:33:53 option: lagfix is allowed to convert /system to Ext4
2011-03-20 20:33:53 option: debug mode enabled
2011-03-20 20:33:53 filesystem detection on system:
2011-03-20 20:33:53 Ext4 on /dev/block/stl9
2011-03-20 20:33:53 filesystem detection on dbdata:
2011-03-20 20:33:53 Ext4 on /dev/block/stl10
2011-03-20 20:33:53 filesystem detection on cache:
2011-03-20 20:33:53 Ext4 on /dev/block/stl11
2011-03-20 20:33:53 filesystem detection on data:
2011-03-20 20:33:53 RFS on /dev/block/mmcblk0p2
2011-03-20 20:33:53 battery level: 77%
2011-03-20 20:33:53 convert cache (/dev/block/stl11) from ext4 to rfs
2011-03-20 20:33:53 ERROR: unable to call the df command from system, cancel conversion
2011-03-20 20:33:53 Your Android system partition is empty or it is corrupt (Universal Lagfix /system corruption)
2011-03-20 20:33:53 You may flash a new factoryfs.rfs with Odin or try to it with the RFS fixer
2011-03-20 20:33:53 battery level: 77%
2011-03-20 20:33:53 convert dbdata (/dev/block/stl10) from ext4 to rfs
2011-03-20 20:33:53 ERROR: unable to call the df command from system, cancel conversion
2011-03-20 20:33:53 Your Android system partition is empty or it is corrupt (Universal Lagfix /system corruption)
2011-03-20 20:33:53 You may flash a new factoryfs.rfs with Odin or try to it with the RFS fixer
2011-03-20 20:33:53 no need to convert data
2011-03-20 20:33:53 battery level: 77%
2011-03-20 20:33:53 convert system (/dev/block/stl9) from ext4 to rfs
2011-03-20 20:33:56 ERROR: unable to call the df command from system, cancel conversion
2011-03-20 20:33:56 Your Android system partition is empty or it is corrupt (Universal Lagfix /system corruption)
2011-03-20 20:33:56 You may flash a new factoryfs.rfs with Odin or try to it with the RFS fixer
2011-03-20 20:33:58 manage fat.format in /system/bin
2011-03-20 20:33:58 fat.format wrapper already installed in /system/bin
2011-03-20 20:33:58 running extension: apk_cleaner.sh
2011-03-20 20:33:58 TouchWiz 3.0 Launcher already optimized
2011-03-20 20:33:58 running extension: install_bln.sh
2011-03-20 20:33:58 BackLightNotification improved liblights already installed
2011-03-20 20:33:58 running extension: install_su.sh
2011-03-20 20:33:58 secure su binary for Superuser apk already installed
2011-03-20 20:33:58 running extension: sdcard_cleaner.sh
2011-03-20 20:33:58 sdcard cleaned up
2011-03-20 20:33:58 running extension: update_vold.fstab.sh
2011-03-20 20:33:58 running init !
Click to expand...
Click to collapse
Quadrant gives me 1000 points now, so there's probably some different filesystem configuration at the moment... maybe it's because I followed the instructions and created ext2 partitions?
anyway, even though my phone has 3-button recovery and still boots it is still screwed at the moment, so I'm looking for a way to get back to stock firmware and then voodoo again
but should I somehow convert back to RFS first?
I don't care about my data, there's nothing important in it
I found this post, would it be safe to use any of those firmwares with the phone in this state? will Odin's re-partition feature dump everything that I have now and recreate normal filesystem?
and which stock firmware should I use? there's no I9000XXJPP version in that list, would it be safe to use any other European 2.2.1 version?
I appreciate any help
well what you need to do is download a firmware with all 3 files and PIT.
Go into odin and put the correct files in the correct section, then put your pit file in, and check the repartition box.
flash that thru odin and you should be ok, this will remove the ext 4 filesystem and replace back to stock rfs.
if you are having trouble finding a firmware with all 3 files. try darkys resurrection (odin version) with 512 pit.
Thanks, I'll try to install I9000XXJPY in the evening and see how it goes
I downloaded I9000XXJPY firmware from this thread and it's only 1 file inside - JPY_JPY_JPY.tar
inside it has:
cache.rfs
factoryfs.rfs
param.lfs
zImage
modem.bin
instructions say that I shouldn't check re-partition with 1 file installation, but as I understand, I need to re-partition my phone
will this 1 file firmware installation even work in my situation?
I think I found what I need: this post describes how to install 1 file firmware with repartitioning and rooting
following those instructions solved my problems
the only problem was with voodoo... I was surprised to see that even after installing new firmware my phone still remembered password for my wifi... so I had to reset it
and voodoo wouldn't work, because there was a disable-lagfix file on the internal sd card (which also wasn't erased), so I had to remove that
Thanks for the advice
few days ago I decided to move to "Cyanogen Mod" (kabaldan),
and i did the move from EXT2 to EXT4 and here what I did
Code:
ext2 to ext3 convert:
boot to AOR and pick a console
umount /dev/block/mmcblk0p2
/system/bin/e2fsck -f /dev/block/mmcblk0p2
/system/bin/tune2fs -j /dev/block/mmcblk0p2
ext3 to ext4:
first two step is same as before
/system/bin/tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
/system/bin/e2fsck -fpDC0 /dev/block/mmcblk0p2
and now I tried the Ginger MIUI but then my EXT4 partition dont work
and it writes me this
Code:
The superblock could not read or does not describe a correct ext2 filesystem.
if the device is vaild and is really contains an ext2 filesystem (and not swap or ufs or something else),
then the superblock is corrupt.
and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
I really need help on this bcuz my 8gb sd card now have 6gb how do I fix this?
it will be great if you can post here the lines to write in the terminal and explain it to me a bit
BTW im back on cyanogen for good bcuz of that good built in hebrew
Code:
Note: Before you apply the update if you have upgraded to ext4 it is advised to upgrade your OR. Please refer this post
http://forum.xda-developers.com/show...postcount=2755
This is mentioned in the MIUI rom thread. Have you upgraded OR yet?
Please, i need really need ur help, somebody, why do i keep losing my swap partition???
Please somebody, help me
i have problem with swap and ext3 partition with alfs kernel too, that's why i change the kernel..i don't know why alfs kernel have bug with partitions, because he don't mount the partitions. i want to see this problem solved too
sorry my bad english
akaSk8krew said:
i have problem with swap and ext3 partition with alfs kernel too, that's why i change the kernel..i don't know why alfs kernel have bug with partitions, because he don't mount the partitions. i want to see this problem solved too
sorry my bad english
Click to expand...
Click to collapse
Thanks for ur help, right now i had it solved by restored sd ext partition and wipe dalvik cache before reboot. for now it works but i cant sure that i wont lost my swap partition again. thanks for ur help
phoenix883 said:
Thanks for ur help, right now i had it solved by restored sd ext partition and wipe dalvik cache before reboot. for now it works but i cant sure that i wont lost my swap partition again. thanks for ur help
Click to expand...
Click to collapse
yes, if i clean dalvik cache and boot, the device recognize again the ext partition..but for me if i boot again, i loose again the partition. and swap don't work..i need boot million times to make swap work, but if i reboot again i loose the swap too..the solution for me is don't use ext partition, (but have problems with swap too) but i use much apps, then i have less memory.
alfs kernel in performance it's the best..alfs could fix the partition bug, i don't know..
sorry my bad english
akaSk8krew said:
yes, if i clean dalvik cache and boot, the device recognize again the ext partition..but for me if i boot again, i loose again the partition. and swap don't work..i need boot million times to make swap work, but if i reboot again i loose the swap too..the solution for me is don't use ext partition, (but have problems with swap too) but i use much apps, then i have less memory.
alfs kernel in performance it's the best..alfs could fix the partition bug, i don't know..
sorry my bad english
Click to expand...
Click to collapse
same hope for me also...its not that i dont want to use nAa kernel but the fps uncap make gaming in x8 much more better...thats why i choose alfs kernel...and because of this kernel i can use mdpi theme much more smoother....let's wait patiently for his new update....i believe this will be fix by alfs soon...by the way, thanks for helping me akaSk8krew
with versio 6 of alfs the problem persists..anybody helps?? anybody knows why this kernel dont mount the partitions? because in alfs thread, in first post, alfsamsung said that ext2\3\4 works..but for me and for much people don't work too
I want to help you guys,but I don't have this problem and I can't reproduce your errors....
Try this:
1 format sd card with fat32,ext*,swap if you not allready have done this
2 remove system/etc/init.d/10app2sd Remove swapper and use link2sd to move apps
3 edit system/etc/fstab to look like this
Code:
/dev/block/mtdblock3 /system yaffs2 rw
/dev/block/mtdblock4 /cache yaffs2 rw
/dev/block/mtdblock5 /data yaffs2 rw
/dev/block/mmcblk0p1 /sdcard vfat rw
/dev/block/mmcblk0p2 /sd-ext auto rw
[B]/dev/block/mmcblk0p3 /swap swap rw[/B]
now all 3 partitions will be mounted at boot
4 add this to system/etc/hw_config.sh
This will turn on swap on swap partition
Code:
#enable swap
swapon /dev/block/mmcblk0p3 #turn on swapp
echo "60" > /proc/sys/vm/swappiness #swap amount
To turn off swap do this and reboot
Code:
#enable swap
#swapon /dev/block/mmcblk0p3 #turn on swapp
#echo "60" > /proc/sys/vm/swappiness #swap amount
check on terminal if swap is working using #free
If you used app2sd before,then try and put it back to see if app2sd is the problem
@alfsamsung
thanks for your reply..the swap partition is mounted with app2sd or without thanks..the ext partition dont work..i test app2sd link2sd and nothing..a few days ago, i test without swap and link2sd and ext work..but also 1 or two days passed and stopped working..this only happens to me with your kernel..in stock or nAa works always..but your kernel is the best. the problem is in kernel..please: can you fix this? it's just a request
same here the ext wont work for me
Can you test this.I patched mmc with fixes.
Please post output from adb shell or terminal if it's not working
Code:
dmesg | grep mmc
alfsamsung said:
Can you test this.I patched mmc with fixes.
Please post output from adb shell or terminal if it's not working
Code:
dmesg | grep mmc
Click to expand...
Click to collapse
don't work i flah your kernel 07 wipe device, flash gingerDx v22, flash vold patch, wipe device again and boot..with root explorer go to \sd-ext and nothing..reboot, go again with root explorer and nothing..i put your code in terminal, but how i post it here, or better, how i make a txt file with output? can you put the code for this? i'm sorry. and thanks for your work
edit: i attached the files..is this what you want??
Tis is my output
Code:
<6>mmc0: Qualcomm MSM SDCC at 0x00000000a0400000 irq 24,113 dma 8
<6>mmc0: 8 bit data mode disabled
<6>mmc0: 4 bit data mode enabled
<6>mmc0: polling status mode disabled
<6>mmc0: MMC clock 144000 -> 49152000 Hz, PCLK 100000000 Hz
<6>mmc0: Slot eject status = 0
<6>mmc0: Power save feature enable = 1
<6>mmc0: DM non-cached buffer at ffc21000, dma_addr 0x0cdca000
<6>mmc0: DM cmd busaddr 0x0cdca000, cmdptr busaddr 0x0cdca300
<4>mmc0: host does not support reading read-only switch. assuming write-enable.
<6>mmc0: new high speed SDHC card at address b368
<6>mmcblk0: mmc0:b368 USD 7.46 GiB
<6> mmcblk0: p1 p2 p3
<6>EXT4 FS on mmcblk0p2, no journal
<6>EXT4-fs: mounted filesystem mmcblk0p2 without journal
and everything is working fine here.I use link2sd and my sd-ext is empty to,because link2sd is using data/sdext2.
why do you have this output: mmcblk0: p1 p2 p3 < p5 >
This is my output from parted in adb shell or terminall.Run the comands in bold
Code:
# [B]parted /dev/block/mmcblk0[/B]
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)[B] print[/B]
print
print
Model: SD USD (sd/mmc)
Disk /dev/block/mmcblk0: 8018MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 4194kB 7600MB 7596MB primary fat32
2 7600MB 7921MB 321MB primary ext2
3 7921MB 7987MB 65.8MB primary linux-swap(v1)
(parted)
alfsamsung said:
Tis is my output
Code:
<6>mmc0: Qualcomm MSM SDCC at 0x00000000a0400000 irq 24,113 dma 8
<6>mmc0: 8 bit data mode disabled
<6>mmc0: 4 bit data mode enabled
<6>mmc0: polling status mode disabled
<6>mmc0: MMC clock 144000 -> 49152000 Hz, PCLK 100000000 Hz
<6>mmc0: Slot eject status = 0
<6>mmc0: Power save feature enable = 1
<6>mmc0: DM non-cached buffer at ffc21000, dma_addr 0x0cdca000
<6>mmc0: DM cmd busaddr 0x0cdca000, cmdptr busaddr 0x0cdca300
<4>mmc0: host does not support reading read-only switch. assuming write-enable.
<6>mmc0: new high speed SDHC card at address b368
<6>mmcblk0: mmc0:b368 USD 7.46 GiB
<6> mmcblk0: p1 p2 p3
<6>EXT4 FS on mmcblk0p2, no journal
<6>EXT4-fs: mounted filesystem mmcblk0p2 without journal
and everything is working fine here.I use link2sd and my sd-ext is empty to,because link2sd is using data/sdext2.
why do you have this output: mmcblk0: p1 p2 p3 < p5 >
Click to expand...
Click to collapse
i don't know why i have this <p5> lol..you don't have.
and the parted output, mine is different..how i can make the output to a txt file?? lol i'm sorry but i don't know..can you help me?
If you are on win7 you have Windows Powershell.Use this instead of cmd.
Just mark the text and right click on it and now you can paste the text anywhere
Code:
# parted /dev/block/mmcblk0 print
parted /dev/block/mmcblk0 print
Model: SD SD08G (sd/mmc)
Disk /dev/block/mmcblk0: 7969MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 6597MB 6596MB primary fat32 boot, lba
2 6597MB 7666MB 1069MB primary ext3
3 7666MB 7937MB 271MB extended lba
5 7666MB 7937MB 271MB logical ntfs
#
with mini tool partition wizard i put a 1gb ext3, 256 mb of swap and the rest is fat 32...
the "p5" is ntfs????? why??? look at the atachment pls:/
try to remove the 2 partitions that is wrong.and make a new swap partition.Remember all partitions must be primary.
You can try this guide which you can run from recovery with card inside phone
And you need an external card reader if you use mini tool partition.Are you using this?
alfsamsung said:
try to remove the 2 partitions that is wrong.and make a new swap partition.Remember all partitions must be primary.
You can try this guide which you can run from recovery with card inside phone
And you need an external card reader if you use mini tool partition.Are you using this?
Click to expand...
Click to collapse
no. always when i partition my sdcard, i only connect the usb cable to the pc and click on "select to copy files to sdcard" and next use mini tool partition manager..using your link to tutorial, if i use the command to reboot recovery, the phone only boot, don´t go to recovery..if i manually put in recovery mode and proceed with the tutorial, the command give me this:
parted /dev/block/mmcblk0
/sbin/sh: parted: not found
i don´t have an external reader. laptop have but is for sd..i have a pen vodafone internet in home that have a reader too.will it work well with this?
i'm sorry something alfsamsung..i am limited at 8 thanks per day, so tomorrow i click thanks to you and again, thanks for this.thanks.
After you entered recovery, mount system, then continue with parted
don't work..always give me the same error:
parted /dev/block/mmcblk0
/sbin/sh: parted: not found
i don't know why
Are you on gingerdx?
Hi,
I have this phone: Sony Xperia Z L36h C6603
With this ROM: PAC-ROM http://forum.xda-developers.com/showthread.php?t=2208249
This MicroSD: 64GB Class 10
And I have tried to partition the SD like this, ever both partitions PRIMARY (the ext partition it's small because of test, when i will found the solution I'll do bigger):
1) FAT32 (60GB) - EXT2 (2GB)
2) FAT32 (60GB) - EXT3 (2GB)
3) FAT32 (60GB) - EXT4 (2GB)
4) FAT32 (60GB) - FAT32 (2GB)
PS: when I try all partitions, I already clean the cache and reinstall Link2SD.
PS2: The partitions was created by Minitool from the PC not from recovery.
And when I try to mount with the Link2SD said the same error for all test:
"The script can't be created.
mount: invalid argument"
I tried manual from the emulated console with the busybox too:
writing this comands:
su
mkdir /data/sdext2
mount -t ext4 /dev/block/mmcblk0p2 /data/sdext2
AND SAY THE SAME FUC***G ERROR: "MOUNT: INVALID ARGUMENT"
Please help me, I do test from days and I don't found the solution...... Please someone help
Oh ... Thanks... Can you help me, please?
Link2sd doesn't work. I can't remember the reason why it doesn't work.
Instead use folder mount....http://forum.xda-developers.com/showthread.php?t=2192122
Sent from my C6603 using XDA Premium 4 mobile app
Oh my god Thanks! It work