Sd card - G1 Android Development

I have a sd card. i partitioned it using paragon partition manager mounting sd card thru phone. THen moved apps2sd and then decide to delete partition. So i being unable to delete the partition used windows own partition management to delete all the partitions. Then i decided to again partitions the card. Now i can't. Paragon partition manager can't do it. Used the sd split(ques- do we need an empty card for that). My phone storage went to 0 mb. Can anybody help me to again partition it. I really need it with haykuro's 5.02 H as it has only 43 mb free space. Please!!! Help.
Thanks for reading and now please do something

charnsingh_online said:
I have a sd card. i partitioned it using paragon partition manager mounting sd card thru phone. THen moved apps2sd and then decide to delete partition. So i being unable to delete the partition used windows own partition management to delete all the partitions. Then i decided to again partitions the card. Now i can't. Paragon partition manager can't do it. Used the sd split(ques- do we need an empty card for that). My phone storage went to 0 mb. Can anybody help me to again partition it. I really need it with haykuro's 5.02 H as it has only 43 mb free space. Please!!! Help.
Thanks for reading and now please do something
Click to expand...
Click to collapse
I haven't used paragon before but I would suggest using gparted through an ubuntu(or some other linux distro) live cd. Basically you download the cd image, burn it onto a cd, restart your computer with the cd in and it'll bring up a little menu that gives you the option to start up in ubuntu off the cd. Then go to System->(can't remember, but it's the second option)->Partition Editor. It has a nice gui and you just choose the last device listed which should be your sd card(check the size to make sure!) and you can create new partitions. Making an ext2 partition correctly in windows is a tad... difficult.
EDIT: actually, you can just use this:http://gparted.sourceforge.net/livecd.php

Help
Can u please help me use it. I have portable ubuntu and now this. Can u provide step by step instructions or atleast give a hint to use it

Related

How to back up the ext2 partion on sd card?

Hi,
I have sucessfully moved my apps and caches to my 1.6gb ext2 partiton on my 8gb sd card.
I would like to back up the ext2 partition in case my sdcard fails.
How do I do this in windows xp?
Thanks
I'd love to find out how to do something similar. I just got an 8 GB card that I'd like to replace my 2 GB card with, basically, I'd like to clone the whole thing over.
Anyone have any ideas? I can do XP or Linux, just curious what software would be able to do the best job of replicating the card from one to the other.
Attach the card to your computer with an adapter (not the phone as it will be mounted by android). Download and install ext2ifs from here. You will now be able to see the files on the ext2 partition and can copy/paste them to where ever you would like.
Thanks, but I've had no luck with ext2ifs and memory cards. They even address it in their troubleshooting section:
I have a device with a removable media, for example a USB memory stick, a Compact Flash Card, a magneto-optical drive etc., which has a partitioned format and has more than one partition. When I insert that media, a drive letter appears for the first partition, but not for all the remaining partitions of the media. When I open "IFS Drives" of the control panel, the considered device appears as a hard disk drive, but there is no partitioning scheme shown for it. How can I create drive letters for the remaining partitions of that removable media? (USB hard disk drives are not affected.)
There is an unsatisfactory answer only: it is not possible.
Windows creates (and deletes) all the drive letters for pure removable devices or removable medias itself. Because the Ext2 IFS software need not to create them, it intentionally does not show any partition scheme for that drive.
Windows creates a drive letter for the first partition of the considered media, but not for the remaining ones. (Windows NT4, 2000 and even XP behave the same way in that regard).
You will run into the same problem if you have a removable media partitioned with two partitions of the FAT type on a computer, which has not installed the Ext2 IFS software! So there is one straight advice only: do not use removable media with more than one partition with Windows.
I'm guessing (someone else could correct if wrong) that if I were to just do the basic copy from one card to another - that would suffice?
If I just took the card, created two partitions (FAT32 and EXT2FS) on the larger card, then copied over all the files in both - that would work just fine?
Strange, I've never experienced any issues with ext2ifs, but yes a simple copy paste of both partitions has been all i needed. Just make sure to copy any hidden files as well.
Can we back it up using Ubuntu Live CD and just upload them to a new sd cards ext2 partition?
yes, but you would need multiple card readers.
andonnguyen said:
yes, but you would need multiple card readers.
Click to expand...
Click to collapse
Why can't you save it to the hard drive, replace the sd card, access the ext2 partition and upload the files that you backed up?
Although I'm not very familiar with Ubuntu, when I tried it last time it didn't even allow me to have access to the app and app-private folders within the partition.
What do I need to do to be able to back it up to the hard drive so I can try to upload it to another SD?
Hi,
Thanks for the suggestion.
But when I installed the driver, I can still see just the fat32 partition not the ext2 partition.
I am using a sdhc usb card reader so it is not connected to the g1.
It is like the ext2 partition does not exist through windows xp.
But when I put the card back in the g1 the files are taking up space through ternminal emulator. So the ext2 partiton does exist but still not accessable through windows.
Any other ideas?
jsunkist146 said:
Attach the card to your computer with an adapter (not the phone as it will be mounted by android). Download and install ext2ifs from here. You will now be able to see the files on the ext2 partition and can copy/paste them to where ever you would like.
Click to expand...
Click to collapse
bestwebs said:
Hi,
Thanks for the suggestion.
But when I installed the driver, I can still see just the fat32 partition not the ext2 partition.
I am using a sdhc usb card reader so it is not connected to the g1.
It is like the ext2 partition does not exist through windows xp.
But when I put the card back in the g1 the files are taking up space through ternminal emulator. So the ext2 partiton does exist but still not accessable through windows.
Any other ideas?
Click to expand...
Click to collapse
what comes up when you use
"busybox df -h" in the terminal emulator?
make sure you see something like "/dev/mmcblk0p2 (partition size) (used) (available) (used %) "/system/sd"
If not then that's the problem.
Hi,
In my phone , I do have that ext2 line /dev/mmcblk0p2
size 1.4gb - used 49 meg - free 1.3 gb
sdcard line /dev/mmcblk0p1
size 6.2 gb - used 5.2gb - free 981 meg
Thanks for the reply.
Binary100100 said:
what comes up when you use
"busybox df -h" in the terminal emulator?
make sure you see something like "/dev/mmcblk0p2 (partition size) (used) (available) (used %) "/system/sd"
If not then that's the problem.
Click to expand...
Click to collapse
If you're on Linux it is trivial to get the files off, if you'd like to make an exact image you can use the dd command. I suggest grabbing a live CD, as it will be a much easier process than making windows see ext partitions.
crater said:
If you're on Linux it is trivial to get the files off, if you'd like to make an exact image you can use the dd command. I suggest grabbing a live CD, as it will be a much easier process than making windows see ext partitions.
Click to expand...
Click to collapse
I have the Live CD, but can you elaborate on the "dd command" exactly. I'm a Linux noob and wouldn't mind backing up the partition. Last time I tried, I couldn't even get permissions to open the files no less copy them.
Thanks.
Insert the two SD cards into USB SDHC card readers. Launch the free MiniTool Partition Wizard program. Copy the ext2 partition you want to transfer on the first SD card to an unallocated area on the second SD card. MiniTool Partition Wizard under Windows does "see" multiple partitions on a USB drive even though Windows doesn't assign letters to those drives and they are invisible in Windows Explorer.
To increase the size of the ext2 partition on either SD card, use the Linux program GParted. Boot up with the GParted Live CD/USB iso file. Run GParted to resize the ext2 partition. (MiniTool Partition Wizard can move but not resize an ext2 partition.)

Need Help With Creating Fat32/EXT Partition

Ok I used Paragon 9 to create the 2 partitions one is 5.8 fat 32 and the other is EXT2 1.5. For some reason whenever I mount the sdcard it's not showing up in my computer as a drive, also when I go in terminal emulator I am not seeing it when I type the busybox command any clues? I am on H5. I am using H5.0.1
Ok I used paragon 9 to delete both partitions now my sd card isn't showing up in my computer but it shows up in paragon. Help
I got Paragon Partition Manager and think I might have it working.
chief2842 said:
Ok I used paragon 9 to delete both partitions now my sd card isn't showing up in my computer but it shows up in paragon. Help
Click to expand...
Click to collapse
i had the same problem. i just reformatted the sdcard to fat32 (using paragon), after i did that i made a partition and formatted that to ext2. hope that helps you out
I ran Suselinux ( you can download and run directly from CD without changing your computer) and ran their partition program and it work perfectly.
you should make fat the first partition, and ext2 the second.
Thanks everyone for the help, but I figured it out when I partitioned I forgot to rename the volume so that it could be seen in my computer.

Partitions, appstosd, MoDaCo

I used the recovery partition to create FAT32, ext2, and swap partitions on my sd card.
1) What size does it make each of these partitions?
2) What is each used for?
3) When loading the MoDaCo update.zip (and rebooting after first boot) after creating these partitions, what does it do with each of them? My free space on each seems to change, and I think it's loading some apps to the SD card? But not others?
4) How do you see how much space remains on the fat32 and ext2 partitions? Which one is shown in the SD card info settings page, and which one is used for USB mass storage mode? Neither seems to change much even after I install a bunch of >1MB apps.
Thanks for any help.
Also, what's taking up all my internal phone space? If the update.zip moved apps to the SD card, why do I only have 50 MB left of internal space?
jonnythan said:
I used the recovery partition to create FAT32, ext2, and swap partitions on my sd card.
1) What size does it make each of these partitions?
2) What is each used for?
3) When loading the MoDaCo update.zip (and rebooting after first boot) after creating these partitions, what does it do with each of them? My free space on each seems to change, and I think it's loading some apps to the SD card? But not others?
4) How do you see how much space remains on the fat32 and ext2 partitions? Which one is shown in the SD card info settings page, and which one is used for USB mass storage mode? Neither seems to change much even after I install a bunch of >1MB apps.
Thanks for any help.
Click to expand...
Click to collapse
32 mb swap, 500mb ext2 rest fat32
swap is for linux swap if its used in the rom, ext2 is for your apps, and fat32 is for your storage
yes it loads all of your /data/app and /data/app-private apps on your sd card, your /system/app stays there
you can do a df -h under adb to see your free space
jonnythan said:
I used the recovery partition to create FAT32, ext2, and swap partitions on my sd card.
1) What size does it make each of these partitions?
Click to expand...
Click to collapse
I believe it makes a 32MB Swap partiton, a 500 MB Ext2 partition and the rest fat32.
jonnythan said:
2) What is each used for?
Click to expand...
Click to collapse
The Fat32 is normal files like music, pictures, etc. The ext2 is used for apps2sd. Don't worry, 500MB is more than enough for this. The swap is used for bakcground applications so they run better without slowing the phone down as much.
jonnythan said:
3) When loading the MoDaCo update.zip (and rebooting after first boot) after creating these partitions, what does it do with each of them? My free space on each seems to change, and I think it's loading some apps to the SD card? But not others?
Click to expand...
Click to collapse
The Fat32 it shouldnt do anything. Obviously you will have less space because the other partitions are taking some of it's space. It loads the apps onto your ext2 partition but not all of them. System apps such as the calculator, browser, phone, etc stay on the system partition because it's faster.
jonnythan said:
4) How do you see how much space remains on the fat32 and ext2 partitions? Which one is shown in the SD card info settings page, and which one is used for USB mass storage mode? Neither seems to change much even after I install a bunch of >1MB apps.
Thanks for any help.
Click to expand...
Click to collapse
Do you have Windows, Linux or Mac. I don't know about Mac but I know Linux can view ext partitions natively (obviously, it's the native filesystem). For Windows you might be able to load the disk management application but if that doesnt show it you need a partitioning application or any other application that can read ext partitions off an sdcard. Don't know any off hand except paragon partitioning manager 9.0 (8.0 never seemed to work with my sd cards)
jonnythan said:
Also, what's taking up all my internal phone space? If the update.zip moved apps to the SD card, why do I only have 50 MB left of internal space?
Click to expand...
Click to collapse
See the above explanation.
nelson8403 said:
32 mb swap, 500mb ext2 rest fat32
swap is for linux swap if its used in the rom, ext2 is for your apps, and fat32 is for your storage
yes it loads all of your /data/app and /data/app-private apps on your sd card, your /system/app stays there
you can do a df -h under adb to see your free space
Click to expand...
Click to collapse
That answers my questions, thank you.
I found another though. I unmounted my SD card via Settings to see if the apps would fail to work in an effort to try to figure out if they were actually installed there. Predictably, they failed to work, but the system didn't pick the card back up after I reinserted it. So I rebooted the phone with the SD card in.
Then everything died. The apps didn't come back, but the phone still had them listed and tried to launch them, resulting in force-closes. An ext2 repair didn't fix it, so I just went back to my last Nandroid backup and reapplied update.zip.
I learned that this is a Bad Thing to do, but I'm wondering if this was a fluke or is it generally inadvisable to unmount the SD card for this reason?
im a noob to the whole android thing.but how do i partition the sd card and create ext2?????
jonnythan said:
I learned that this is a Bad Thing to do, but I'm wondering if this was a fluke or is it generally inadvisable to unmount the SD card for this reason?
Click to expand...
Click to collapse
Since this is a simple symlink, if you reboot the phone without the target of the symlink being there, and the phone tries to use it...
The results are left as an exercise for the reader.
Now for anyone who asks why it isn't smart enough not to break... that's like asking why your car doesn't run if you take half the spak plugs out.
posguy99 said:
Since this is a simple symlink, if you reboot the phone without the target of the symlink being there, and the phone tries to use it...
The results are left as an exercise for the reader.
Now for anyone who asks why it isn't smart enough not to break... that's like asking why your car doesn't run if you take half the spak plugs out.
Click to expand...
Click to collapse
Ah, but I'm asking why it still doesn't work once you put the spark plugs back in
It's not a big deal, I certainly learned not to do it.
jonnythan said:
Ah, but I'm asking why it still doesn't work once you put the spark plugs back in
It's not a big deal, I certainly learned not to do it.
Click to expand...
Click to collapse
Because booting the phone with it thinking the app was installed but it not able to find it trashed other data structures.
BTW, people trying to do stuff with the SD card removed after putting the apps on the SD card is probably one of the main reasons it currently is root only.
The OS needs to be modified to handle removable app storage gracefully (not something that happens in a standard phone.)
So should you format the card prior to flashing Modaco's ROM so the system knows to install all the apps to the ex2 partition. Or can you format the card AFTER you have already flashed Modaco's ROM and still have the apps automatically install on ext2 partition? I only ask cuz I formatted after flashing the ROM and wanna make sure it's installing it on the ext2.
I formatted mine afterwards and it moved all my apps over to the sd card automatically.

[Q] How to reverse an EXT partition off my sd card?

Okay so guys i've recently got a new sd card (32gb) for my nexus and ive made a 1gb ext3 partition on it and everthing a-okay but now I want to give my mom my previous sd card so she can use it. Its only a 4gb but its better than nothing but....Its got 2 ext partitions on it (ext2 & ext3) so thats using 2gb.....How can I reverse the partitions so i can have my 4gb of space back? And no i cant go out and buy a new one because we tight on cash at the moment
Thanks
Stu \m/
Well, Im hoping its as easy as just doing a reformat? if Im wrong, please pipe up, someone. But I think that should remove any and all partitions.
Boot into recovery and wipe ext partition. Simple.
You can also remove repartitions in Gparted (its possible to download gparted live cd)
Pop it back in your phone and format it from settings..sdcard..unmount..format.
If that don't get rid of it you can use windows. Go to disk management and remove both partitions on sdcard and create a new one to fill the card. I think anything less than windows 7 wont let you change partitions on an SD, in which case use gparted live CD or a Ubuntu live CD.

[Q] how can i see my sd card partitions...?

hi,
i made partitions by using clockwork 3.0, i select 1 gb when it ask first, and 512 mb for swap. However, i dont know if this 1 gb partition is ext2 or ext3 or somehing else...
how can i see my sd card partitions...?
thanks....
polatkanfatih said:
hi,
i made partitions by using clockwork 3.0, i select 1 gb when it ask first, and 512 mb for swap. However, i dont know if this 1 gb partition is ext2 or ext3 or somehing else...
how can i see my sd card partitions...?
thanks....
Click to expand...
Click to collapse
Hi polatkanfatih,
You can't directly access the ext2 partition in Windows. Basically ext2 is a linux partiton. But still there are some 3rd party softwares available in the market which adds ext2 abilities to windows Operating System.
As per what you have written, i understood that you used Clockwork 3.0 for partitioning your SD card.Personally i don't know about clockwire.
Instead i'm using ''MiniTool Partition Wizard Home Edition 5.2'' which you can download for free from the MiniTool website.The software is pretty easy to use.With this software you can see the partitons you have created(including ext2).You can't access the files inside the partion, but you can format any partition using MiniTool.
Hope this helps........
that program doesnt make that work.
i need some adb code or somthing else to see how my sd card partitioned, how many partition are there and their sizes?
have you tried typing
Code:
mount
in terminal emulator or adb shell? That should give you a listing of all mounted partitions...
i made it with 'parted' adb command.
thanks..
i didn't undestand but still reading

Categories

Resources