SD card prepare tool[req] - G1 Q&A, Help & Troubleshooting

hello all
just got an android and im still testing it. so please excuse my noobishness
question: is it possible to make a simple tool that runs on windows that would prepare and partition the sdcard with the three portions (fat32,ext2 and swap) and proper file system. is there something technically preventing such app of ever getting written. i know that some image burning software on widows can be used burn a cd/dvd that is not supported by the windows file system
if not, is it possible to write an android application to do all that. if so, anybody willing to write it
that would greatly simplify the process of installing the swap file enabled cooked roms. the current process is a bit messy

that is a great idea. I can do ext/2 or 3 with acronis disk director but I don't know how to do both and am nervous setting that up throught the phone although there is a really good guide on how to do that the phone.

Taken from http://forum.xda-developers.com/showthread.php?t=533731
How to partition your SD card from console (This requires the cyanogen recovery 1.3.1)
Example for my 8GB card.
Reboot and enter recovery (home+power) then go to console. Enter the below pressing "enter" after each line.
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 7526
mkpartfs primary ext2 7526 8038
mkpartfs primary linux-swap 8038 8166
quit
upgrade_fs
recovery
if your card isn't 8166 when you type print then you will need to modify those numbers to match your card size. You basically work back to figure out the totals. To figure it out, start with your cards total size. For example 8166 total Subtract 128 for swap (8038) minus 512 for ext (7526) the rest will go to fat32. Each partition starts where the other left off.
Click to expand...
Click to collapse
I personally have never tried this or don't know if this will help you but it was worth a shot.

xsnipuhx said:
Taken from http://forum.xda-developers.com/showthread.php?t=533731
I personally have never tried this or don't know if this will help you but it was worth a shot.
Click to expand...
Click to collapse
This is a perfect procedure.

THE GRIZZ said:
hello all
just got an android and im still testing it. so please excuse my noobishness
question: is it possible to make a simple tool that runs on windows that would prepare and partition the sdcard with the three portions (fat32,ext2 and swap) and proper file system. is there something technically preventing such app of ever getting written. i know that some image burning software on widows can be used burn a cd/dvd that is not supported by the windows file system
if not, is it possible to write an android application to do all that. if so, anybody willing to write it
that would greatly simplify the process of installing the swap file enabled cooked roms. the current process is a bit messy
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=534043
Keep an eye on that tool. If you look at this to-do list, it looks like automatically partitioning your sdcard is next up. But the procedure above is simple, and it works now if you don't wanna wait.

xsnipuhx said:
Taken from http://forum.xda-developers.com/showthread.php?t=533731
I personally have never tried this or don't know if this will help you but it was worth a shot.
Click to expand...
Click to collapse
It's a good way but you should subtract 32 for linux-swap. 128 for linux-swap is WAY to big.

h.nocturna said:
http://forum.xda-developers.com/showthread.php?t=534043
Keep an eye on that tool. If you look at this to-do list, it looks like automatically partitioning your sdcard is next up. But the procedure above is simple, and it works now if you don't wanna wait.
Click to expand...
Click to collapse
thanks thats exactly what i was talking about. i already partioned it using one of the guides. a simpler method cant hurt though

It is a great idea, the problem is that none of the tools for partitioning on windows are free. Maybe it would be possible to make a GUI that feeds commands to parted on the phone using adb? I don't know, I don't see what's wrong with booting in to gparted, seems like less troube and it's has a GUI.

Eh, 3-4 commands in Terminal isn't gonna kill anyone, but it might intimidate the noobs here and prevent them from fully enjoying their phone cuz they stop as soon as they see a wall of text.

h.nocturna said:
Eh, 3-4 commands in Terminal isn't gonna kill anyone, but it might intimidate the noobs here and prevent them from fully enjoying their phone cuz they stop as soon as they see a wall of text.
Click to expand...
Click to collapse
You're completely right, if people never use it they will always be scared of the terminal =P
Bah, if everyone used linux they could just use gparted, another easy way.

I used the cmd line I quoted early to ready a 8gb sd card for apps2sd and I just left out the linux swap part and it worked MINT. But if your scared of the terminal, try using the apps2sd app on the market and that will get your sd card ready.

Related

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?

tutorial link please

FINALLY got cyanogen rom working. i've almost pulled my hair out over buying this phone(att user so i had to unlock and learn root, etc.)
anyways, got .999 installed and saw the * Apps2SD is automatic! All you need is a second partition (ext).
can someone point me in the right direction on how to do the partition part? i have full version of paragon and know how to use it but just don't want to fubar anything up.
i apologize for the noob question but i just need to know what to set my 2gb(although i have a 4gb class 6 in the mail now) sd card to what size partitions so i can run the add2sd.
thanks guys and love the site.
There is a sticky post in this section. I found it in less than 2 seconds. without searching.
blackinches said:
FINALLY got cyanogen rom working. i've almost pulled my hair out over buying this phone(att user so i had to unlock and learn root, etc.)
anyways, got .999 installed and saw the * Apps2SD is automatic! All you need is a second partition (ext).
can someone point me in the right direction on how to do the partition part? i have full version of paragon and know how to use it but just don't want to fubar anything up.
i apologize for the noob question but i just need to know what to set my 2gb(although i have a 4gb class 6 in the mail now) sd card to what size partitions so i can run the add2sd.
thanks guys and love the site.
Click to expand...
Click to collapse
Example for 8GB card.
Reboot and enter recovery (home+power) then go to console. Enter the below pressing "enter" after each line.
Code:
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
NOTE: this will reformat your entire card, so i suggest you back up your files.
and btw tell me the size of your sd card and i will type up the code for you...
use this method to tell me your exact size
go into recovery via home+power
go to console
pres enter
type:
parted /dev/block/mmcblk0
print
i am pretty sure you can see what number represent your total card size.
Easier Way!!!
OK,so I also have Paragon Partition Manager 9.0 Special Edition.
1.Go into your Paragon Partition Manager Software
2.Click on Partition Manager at the first screen
3.Click on your SD Card drive (ie. F:/)
4.Click on create partition in the left hand side of your screen.
5.It will ask you how big you would like your partition to be,then what type of partition. Paragon only supports EXT2 and EXT3 if your looking for an EXT partition. Paragon also only supports Linux-Swap2 and not Linux-Swap3.
If you need any more help man let me know.
Follow me on Twitter: http://twitter.com/andy_lowe02
andy_lowe02 said:
OK,so I also have Paragon Partition Manager 9.0 Special Edition.
1.Go into your Paragon Partition Manager Software
2.Click on Partition Manager at the first screen
3.Click on your SD Card drive (ie. F:/)
4.Click on create partition in the left hand side of your screen.
5.It will ask you how big you would like your partition to be,then what type of partition. Paragon only supports EXT2 and EXT3 if your looking for an EXT partition. Paragon also only supports Linux-Swap2 and not Linux-Swap3.
If you need any more help man let me know.
Follow me on Twitter: http://twitter.com/andy_lowe02
Click to expand...
Click to collapse
well i wouldnt say ur way is easier... it does require using a computer, mine uses the phone.. and mine is simply typing what u see.
Also im pretty sure you need to use linux-swap and not linux-swap2
(i think 2 works but im not sure that its recommendable sicne the rom cookers themeselves use 1)
I would also use the method brian posted. its much more effective
thanks guys, i got adds2sd working and everything. on a 1gb right now until my new 4gb class 6 comes in this week.
i haven't done the swap things yet as i'm not sure of them just yet. i've learned quite a bit over the last week without trying to bug too many people on the forum. your replies are MUCH appreciated.
what is the different between ext 2/3 and linux-swap? i'm running my current 1gb 514mb fat32 and 445mb ext3.
ext3 has journaling which reduces corruption a lot. linux-swap is used as virtual memory.
thanks for the reply so in turn the swap will make the phone run faster right?
also, since no one answered my question in another thread:
although i'm running .999 when i press the camera button it open a box with a 'To:' entry and 3 button 'open', 'call', and 'send'.
i've looked in the settings to see if i can change what the camera button does(want it to open the camera like before obviously) without any luck..
any idea?
Click to expand...
Click to collapse
any ideas?
thanks again
blackinches said:
thanks for the reply so in turn the swap will make the phone run faster right?
also, since no one answered my question in another thread:
Click to expand...
Click to collapse
In theory swap should make it faster as it has more memory to play with.
For your other question, a file on the ROM containing the keymaps has been changed. The only way to change what the camera button does is pull it, edit it, and push it back.
AdrianK said:
In theory swap should make it faster as it has more memory to play with.
For your other question, a file on the ROM containing the keymaps has been changed. The only way to change what the camera button does is pull it, edit it, and push it back.
Click to expand...
Click to collapse
oh boy, i tried to avoid the adb stuff as i had a few problems with it. wonder how it got 'changed'.
i'll give it a try sometime.

SD card issues

So, I got a 4GB sdcard the other day. It came out of a blackberry a friend of mine was using. I formatted the card to FAT32 with the utility in windows 7, and everything seemed to be fine. I downloaded ext2fsd to be able to copy my ext partition to my new card. I followed the directions from the website about mounting the ext partition.
After I performed the steps above, my sdcard became unusable. I tried to take it out, and put it back in my card reader, and I get an error saying windows needs to format the drive, if I try to format it, it doesn't work. I've tried in gparted as well, and also get an error. I even tried from Amon's revorery, and sdparted in the console. I don't get errors with the latter two, but my card reader still says it's RAW.
I know that was lengthy, but I'm trying to figure out anymore steps to take, or if I should just throw the card away.
Thanks
ok..
wow.
You have to have 3 partitons. If you only format it with 1 partiton, you cant save data on a partition that doesnt exsist.
You have to go to recovery console and make a fat32, ext3 and linux swap partion.
I dont have the patience to go trhough it all with you because its in 100 different threads so .. use search?
Not trying to be rude, but this is stuff you can fin don your own here very easily if you werent expecting someone to do it for you
EDIT-- sorry, dont think i read fully what you did. I had this same thing happen today on a friends brand new 8gb.
HEres what I did since you have Amen ras recovery..
Format to just FAT32.
Turn on usb
give it a second to pop up and it will and check the size.
Then turn off the usb, go into parted on console, rm 1, then remake all 3 partitons according to the size of the card.
I suggest not using the full partiton in the recovery because it usualy screws up the swap.
From there you will be fine.
If it doesnt work that way, then im sorry, the card may be pooped or to low a class maybe?
crypysmoker said:
ok..
wow.
You have to have 3 partitons. If you only format it with 1 partiton, you cant save data on a partition that doesnt exsist.
You have to go to recovery console and make a fat32, ext3 and linux swap partion.
I dont have the patience to go trhough it all with you because its in 100 different threads so .. use search?
Not trying to be rude, but this is stuff you can fin don your own here very easily if you werent expecting someone to do it for you
EDIT-- sorry, dont think i read fully what you did. I had this same thing happen today on a friends brand new 8gb.
HEres what I did since you have Amen ras recovery..
Format to just FAT32.
Turn on usb
give it a second to pop up and it will and check the size.
Then turn off the usb, go into parted on console, rm 1, then remake all 3 partitons according to the size of the card.
I suggest not using the full partiton in the recovery because it usualy screws up the swap.
From there you will be fine.
If it doesnt work that way, then im sorry, the card may be pooped or to low a class maybe?
Click to expand...
Click to collapse
Yeah, I know you're not trying to be rude, but I know I need 3 partitions. I'm pretty aware of the way a sd card needs to be partitioned. I've tried everything mentioned. I think it's about time to call it quits. It's a class 2 card, so I don't think that's the issue, and I can't format in Ubuntu, or Windows. Oh well I suppose. Thanks.
You can try this app. Its called Sd formatter...it reformats the SD. IT worked for me.
http://panasonic.jp/support/global/cs/sd/download/sd_formatter.html
cholito said:
You can try this app. Its called Sd formatter...it reformats the SD. IT worked for me.
http://panasonic.jp/support/global/cs/sd/download/sd_formatter.html
Click to expand...
Click to collapse
I forgot to include this in the original list of things I tried, but I did give it a go. It is telling me the card is write-protected even though the switch on the adapter is set to the unlocked position. I've also tried it with a different adapter. I appreciate everybody's input.
well try using parted commands to write from block 0 to the last block and partition the whole thing as fat32
is that not working?
did you tried partitioning with RA 1.2.3 recovery?
@B-man007
I haven't tried writing the whole thing to FAT32 with parted. I'll give that a try tonight (don't have the card with me).
@cholito
I'm using RA 1.2.2, I think the script is the same, so I don't know that it would make a difference if I was using that or 1.2.3

apps2sd question

i searched for this and came up with some links, but none to verify my exact question which is, do i need a certain ROM, or recovery image, i have the RA-dream-V1.5.2. to apply apps2sd, i am currently running the latest cyanogen ROM, do i need a sd card reader or can it be done just by using terminal emulator, and i just bought a 4gb class 6 from new egg, and i was wondering what do you guys recommend for my ext2 partition space to be? so if you guys have any info on this it would be great if you threw it my way thank you!
Most rom have it enabled automaticlly when it sees an extX partition. The recovery is not required, but helpful if you don't have a linux system or other software to create the partitions on your computer. No card reader is required unless you want to format it that way. The only terminal commands you would need would be in the recovery console for you. The space is up to you and your needs and does not increase or decrease performance either way.
See the link below and it will help you doing it the manual way and with Amon_RA's recovery.
http://wiki.cyanogenmod.com/index.php/Apps2SD
thank you, you were a bunch of help, i shall try this when i get home tonight
No problem, let me know how it goes.
it asked me for swap-size and also ext2-size, im not to sure what numbers i need hmm?
If you plan on using a hero rom put in something for swap, if not put zero. The put in the amount of ext you want for apps. (normally between 256-512)
To upgrade the file system from ext2 -> ext3 use the command upgrade_fs in the recovery console.
Look at the link I gave you and scroll down to the Amon_RA section if you need more help.
it said upgrade_fs not found (nvm)
i got ext2 to ext3 thank you for all your help sorry for being a pain dude...
so to make sure i did it right, how much available phone space should i have?
It varies based on the cache you have for the apps, but I have 68mb but I have been running the same rom for a while. It should be around 80mb if you haven't done anything to build the cache, but I have the 1.33.2005 SPL which increases the internal memory size.
I get the same error "upgrade_fs not found" when I want to upgrade to ext 3 from console. From Amon_Ra's recovery I get an error too when I want to upgrade to ext 3. The other SD card I have worked perfectly with exact the same steps. What is wrong? Thanks
if you amon's isnt there an option that says upgrade ext2 to ext3? i guess thats the same?
sakumaxp said:
i guess thats the same?
Click to expand...
Click to collapse
As the upgrade_fs script, yes.
evilkorn said:
As the upgrade_fs script, yes.
Click to expand...
Click to collapse
yeah thats what i did because it did the not found error, so i was like meh, sounds like the same haha
sakumaxp said:
if you amon's isnt there an option that says upgrade ext2 to ext3? i guess thats the same?
Click to expand...
Click to collapse
I get an error when I press "upgrade ext2 to ext3" on my 2 GB card, the 1 GB card is done already.
sorry dude im a noob at this thing myself i guess one of the senior guys gotta answer this for you =\
Very strange, after many attempts suddenly I made the partitions, I don't know why but it worked
well thats good to hear =]

Categories

Resources