Paritioning sd - G1 Q&A, Help & Troubleshooting

I have a 1gb sd card formatted to fat32 with the 1.4 recovery image. every time i try to partition the sd i get an invalid token error, can anyone help by telling me the commands i need to use to format my card for a hero rom

Try this. I have recommended it to lots of people.

What partitions are you trying to make?
in the recovery console:
Code:
parted
rm 1
mkpartfs primary fat32 0 xxxx
mkpartfs primary ext2 xxxx yyyy
mkpartfs primary linux-swap yyyy zzzz
quit
upgrade_fs
I would recommend at least a 2gb SD for multiple partitions
reboot

Related

reformat

Im running JAChero 2.7.3 and my mms isn't working(like most peoples)
I have no idea how to fix this I've been reading and reading and honestly i don't understand what to do at all(n00b) =/
I read that there was a way to fix it and it was to reformat your ext and linux-swap partitions, wipe, and reflash..
I did the drop console thign from the recovery screen and this is what i got
print
print
Model: Unknown (unknown)
Disk /dev/block/mmcblk0: 7969MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 7469MB 7469MB primary fat32 lba
2 7469MB 7969MB 500MB primary ext2
3 7937MB 7969MB 32.2MB primary linux swap
how do i reformat it?
Coopaman said:
Im running JAChero 2.7.3 and my mms isn't working(like most peoples)
I have no idea how to fix this I've been reading and reading and honestly i don't understand what to do at all(n00b) =/
I read that there was a way to fix it and it was to reformat your ext and linux-swap partitions, wipe, and reflash..
I did the drop console thign from the recovery screen and this is what i got
print
print
Model: Unknown (unknown)
Disk /dev/block/mmcblk0: 7969MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 7469MB 7469MB primary fat32 lba
2 7469MB 7969MB 500MB primary ext2
3 7937MB 7969MB 32.2MB primary linux swap
how do i reformat it?
Click to expand...
Click to collapse
rm 2
rm 3
mkpartfs primary ext2 7469 7937
mkpartfs primary linux-swap 7937 7969
quit
upgrade_fs
reboot recovery

CyanogenMod v4.0.2 Installation Question

Hey guys,
I'm about to flash my phone from JACxHero to Cyanogen and am a bit confused over what my partitions should be.
If I followed the instructions from the JACxHero 1.5r2 for the partitioning would be suffice?
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)
Next we need to "quit" parted and upgrade our ext2 partition to ext3
#upgrade_fs
Click to expand...
Click to collapse
Now I am pretty sure that these partitions are going to be fine for Cyanogen.
But would it run better with a larger linux-swap? JAC says to only have a 32MB one for the JACxHero ROM. What if I had a 92MB one for Cyanogen? Would there be a noticeable difference?
Thanks for the help in advance guys.
32 or 64 personally. Check things out here http://forum.xda-developers.com/showthread.php?t=551643

How to delete all partitons?

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.

Problems when restarting with sd card in and partion help! Thanks

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

Safestrap on ME863

(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 !

Categories

Resources