I have to start all over from scratch. right now I have one partition fat 32 and the other unallocated. I just need ONE partition.
How?
Just use a formatting-utility and format the whole card with one partition... That's it.
All those partitions have to be deleted first. I have been trying for 2 hours.
Reboot and enter recovery
Enter console
#parted /dev/block/mmcblk0
rm 1
rm 2
rm 3
#print (this is to find out the size of your card)
mkpartfs primary fat32 0 #### (replace #### with the info from print above)
ha forgot to mention...
after all of that then format it with your computer.
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
i am interested in creating a SWAP partition on my sd card to increase rom speed, even tho CMs roms are preety fast already. I hav e 8gb CD with about 500mb ext2. now if i use this method to create Swap partition:
Reboot and enter recovery
Enter console
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700 7732
#print (to verify we have the 3 partitions)
i know how to backup music and everything on fat32 to my PC(to later restore) because doing the above will reformat entire card.
my question is do i need to back up my ext2 with all my apps and data on it, and if so how? or will it do everything itself when i reboot my CM rom? i am trying to create this swap partition without really changing everything and without wiping
There are quite a few threads on this, but granted they aren't that easy to find (I'm looking at you, people who name their threads "PLZ HELPPPPP!!")
boot in to recovery and go to the console:
cd sdcard
mkdir app
mkdir app-private
cp /system/sd/app/* /sdcard/app/
cp /system/sd/app-private/* /sdcard/app-private/
All your apk's are now on your Fat partition, copy those two folders to your computer
after you have remade the partitions go back to the recovery console (don't do this in terminal, but you can use adb shell when the phone is in recovery mode). This time we have to mount your new ext partition as rw.
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
mkdir app
mkdir app-private
cp /sdcard/app/* /system/sd/app/
cp /sdcard/app-private/* /system/sd/app-private/
You're done. expect your phone to take a few minutes to boot up as it re-creates the dalvik-cache.
I'm having some problems, after an update, when I reboot my phone I get the openhome force close thing, I did all these searches and found people saying keep hitting force close and enter, well that didn't work, but i did notice once I rebooted without my sd card my phone would boot up fine. I'm running a rooted g1 (Cyanogen 4.0.4). So I decided to delete openhome from my sd since it's not in Market on my phone. But, everytime I boot with the sdcard in, I still get the openhome force close thing. I deleted the apk and searched for openhome and don't find anything else on my sdcard
Another thing, I didn't know if my sdcard was saving apps, a guy told me I needed 3 partions (fat32, ext2, and linux swap) I have Paragon Partion Manager 9.5. I have a 2gb sdcard made by Sandisk. I partion the first at 1.5, ext2 at 350mb, but when I go to make the 3rd partion (linux swap) it says no room, I even tried reducing the size of ext2 to 200mb but it still says not enough room for the third partion. Furthermore when I put my sd card in the G1 it's not showing the card as partioned. It says 1.393mb total space on sd card, then for sd secondary it says unavailable.
I'm lost and to make matters worse, I just rebooted my phone with sd card in and after a long android loop it went to a black screen and stayed there. I rebooted without sd card and it booted fine. I'm getting frustrated. thanks
So I deleted partions and did everything again.
My computer is showing fat32 1.2 GB, ext2 at 313mb, but it still wont let me make a 3rd partion, it says not enough space. Then when i put the sd card in my G1 it only shows 1.2gb total space on sd card, then for sd secondary it says unavailable.
#parted /dev/block/mmcblk0
#print
Now print is going to list all the partitions. The first number in each line is the partition number. Type "rm #" without quotes and replace # with every number listed by print.
#print
Verify that there are no partitions and write down the the exact disk size.
your linux-swap partition ends with (the disk size)
your linux-swap partition begins with (the disk size - 96)
your ext2 partition ends with (the disk size - 96)
your ext2 partition begins with (the disk size - 596)
your fat32 partition begins with 0
your fat32 partition ends with (the disk size - 596)
the following example is for a card with a disk size of 1732
mkpartfs primary fat32 0 1136
mkpartfs primary ext2 1136 1636
mkpartfs primary linux-swap 1636-1732
exit parted and type "upgrade_fs" in the recovery console
Fingerlickin said:
#parted /dev/block/mmcblk0
#print
Now print is going to list all the partitions. The first number in each line is the partition number. Type "rm #" without quotes and replace # with every number listed by print.
#print
Verify that there are no partitions and write down the the exact disk size.
your linux-swap partition ends with (the disk size)
your linux-swap partition begins with (the disk size - 96)
your ext2 partition ends with (the disk size - 96)
your ext2 partition begins with (the disk size - 596)
your fat32 partition begins with 0
your fat32 partition ends with (the disk size - 596)
the following example is for a card with a disk size of 1732
mkpartfs primary fat32 0 1136
mkpartfs primary ext2 1136 1636
mkpartfs primary linux-swap 1636-1732
exit parted and type "upgrade_fs" in the recovery console
Click to expand...
Click to collapse
i'm a little lost, do i do that in terminal emulator or do i boot with (home key and power key) then type in all that, do i risk bricking my phone when doing all that. before I do all that do I need to format my sd and delete all partions...i'm so lost i thought with Cyanogen I wouldn't have to do much to get rolling with apps2sd, is there some app i can purchase that will do all this for me?
this is all done in the recovery console. assuming you have cm-recovery 1.4.
boot with home+pwr
goto console
type:
parted /dev/block/mmcblk0
type:
print
result:
Model: Unknown (unknown)
Disk /dev/block/mmcblk0: ####MB
**we need the ####MB number**
there shouldn't be anything listed below the following:
Number Start End Size Type File system Flags
if there is type "rm #" replace # with the partition number
when i enter "parted /dev/block/mmcblk0" it says not found, thanks
Hi, just wondering if it is possible for me to format my ext partition on my SD without actually connecting it to my PC, I have looked around and have no clue of what command I can enter into the recovery terminal to do this, any help is appreciated lads, cheers.
Next Time ask question to Q&A section.
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
someones gonna be suspended lol.......enter parted from 1.4 cyanongen recovery
parted dev/block/mmcblk0 (hit eneter)
print (hit enter)
rm 2 (hit enter)
hopefully rm2 is ur ext3
then type
mkpartfs primary ext2 xxxx xxxx
xxxx= your last numbers from rm 1 example 3453 3901
the size of your ext3 befor you rm 2.
after initializeing this type
quit(enter)
now type
upgrade_fs (hit enter)
Only if you know magic!
Post in the Q&A, its there for a reason (the Q stands for Questions, like the one you have, and A stands for answers, like the ones you'll get for posting in the right section)
Daley87 said:
Hi, just wondering if it is possible for me to format my ext partition on my SD without actually connecting it to my PC, I have looked around and have no clue of what command I can enter into the recovery terminal to do this, any help is appreciated lads, cheers.
Click to expand...
Click to collapse
Someone may have a better way, but this is pretty much straight forward info (From Recovery Console):
STEP 1: Hit "Enter"
STEP 2: type '# parted /dev/block/mmcblk0'
In parted:
STEP 3: type 'rm 2'
STEP 4: type 'mkpartfs primary ext2 xxxxx xxxxx' (your partion size range "xxxxx xxxxx")
In terminal:
STEP 5: type 'upgrade_fs'
STEP 6: type 'reboot recovery'
That'll create a completely new ext3 partition.
bigslanki/jugg2000, you don't need to delete the old partition to go that method, just
Code:
parted dev/block/mmcblk0
mkfs 2 ext2
y
Actually I know that doesn't work because of a bug in parted, you have to do:
Code:
parted dev/block/mmcblk0
mkfs
y
2
ext2
but it's the same.
Sorry about asking here lads, completely forgot we have a Q&A section because my bookmark takes me straight here to the dev section, cheers for the replies though, much appreciated.
Daley87 said:
Sorry about asking here lads, completely forgot we have a Q&A section because my bookmark takes me straight here to the dev section, cheers for the replies though, much appreciated.
Click to expand...
Click to collapse
Here's now I normally wipe my EXT3
Code:
mount /system/sd
rm -rf /system/sd/*
Quick and easy.
this is quick, easy, painless, and will make sure nothing is left on the partition.
in recovery console
Code:
mke2fs -j /dev/block/mmcblk0p2
I hate to ask, but rather than create a new thread.... why would one format their Ext3 partition?
If you do format it, I suppose you could create Ext 4 at that point.... Any advantages of Ext3 vs. Ext4. I looked at Wiki but it confused the bejesus out of me.
s15274n said:
I hate to ask, but rather than create a new thread.... why would one format their Ext3 partition?
If you do format it, I suppose you could create Ext 4 at that point.... Any advantages of Ext3 vs. Ext4. I looked at Wiki but it confused the bejesus out of me.
Click to expand...
Click to collapse
to remove all of the files off of it, like if you are going from a hero rom to an AOSP rom, also from what i have heard there are no huge differences in ext4 that would be of significant benefit for your phone or sdcard. i have had an ext3 and ext4 partition (went back to ext3 after formatting because i didn't feel like entering in the extra commands, and i have not noticed any difference in ext3 or ext4), but if you do want to try ext4 and already have ext3 do this in the recovery console
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
e2fsck -fpDC0 /dev/block/mmcblk0p2
then you will have ext4, voila.
(sorry for my bad english and i still cant post link now)
According to http:// forum.xda-developers.com/showpost.php?p=20976390&postcount=294 ,
I think it may work to redirect partition into SD card, so that safestrap will work on non-VZW-phones.
Safestrap uses /preinstall as a new /system partition to install 2nd ROM on it,
We can make a new partition on SD card to replace "/preinstall".
Here is my steps:
backup your SD card and make partitions
boot to safestrap recovery with usb connected to your PC
plug to PC first, then boot to safestrap recovery mode,
now you can use adb shell to control your system.
1.1 make partitions on your SD Card (ref: http:// forum.xda-developers.com/showthread.php?t=534714)
SD card is /dev/block/mmcblk0 so use parted to modify it
Code:
~ # [B]parted /dev/block/mmcblk0[/B]
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]
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 7946MB 7946MB primary fat32 lba
(parted)
as you can see i have a 8G SD card, fullly used as fat32 partition,
we use rm and mkpartfs to modify our SD card partition, make sure you have backuped your SD card.
for compatibility i choose to make fat32 partition first,
(512mb/1G for new system size is enough, but i want my 2nd system partiton bigger)
Code:
rm 1
mkpartfs primay fat32 0 6G
mkpartfs primay ext2 6G 100%
after done all the things you can see your partition by print,
e.g.
Code:
(parted) [B]print[/B]
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 5996MB 5996MB primary fat32 lba
2 5996MB 7946MB 1949MB primary ext2
(parted) [B]quit[/B]
1.2 format fat32 partitions
Code:
busybox mkdosfs /dev/block/mmcblk0p1
1.3 make ext2 -> ext3
sometimes you have to mount /dev/block/mmcblk0p2 first, depends on the tune2fs version
Code:
tune2fs -j /dev/block/mmcblk0p2
or you can do ext3 -> ext4 by typing (i never tried, dont know if safestrap support ext4 ??)
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
e2fsck -fpDC0 /dev/block/mmcblk0p2
Modify safestrap to use our new partition as 2nd system partition
after you install safetrap 1.08, you have some files in your original system,
we have to modify the /preinstall partition (/dev/block/mmcblk1p23) to our new partition (/dev/block/mmcblk0p2 as example here):
2.1 modify /system/bin/logwrapper
find /dev/block/mmcblk1p23, replace to your new partition
Code:
# mount preinstall and move /preinstall/etc/rootfs/* to /
/sbin/busybox mount -t ext3 [B]/dev/block/mmcblk0p2[/B] /preinstall
2.2 modify fixboot.sh in /system/etc/safestrap/2nd-init.zip
find /dev/block/mmcblk1p23, replace to your new partition
Code:
/sbin/busybox ln -s [B]/dev/block/mmcblk0p2[/B] system
2.3 modify etc/recovery.fstab in /system/etc/safestrap/recovery.zip
find /dev/block/mmcblk1p23, replace to your new partition
Code:
/system ext3 [B]/dev/block/mmcblk0p2[/B]
reboot for reloading settings
safestrap need to reload settings, we need reboot.
modify your 2nd ROM to make sure everything works
safestrap loads etc/rootfs from your new partition,
we need to modify /dev/block/mmcblk1p23 to our partition.
you can modify the ROM (.zip) file directly or edit them after installing ROM
just find /dev/block/mmcblk1p23 and replace them to your new partition (e.g. /dev/block/mmcblk0p2 here)
Special thanks to hashcode.
Enjoy safestrap on non-VZW-phones !