re partition question - G1 Q&A, Help & Troubleshooting

when i partitioned my card fat and ext2 i entered the wrong values
sd now has 484mg and fat is 7gb something, obviously i need to change this
is there a simple way to do this without reformating etc
cheers

Just reformat it again.

supreme, if you reformat using a windows computer, it wont reformat all 3 partitions.... or will it?

s15274n said:
supreme, if you reformat using a windows computer, it wont reformat all 3 partitions.... or will it?
Click to expand...
Click to collapse
No only FAT.

Right... so what is the *best* way to wipe the entire card and start over? I imagine there is a few strings of code you can type in console?

s15274n said:
Right... so what is the *best* way to wipe the entire card and start over? I imagine there is a few strings of code you can type in console?
Click to expand...
Click to collapse
Yea there are, I'm sure AdrianK will post them. I use Ubuntu to format mine. Thats what I'm just use to.

s15274n said:
Right... so what is the *best* way to wipe the entire card and start over? I imagine there is a few strings of code you can type in console?
Click to expand...
Click to collapse
yeah you'd need to use parted in Cyan's recovery, either that or something like Gparted (Linux FTW).

s15274n said:
Right... so what is the *best* way to wipe the entire card and start over? I imagine there is a few strings of code you can type in console?
Click to expand...
Click to collapse
its very easy, just go to recovery alt + x, then press
parted /dev/block/mmcblk0
rm 1
rm 2
rm 3
then remake all your drives. and what you want isnt "wiping" but repartitioning.
http://android-simplicity.blogspot.com/2009/08/how-to-6-how-to-partition-your-sdcard.html

ahh, okay... I have done that but did not realize that was repartitioning (wiping) the entire card. Thanks man.

Related

formatting microsd issue

using parted, copied commands from one of the hero threads, but my old partitions wont go away, has anyone seen that? does it mean the card is fried? i can do rm 1, rm 2, etc but when i type print, it shows the same exact partitions from before, as if they wont delete, running out of ideas, i even tried with a gparted boot cd.
Did you try formating the entire card to fat32 from the phone and then deleting the fat32 partition so you have a blank card?
due to apps2sd, cant even do it from phone since its all whacked out, wont format.
mdanerd said:
due to apps2sd, cant even do it from phone since its all whacked out, wont format.
Click to expand...
Click to collapse
can you format it in windows as a removable disk?
oddly just tried to format it in windows, didnt show this before, but says read only, tried a different reader, same thing, trying paragon now, but i have a feeling nothing will change.
mdanerd said:
oddly just tried to format it in windows, didnt show this before, but says read only, tried a different reader, same thing, trying paragon now, but i have a feeling nothing will change.
Click to expand...
Click to collapse
Might as well try it If that doesn't work try flashing a JF ROM and formatting sdcard from there. (within phone)
I think I have same problem.
I tried these ways.
http://forum.xda-developers.com/archive/index.php/t-291261.html
and
http://www.compuapps.com/download/Swissknife/swissknife.htm
and of cource this too.
http://forum.xda-developers.com/showthread.php?t=534714
But I couldn't solve the issue.
The MicroSD is SanDisk 8GB 6 class.
aoi0123 said:
I think I have same problem.
I tried these ways.
http://forum.xda-developers.com/archive/index.php/t-291261.html
and
http://www.compuapps.com/download/Swissknife/swissknife.htm
and of cource this too.
http://forum.xda-developers.com/showthread.php?t=534714
But I couldn't solve the issue.
The MicroSD is SanDisk 8GB 6 class.
Click to expand...
Click to collapse
you can't remove the partitions on your sdcard? Have you tried formatting within the phone? That *usually* helps.
aoi0123 said:
I think I have same problem.
I tried these ways.
http://forum.xda-developers.com/archive/index.php/t-291261.html
and
http://www.compuapps.com/download/Swissknife/swissknife.htm
and of cource this too.
http://forum.xda-developers.com/showthread.php?t=534714
But I couldn't solve the issue.
The MicroSD is SanDisk 8GB 6 class.
Click to expand...
Click to collapse
Have you tried ubuntu. Look in my sig for tut.
read only on your SD card / reader, means that the side of it, the lock is on. look for the little button and make sure its not locked, that would make it read only, and sound like the issue here
alritewhadeva said:
you can't remove the partitions on your sdcard? Have you tried formatting within the phone? That *usually* helps.
Click to expand...
Click to collapse
Like he said, re-formatting from the phone will remove all partitions and automatically format everything back to a single fat32 partition. Of course if all else fails...g-parted ftw!
alritewhadeva said:
you can't remove the partitions on your sdcard? Have you tried formatting within the phone? That *usually* helps.
Click to expand...
Click to collapse
Yes. I can't remove the partition on it.
Sure, I had tried to format with the phone million times.
supremeteam256 said:
Have you tried ubuntu. Look in my sig for tut.
Click to expand...
Click to collapse
Oh. It's nice info. will try later. I wish it would work. Thank you.
fleebailey33 said:
read only on your SD card / reader, means that the side of it, the lock is on. look for the little button and make sure its not locked, that would make it read only, and sound like the issue here
Click to expand...
Click to collapse
I used some of the readers and phones. And there is no lock staff on the microSD. I can read/write other microSD with the readers and phones. And I could read/write the microSD with them, before this happen.
h.nocturna said:
Like he said, re-formatting from the phone will remove all partitions and automatically format everything back to a single fat32 partition. Of course if all else fails...g-parted ftw!
Click to expand...
Click to collapse
I just had a single fat32 partition on it. I didn't do anything like converting to ext2,3,whatever...
Firstly, I could use the microSD, and I could format it. But it suddenly comes like that. Around that time, I was just trying many apps from Market. I didn't do any special staff on the phone...
finally got around to replying to this, yeah i tried via g-parted, and that failed too, i think the card is hosed, no big deal.

partition question

morning all
yesterday i spent most of my afternoon installing various roms and themes, and last night i was very brave and installed a recovery
im currently running CyanogenMod 3.9.10, now from what i understand this has auto apps2sd but will only work with a partitioned card. my card isnt partitioned.
so
am i right in thinking that 1.4 recovery can do this for me ?
does my card have to be empty / new format to do this ?
and can it be done at this stage of my phone ( theme, rom, radio installed )
many thanks guys
check out this thread it makes it very easy. if you do not have adb then just type in all the commands into the recovery console except in the beginning just hit enter in recovery console to start typing.
thanks for help
is there no easier way to do this ?
that looks complicated
with cm recovery, it's not hard at all. actually, i've done it several times in one day. haha honestly, it's a hell of a lot easier than how i had to partition my card in the first place. i spent hours trying to figure it out, and i praised cyanogen when that recovery image came out.
grandomegabosses said:
with cm recovery, it's not hard at all. actually, i've done it several times in one day. haha honestly, it's a hell of a lot easier than how i had to partition my card in the first place. i spent hours trying to figure it out, and i praised cyanogen when that recovery image came out.
Click to expand...
Click to collapse
dont suppose you could advise me on how i go about it could you please ?
you're going to want to backup the files already on your card
grandomegabosses said:
you're going to want to backup the files already on your card
Click to expand...
Click to collapse
i have done that
okay, i'm not sure if you need to format it, but you might want to, just for good measure.
boot into recovery and go to console. hit enter and type in parted /dev/block/mmcblk0 then hit enter again.
you'll get a whole buncha text telling you your in GNU parted. type in:
p then enter (just to make sure you can see your partitions and stuff)
you should only have 1 partition and it should be a fat32. enter
rm 1
that'll delete the partition. then enter
(these are the commands i put for my 2gb card. change the partition sizes to fit your card. 512mb is a good ext partition. if you're gonna do swap, 32mb is a safe starting)
mkpartfs primary fat32 0 1501
mkpartfs primary ext2 1501 1981
mkpartfs primary linux-swap 1981 2013
then enter p again to make sure you've got everything squared away. enter quit and it'll tell you that you might need to upgrade your filesystems.
enter upgrade_fs and wait until it gives you a # and reboot.
what size card are you using, anyway?
grandomegabosses said:
what size card are you using, anyway?
Click to expand...
Click to collapse
wow
thanks for that hope it works
its 8gig card
when you hit p in GNU parted, make sure you change the partition sizes for your 8gb card. i know... my card is puny! haha
also, do you have adb?
grandomegabosses said:
when you hit p in GNU parted, make sure you change the partition sizes for your 8gb card. i know... my card is puny! haha
also, do you have adb?
Click to expand...
Click to collapse
no i dont have adb ? whats that do ?
i just wondered. it does WAYYYY to much for me to explain right here. haha i just find it easier to type out the commands in the adb shell. but i'm not going to explain how to get adb going... it took me long enough to get it myself... haha
well thanks for the help, im gonna have a crack at this now
see you the other side
good luck
ok done that
when i says i may need to update... update what ? exactly
update your ext partition. that's what the upgrade_fs part was about. sorry
please excuse my sheer lack of knowledge...but how do i do that..i think im lost here
just type in upgrade_fs and hit enter and it'll do it automatically. wait for the # come up after that and type reboot then enter and it'll reboot
grandomegabosses i could kiss you put i wont !
your a star ! many many thanks for helping me out

Removed SD Card

Sorry if this has been adressed before, but i did use the search and i cannot quite figure out what to do next. I might have dropped my phone the other day, and since then none of my apps run from the SD becase it thinks that it was ejected. So, i wiped and installed a clean JackXrom again, and it was fine for about 20 min, then phone locked up, and when i restarted, i get the same problem. Should i format the partitions on the card perhaps? I was trying to avoid that, so any work around would be helpfull.
Latest radio, spl. Class 6 8 gig SD card.
Thanks.
te5ter said:
Sorry if this has been adressed before, but i did use the search and i cannot quite figure out what to do next. I might have dropped my phone the other day, and since then none of my apps run from the SD becase it thinks that it was ejected. So, i wiped and installed a clean JackXrom again, and it was fine for about 20 min, then phone locked up, and when i restarted, i get the same problem. Should i format the partitions on the card perhaps? I was trying to avoid that, so any work around would be helpfull.
Latest radio, spl. Class 6 8 gig SD card.
Thanks.
Click to expand...
Click to collapse
sounds like a corrupted partition try repair ext file systems if that dosent work youve got to format partition and reinstall all apps.
btw does youre fat32 partition work?
te5ter said:
Sorry if this has been adressed before, but i did use the search and i cannot quite figure out what to do next. I might have dropped my phone the other day, and since then none of my apps run from the SD becase it thinks that it was ejected. So, i wiped and installed a clean JackXrom again, and it was fine for about 20 min, then phone locked up, and when i restarted, i get the same problem. Should i format the partitions on the card perhaps? I was trying to avoid that, so any work around would be helpfull.
Latest radio, spl. Class 6 8 gig SD card.
Thanks.
Click to expand...
Click to collapse
If it only happened once it shouldn't be an issue, but if it does it wouldn't hurt to format your ext.
In recovery
mount -o rw /dev/block/mmcblk0p2 /system/sd
rm -r /system/sd/*
I tried repairing my ext, no luck.
Whenever i try to mount in recovery console i get error : No such file or directory
te5ter said:
I tried repairing my ext, no luck.
Whenever i try to mount in recovery console i get error : No such file or directory
Click to expand...
Click to collapse
Sounds like you need to delete the partition and make a new one, as it can't be read. If you're going to use parted from you're phone then you'll probably have to start over and recreate fat (and linux-swap if you had one) too. If you're using paragon or Gparted you should be able to recreate just your ext.
I cant recall which tutorial i fallowed, but it was all done through the terminal or recovery. Could you possibly point me to the right thread?
AdrianK said:
Sounds like you need to delete the partition and make a new one, as it can't be read. If you're going to use parted from you're phone then you'll probably have to start over and recreate fat (and linux-swap if you had one) too. If you're using paragon or Gparted you should be able to recreate just your ext.
Click to expand...
Click to collapse
if you can remember the start and end of youre ext partition i think you can do this in parted by typing print then note down the start and end then type mkpartfs primary ext2 start - end
te5ter said:
I cant recall which tutorial i fallowed, but it was all done through the terminal or recovery. Could you possibly point me to the right thread?
Click to expand...
Click to collapse
Here you go, follow the second section.
http://android-simplicity.blogspot.com/2009/08/how-to-6-how-to-partition-your-sdcard.html
Everytime i try to mount in recovery i get "mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: device or resource busy"
I'm lost.
pull your battery our for 30 seconds or so. remove your sd card then reinsert it and then try again. if that doesnt work then do what the others guys have said and try to reformat your sd card and start from scratch.
AdrianK said:
Sounds like you need to delete the partition and make a new one, as it can't be read. If you're going to use parted from you're phone then you'll probably have to start over and recreate fat (and linux-swap if you had one) too. If you're using paragon or Gparted you should be able to recreate just your ext.
Click to expand...
Click to collapse
Actually, with Parted you can just rm and mkpartfs any partition you want without affecting the other partitions.
I bit the bullet and just formated all the partitions.
Thanks anyways guys.
My advice for next time or any body else reading would be to download a live CD for ubuntu or fedora or similar and boot your PC off that - it's graphical and v. easy.
Or just dump windows altogether and go for linux ;-)
Smiffy.
Lordsmiff said:
My advice for next time or any body else reading would be to download a live CD for ubuntu or fedora or similar and boot your PC off that - it's graphical and v. easy.
Or just dump windows altogether and go for linux ;-)
Smiffy.
Click to expand...
Click to collapse
Yeah Gparted is amazing problem is then you have to walk the person through downloading, burning the image...which can be painful.
This is still happening, fresh format on sd card partitios and a wipe and clean install of Jacxrom.
Bad sd card? Or the phone?
JACxROM [v1.3]
I am attempting to flash to this ROM. Everything seems to go as describen in other posts, but when I power up the phone, I never make it past the splash screen. Any thoughts??
sorry
Sorry I posted this in the wrong place, I will move it.
rberger13 said:
I am attempting to flash to this ROM. Everything seems to go as describen in other posts, but when I power up the phone, I never make it past the splash screen. Any thoughts??
Click to expand...
Click to collapse
Bump, dead SD card?
partition corrupted anyway to recover?
I need help please!
I was running cyanogen 4.0.3.1 just installed today morning then changed theme to enoch 1.12 the newest one that worked fine. Updated the browser to loccys Then installed the HTC music and when finally rebooted the phone it was working fine until I noticed I had none of my apps on the sdcard.
All I have is syste/app folder which runs internally I think everything else does not work. It's like my sdcard is not in.
I shutdown rebooted and waited. Then removed sdcard rebooted and inserted the card one fully powered on and it is saying it wants to format it.
I get home turn my ubuntu system on and it detects it as a ext3 partition yet nothing inside. and now no fat32 partition or linux-swap.
anyways to recover or am I SOL?

SDCARD

Well I'm on xROM with HardSPL, stop the flaming I know. My SD CARD doesn't work on xROM so I have to someone downgrade without using a SD Card. Anyway I can do it so I can pop my SD Card back in and reroot? Or somehow change back to Cyan's ROM?
how are you on xRom with the hard spl?
Hey you are up late, wow you have nothing but problems with your sdcard, might want to invest the $15 for a new one.
Can you mount your sd in recovery console by typing ums_enable
That's the thing I had HardSPL and put the xROM in my SDCard and ran it through bootloader. Now nothing works, only calling and messaging. No Wifi nothing. I need to get out if you can help.
gridlock32404 said:
Hey you are up late, wow you have nothing but problems with your sdcard, might want to invest the $15 for a new one.
Can you mount your sd in recovery console by typing ums_enable
Click to expand...
Click to collapse
I can try.
Strless01 said:
That's the thing I had HardSPL and put the xROM in my SDCard and ran it through bootloader. Now nothing works, only calling and messaging. No Wifi nothing. I need to get out if you can help.
Click to expand...
Click to collapse
wtf..... ummm boot into recovery with a cm rom on your sdcard. wipe your phone. flash the cm rom.
I was also wondering that one too david, I was pretty sure you needed the danger spl to run xrom, maybe he means the xrom theme
How do I get back to cyans ROM?
Did you make a nandroid backup at any time like I told you too
gridlock32404 said:
Did you make a nandroid backup at any time like I told you too
Click to expand...
Click to collapse
That would be something I failed at. ): But I'm sticking my card in my dads phone, formatting it then sticking it back in the G1 hope this works!
It's working fine on his phone but not on mine. FML.
His phone prob did not format to fat32, can you mount your card in recovery, try mounting it to your computer with the command I gave you
gridlock32404 said:
His phone prob did not format to fat32, can you mount your card in recovery, try mounting it to your computer with the command I gave you
Click to expand...
Click to collapse
I do, do that but it doesn't read it. It says format and I press it and then it says Unable to format.
It's working fine on my dads phone.
Strless01 said:
I do, do that but it doesn't read it. It says format and I press it and then it says Unable to format.
It's working fine on my dads phone.
Click to expand...
Click to collapse
try to partition it via the recovery console
Try it on your other computer, have you tried throwing against a way yet
Did you ever get a cd-r so you can make a live ubuntu cd yet
david1171 said:
try to partition it via the recovery console
Click to expand...
Click to collapse
How do I do that? I am in the console.
Oh yeah, now that you have cm-recovery 1.4, you can do that now
Hey david can you give this nice young man the commands
gridlock32404 said:
Oh yeah, now that you have cm-recovery 1.4, you can do that now
Hey david can you give this nice young man the commands
Click to expand...
Click to collapse
Is it going to erase all my contacts again?
Formating the card. No. The wipe you are going to need to do before you flash a new rom on your phone, yes and you will have to sign back into google again
gridlock32404 said:
Formating the card. No. The wipe you are going to need to do before you flash a new rom on your phone, yes and you will have to sign back into google again
Click to expand...
Click to collapse
Will I be able to sign in with WIFI? And I'm okay with the contacts, but whats the command to partition it?
To delete existing partitions and repartition via recovery console, here are the commands once you've entered console and then hit enter to get to the prompt:
Copied & pasted from another thread HERE...
parted /dev/block/mmcblk0
print (to verfiy we know what size card we are dealing with. Mine was 8166 read below if yours is different)
rm 1 (if you had more than 1 partition you would want to rm them as well)
mkpartfs primary fat32 0 7622
mkpartfs primary ext2 7622 8134
mkpartfs primary linux-swap 8134 8166
quit
upgrade_fs
recovery
If you just want one partition for fat32, just use the first mkpartfs command and use 0 through whatever the total size of your card is...

Easiest way to remove ext3?

I'm on a myTouch right now, and thought I'd try running apps off the phone rather than the sd card for once. I can't for the life of me find any good instructions for completely removing the ext3 partition. Would I be best off doing this through gparted? Is there any command I could pop into sdsplit to do what I want? Thanks!
mayormullet said:
I'm on a myTouch right now, and thought I'd try running apps off the phone rather than the sd card for once. I can't for the life of me find any good instructions for completely removing the ext3 partition. Would I be best off doing this through gparted? Is there any command I could pop into sdsplit to do what I want? Thanks!
Click to expand...
Click to collapse
You could use Ubuntu.
wow, did you even bother looking first before posting
downland amon ra"s recovery that is meant for the my touch and in that is a option to partion or format
gridlock32404 said:
wow, did you even bother looking first before posting
downland amon ra"s recovery that is meant for the my touch and in that is a option to partion or format
Click to expand...
Click to collapse
not sure if you guys on mytouch can use cyanogen but if you can, drop into console, and run parted
here are the commands,
Code:
parted /dev/block/mmcblk0
now that you are in parted, type
Code:
print
type
Code:
rm 2
to remove your ext partition, only problem with this is that if you are usng linux swap, a2sd will get all screwy so you will also need to
Code:
rm 3
i recommend doing
Code:
rm 3
rm 2
this will help to ensure you dont run into problems... hope this helps... btw i got the info on using parted and CM recovery1.4 from here
http://forum.xda-developers.com/showthread.php?t=534714

Categories

Resources