Phone doesn't like SD card after partitioning using Ubuntu - G1 Q&A, Help & Troubleshooting

I just got a new SD card (4 gig, class 6) and am attempting to set it up to have three partitions.
A fat32, an ext3 and a linux swap.
I'm using a rather nice tutorial from here on XDA that involves using Ubuntu. Things are going great until I remount the SD card to the phone.
I get an error message that says the card is either empty or using an unsupported format. It then wants me to format it using the phones onboard formater.
I'm at a loss here. I've seen that others seem to have a similar problem, but I don't know if there have been any fixes (at least I haven't found any).
Any suggestions?

So you got it partitioned but did you format the filesystems?

dumfuq said:
So you got it partitioned but did you format the filesystems?
Click to expand...
Click to collapse
Maybe not?
I formated so that I'd have a fat32, an ext3 of about 500megs and a linux_swap of about 32megs. After I saw that it created them I just closed the program.
Is there more to it than that?

If you just used fdisk, parted, or gparted then yes. All these programs do is parition the drive into logical units for filesystems. You still must create the actual filesystems.
From recovery
mke2fs -j /dev/block/mmcblk0p2
mkswap /dev/block/mmcblk0p3
If you just shrunk the fat32 with parted or gparted then that is it. However if you wiped the original partition then that must be formatted as well. You should use windows for that.

dumfuq said:
If you just used fdisk, parted, or gparted then yes. All these programs do is parition the drive into logical units for filesystems. You still must create the actual filesystems.
From recovery
mke2fs -j /dev/block/mmcblk0p2
mkswap /dev/block/mmcblk0p3
If you just shrunk the fat32 with parted or gparted then that is it. However if you wiped the original partition then that must be formatted as well. You should use windows for that.
Click to expand...
Click to collapse
Well that would have been good to know. I'll give that a try right now.

Related

Partition and A2SD setup

I have been trying to set up A2SD for a while now but i cant set up a partition on my sd card.
So far i have got adb to work, but when i connect my g1 to my computer (and mount it) it automatically disconnects when i go into the disk management section.
(my sd card is an 8 gig and trying to set it up on CyanogenMod)
shockaj said:
I have been trying to set up A2SD for a while now but i cant set up a partition on my sd card.
So far i have got adb to work, but when i connect my g1 to my computer (and mount it) it automatically disconnects when i go into the disk management section.
(my sd card is an 8 gig and trying to set it up on CyanogenMod)
Click to expand...
Click to collapse
you can't format your card by mounting it to windows....
if you don't have a card reader, read this tutorial
http://forum.xda-developers.com/showthread.php?t=534714
it has instructions for a swap setup as well but modify it to not have one if you dont want it
Or you can go to the link in my sig. Its a different way of setting up your partitions through a linux live cd.
recovery console (i assume you have 7948 mb, you can verify using "print" after typing "parted /dev/block/mmcblk0) don't type stuff in < >
parted /dev/block/mmcblk0
rm 1 <removes fat32 partition, might want to backup data on this>
rm 2 <removes ext partition, backup apps if you want to (adb pull)>
rm 3 <removes 3rd partition, if existent>
mkpartfs primary fat32 0 7436
mkpartfs primary ext2 7436 7948
quit
upgrade_fs <converts ext2 - ext3>
reboot recovery
flash ROM if you want to...
thanks everyone i was looking for a guide just like these!
your help is much apperciated!

cant reformat my ext2 partition

right now im trying to install jacheroski but to do so, i need to reformat my card to fit a new sized fat32 ext2 and linux-swap. so im using paragon partition manager to do so...and the fat32 went fine...but when i try and reformat the ext2 it wont let me at all...
what could this be? and how could i change the ext2 partition to something else or in size?
thx
imakamasta said:
right now im trying to install jacheroski but to do so, i need to reformat my card to fit a new sized fat32 ext2 and linux-swap. so im using paragon partition manager to do so...and the fat32 went fine...but when i try and reformat the ext2 it wont let me at all...
what could this be? and how could i change the ext2 partition to something else or in size?
thx
Click to expand...
Click to collapse
Use cyanogen's recovery console.
alt+x
#parted
#rm 2 <- this will delete the partition
#print <- find out what blocks are free
#mkpartfs primary ext2 xxxx xxxx <- the blocks that were free discovered from the above command
#exit
#reboot
I *think* these instructions should work, go ahead and test them out, if it doesn't, just delete all the partitions and use the instructions from JACHero thread (1st post, bottom) to repartition your sdcard.
well that wouldnt work for me at all...that whole parted process is screwy for me...but what i did was use some sdformatter from like sd association which formatted the whole card finally and now i can use partition manager again..but thx anyways =]

can't create partition on sd card all primary slots are occupied

im using Paragon and every time i try to create partitions i get the message can't create partition on sd card all primary slots are occupied. I even tried using parted on the G1 and it wouldnt let me. I cant figure it out why it wont let me create partitions.
Im using a transcend 8gb class 6 card
You can't create more than 4 primary partitions, are you trying to?
MvP77 said:
im using Paragon and every time i try to create partitions i get the message can't create partition on sd card all primary slots are occupied. I even tried using parted on the G1 and it wouldnt let me. I cant figure it out why it wont let me create partitions.
Im using a transcend 8gb class 6 card
Click to expand...
Click to collapse
when you used parted via the recovery console, did you use print and rm x (substitute the partition numbers from print) to remove the partition
david1171 said:
when you used parted via the recovery console, did you use print and rm x (substitute the partition numbers from print) to remove the partition
Click to expand...
Click to collapse
yes, and im just want to create the standard 3 partitions.
i have done it with 5 other cards with no problems
Have you checked the table type is msdos?
Try a new table anyway if you've no data on the card already.
Code:
mklabel
y
msdos
AdamPI said:
Have you checked the table type is msdos?
Try a new table anyway if you've no data on the card already.
Code:
mklabel
y
msdos
Click to expand...
Click to collapse
how do i do this?
MvP77 said:
im using Paragon and every time i try to create partitions i get the message can't create partition on sd card all primary slots are occupied. I even tried using parted on the G1 and it wouldnt let me. I cant figure it out why it wont let me create partitions.
Im using a transcend 8gb class 6 card
Click to expand...
Click to collapse
i use to use paragon, its not working because paragon is poo, and partes is really ez and it has to work, because it just does...follow these steps for your 8gig
Reboot into recovery [home+power]
Enter console hit enter
then type these commands
parted /dev/block/mmcblk0
print [that show u whatcha got]
rm 1 [removes 1st partition]
rm 2 [removes 2nd partition]
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700-7732 [or 7700-7764 if u want 64mb swap]
print [shows u whatcha got now]
when it says End? type in the last of ur linux-swap either 7732 or 7764 so..
7732 or 7764
print [shows final setup]
quit [exits parted so u can upgrade from ext2 to ext3]
upgrade_fs [this command will handle the ext2 to ext3 upgrade] and then u should be good to go, try it i promise u it will work.
good luck, veritasaequita
veritasaequita said:
i use to use paragon, its not working because paragon is poo, and partes is really ez and it has to work, because it just does...follow these steps for your 8gig
Reboot into recovery [home+power]
Enter console hit enter
then type these commands
parted /dev/block/mmcblk0
print [that show u whatcha got]
rm 1 [removes 1st partition]
rm 2 [removes 2nd partition]
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700-7732 [or 7700-7764 if u want 64mb swap]
print [shows u whatcha got now]
when it says End? type in the last of ur linux-swap either 7732 or 7764 so..
7732 or 7764
print [shows final setup]
quit [exits parted so u can upgrade from ext2 to ext3]
upgrade_fs [this command will handle the ext2 to ext3 upgrade] and then u should be good to go, try it i promise u it will work.
good luck, veritasaequita
Click to expand...
Click to collapse
ive done this already, didnt work.
MvP77 said:
how do i do this?
Click to expand...
Click to collapse
From parted in recovery console.
You start parted in interactive mode working on your sd card with
Code:
parted /dev/block/mmcblk0
then you can put in the commands.

Can't get apps2sd working with Cyanogen

I followed the tutorial on manually partitioning the SD card for the apps2sd. My understanding is that if the card is partitioned properly cyanogen will automatically move all my apps to the SD card. I have gone through the process a few times and can't seem to get it to work. Something else i noticed is that when i got to Settings - SD card & phone storage the SD card secondary says unavailable. I'm assuming that's why apps2sd isn't working. My internal phone memory shows 8.91MB of available space. I'm assuming this means its not working properly.
I'm using cyanogen 4.2.5 and the cyanogen 1.4 recovery image.
here is the link to the tutorial I followed.
http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
Ok this is what I would do.. follow the link in my sig and get AmonRa's recovery on your phone. then you can partition your sd card right from recovery and it will work i promise.
trevoryour said:
I followed the tutorial on manually partitioning the SD card for the apps2sd. My understanding is that if the card is partitioned properly cyanogen will automatically move all my apps to the SD card. I have gone through the process a few times and can't seem to get it to work. Something else i noticed is that when i got to Settings - SD card & phone storage the SD card secondary says unavailable. I'm assuming that's why apps2sd isn't working. My internal phone memory shows 8.91MB of available space. I'm assuming this means its not working properly.
I'm using cyanogen 4.2.5 and the cyanogen 1.4 recovery image.
here is the link to the tutorial I followed.
http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
Click to expand...
Click to collapse
What is the output of print when you are in parted?
/ # parted /dev/block/mmcblk0
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) print
print
print
Warning: /dev/block/mmcblk0 contains GPT signatures, indicating that it has a
GPT table. However, it does not have a valid fake msdos partition table, as it
should. Perhaps it was corrupted -- possibly by a program that doesn't
understand GPT partition tables. Or perhaps you deleted the GPT table, and are
now using an msdos partition table. Is this a GPT partition table?
Yes/No? y
y
y
Model: SD SU04G (sd/mmc)
Disk /dev/block/mmcblk0: 3965MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 3420MB 3420MB fat32 msftres
2 3420MB 3932MB 512MB ext3
3 3932MB 3965MB 33.2MB linux-swap(v1)
(parted)
followinginsanity said:
Ok this is what I would do.. follow the link in my sig and get AmonRa's recovery on your phone. then you can partition your sd card right from recovery and it will work i promise.
Click to expand...
Click to collapse
You are a man of your word. The new recovery ROM worked perfectly and it was incredibly simple. I can't believe I spent as many hours as I did trying to get it working using the manual method when I could have done this in the first place. Thanks so much.
I have the 1.2.5 file on my sdcard however when I try using terminal I put mount -a and it tells me are you root . I have cyanogen 4.2.5 installed and have got prompts requesting allow or do not allow ect. So then I close the program and reopen. I typed su then enter. Got the #sign . I then put mount -a and it tells me mount: mounting /dev/block/mmcblk0p2 on system/sd fail no such directory. Hmmm what do I do

no filesystem could mount root

I have made (approximately) 512MB ext2 partition and used INSTALL.EXE. But haret gives me "no filesystem could mount root" and reboot.
Any ideas? Tested gingerbread and CM6.1. Both gives same results.
Possibly bad SD card?
You also prepared a linux swap partition of 64 MB?
And did you make your fat32, ext2 and linux swap primary?
If those are the case, then it should work afaik.
Else you might want to try a different SD card yes.
Nope, i just had primary fat32 and logical ext2.
I have recreated the way, you said and it works. Thanks!
Glad to see I helped, have fun with android!
matejdro said:
I have made (approximately) 512MB ext2 partition and used INSTALL.EXE. But haret gives me "no filesystem could mount root" and reboot.
Any ideas? Tested gingerbread and CM6.1. Both gives same results.
Possibly bad SD card?
Click to expand...
Click to collapse
You must set fat32 primary in first partition, and set ext2 primary in second partition, Important! ext2 primary must less than 512MB!Just format Fat32, don't format ext2.

Categories

Resources