How to partition SD card for Android? - Tilt, TyTN II, MDA Vario III General

Can anyone make a tutorial that shows how to partition SD card for the Android Eclair for Kaiser -- Dark Themed ? Please, greatly appricated if you did =]

Moved as not ROM Development.
Think your best bet is to PM one of the peeps releasing builds to ask if they can? or ask in one of the numerous droid threads.

I suggest using Gparted.
As I understand, Android can read ext2, which is light years ahead of fat32.
Warning: The following assumes that Andriod's file system and base operation operates like GNU/Linux
I'm not sure this will work... or how to get android to do this... but:
In GNU/linux, you would make a line in /etc/fstab for the device, unless it is handled by an automounter they designed.
Anyway, you can resize the fat32 to two partitions, and you should be able to make a 2ndary partition on the SD for linux.
I assume you are running windows, so to run Gparted, you will need to use the Live CD.
http://gparted.sourceforge.net/download.php
A sample fstab line:
Code:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=7d126676-b613-457f-b50f-5f69929b06d6 / ext3 errors=remount-ro 0 1
/dev/sda6 /home ext4 errors=remount-ro 0 1
I'd assume they have some sort of andriod application that opens a terminal with bash, or edit the /etc/fstab by some other means.
Best of luck!

Or you can just do this in Fat32
http://forum.xda-developers.com/showthread.php?t=267475

Thanks for the attempt at an explanation. I'm in the same boat as the original poster. I think the problem is that Android is currently running from my SD card on my Tilt, so I don't know if it's possible to partition the card while Android is running.
I've got a Windows 7 PC at home, and I can boot it from a Linux CD if needed... but I'm a total Linux NEWB. I'd really appreciate it if someone can point me to instructions for how to partition a 4 GB SD card to accommodate an Androd build along with being accessible form Windows Mobile.
Can someone give an overview of the process and maybe some partition size guidelines?
Thanks,
-Brett.

Google Can
Gparted is good, it lets you resize partitions without formating them. It's part of the Ubuntu live cd's.
http://gparted.sourceforge.net/larry/resize/resizing.htm

Related

Help with Hero w/Rosie, No Space Left?

Since previous thread was locked, figured id try again in a new section...
Ok folks, I left the android scene about 2 months ago, and when I came back, theres ROMs coming quicker than I can handle, and all of a sudden I have at least 5 to choose from, including multiple methods to obtain Apps2Sd.
I decided to try the new "Hero w/Rosie" build, and well it looks pretty nice from the pictures, but its a b**ch to put on the phone. I have a PVT Android G1, newest radio, newest SPL (Haykuro's) and newest recovery, with the tweaks. I also have a linux distro and paragon partition manager, all the required tools (besides the actual ROM and the app_s)
So I have the card partitioned, ext2 and one fat32. I also have the apps2sd located on root of the fat32 partition. I followed Lawrences tutorial for installing and when it came down to typing the commands in terminal to copy the app_s to the /system/sd, it stops withing 2 minutes to tell me theres no space left.
So I tried copying the app_s on the actual ext2 partition (Spent a good 4 hours getting Windows 7, Windows XP, and Ubuntu 9.04 to boot through my bootloader) and still no luck, whats even worse is my sd card cant be used at all by the phone. Ignoring the new problems, I typed busybox df -h and to my surprise, /system/sd did not exist, hence my ext2 partition wasnt being picked up at all by the phone....
Im at a complete halt and have NO clue what to do next, can anyone lend me some of their time and help me?
The modified boot image should automatically detect the ext2 partition and mount it if you did the partitioning correctly.
If it's not mounted, /system/sd is just a normal folder under /system, which explains the not enough space problem.
What you should do is check whether the EXT2 partition is the SECOND partition on your SD card and it should be a MAIN not EXTENDED partition.
Ironically, ive done that as well.... I used paragon to make an extended partition in the beginning and that didnt work, so then i tried it again at the end. Both did not work, but I shall try again and let you know how it goes. Maybe my SD card is shot, since it doesnt want to work at all....
Ill post as soon as I try again
Well... amazingly it worked this time! Surprisingly, I did the same steps as I have been doing, but I'm guessing this time what made the difference was extracting the app_s in linux and then copying it straight to, then unmounting both parititions. very odd, but thank you so much!

SD card prepare tool[req]

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.

How to install data partition on sdcard partition

I install a lot of application so I constantly run out of space on NAND. So I tried to install Myn's Warm Donut using the following method so the system stuffs will be on NAND and the data will be on the sdcard. It is slower but I can install lots of applications now.
Requirement:
-You have to have Myn's Warm Donut or other android rom installed already on NAND. This means that both the system and the data is on NAND.
-A USB reader for your micro sdcard
Overview:
The main steps are 1) install adb 2) partition your sdcard into three partitions 3) reinstall the rom.
Steps:
1- Install the Android SDK here http://developer.android.com/sdk/index.html. This will give you the adb tool which is a remote terminal program. You will have to locate the adb binary to run it.
2a- Connect you vogue to the desktop. Make sure that USB debug is enable on the vogue. It should be by default.
2b- Run the adb:
Code:
adb shell
2c- Repartition the sdcard using parted. You need some experience with parted which is very popular in linux. Remember, this step will destroy the data on the sdcard.
Code:
parted /dev/block/mmcblk0
print
At this point you should see the list of all partitions on the sdcard. For most of you, there will be one partition. Remove all the partition using the rm command with the partition number.
Code:
rm 1
Now your print should return empty. So create three partitions using the following commands. Basically, you want three partitions. The first one is your sdcard folder which you always had. The third one is for your data. The second one is just filler because the current installer only install to the third partition.
Code:
mkpartfs primary fat32 0 6500
mkpartfs primary linux-swap 6500 6756
mkpartfs primary ext2 6756 8168
set 1 lba
Note that the size is depended on you. I want around 6.5GB on my 8GB card to be the sdcard partition for musics and videos. So what's left is around 1.5GB for the data partition. I just give the filler 256MB so maybe I can do something with it later. The partition number might be different with other rom. You have to play with it.
After this step you should see something like this when you do print:
Code:
Number Start End Size Type File system Flags
1 32.3kB 6500MB 6500MB primary fat32 lba
2 6500MB 6756MB 256MB primary linux-swap(v1)
3 6756MB 8168MB 1412MB primary ext2
Now you can quit parted and exit the console by:
Code:
quit
exit
3a-Turn off your phone and put the sdcard into a USB reader so you can copy the andboot installation files over.
3b-Put the card back, run the installer and choose the data on sdcard option. You should be good to go.
As you usual, you are solely responsible for your phone and your data.
Hope this helps.
I have another solution in the works that will solve the out-of-space on data very easily on ANY build and also have some other nice advantages: http://forum.xda-developers.com/showthread.php?t=750768
So you put the apps on to ext2 partion and the data stay in NAND? In that case it would be better. The problem for the vogue is that the installer on the Myn's rom only put everything on the data partition on to an ext2 partition. On the vogue other rom is slow IMO. Maybe someone can separate the data and apps in the next build?
Anyway, do you know how can I extend the system partition so it can span to 256MB? Right now it is only 128MB because the data presumably should extend the other 128MB.
kallt_kaffe said:
I have another solution in the works that will solve the out-of-space on data very easily on ANY build and also have some other nice advantages: http://forum.xda-developers.com/showthread.php?t=750768
Click to expand...
Click to collapse
Hi csbert,
I am new to ADB. When I typed adb shell, I got device not found. Maybe I need a driver or something? thanks
update: I think I found the instruction on how to obtain the usb driver, going to try now
When you connect to vogue to your computer, it has to say "USB debugging connect". If it doesn't, maybe you need to enable USB debugging in Settings -> Application Settings -> Development.
Cookiekaikai said:
Hi csbert,
I am new to ADB. When I typed adb shell, I got device not found. Maybe I need a driver or something? thanks
update: I think I found the instruction on how to obtain the usb driver, going to try now
Click to expand...
Click to collapse
partition program
i am looking for a good free partition program for windows xp that can partition my sd card from a card reader
i have used paragon partition but it always ask to restart the pc and then partitions the sd from there
i have had it causes my laptop to crash twice now and both time had to have a friend repair my laptop
i am looking for a program that can partition the sd with out restating the computer if that is possible
thank you
nate
Hi,
I don't think you can partition the sdcard for the phone using an xp computer. That's why I wrote this instruction. The partition android uses is from linux. You can try a linux machine but i heard that doesn't work. You can still connect to the phone using adb and format the sdcard as I explained.
Cheers
evilclosetmonkeynate said:
i am looking for a good free partition program for windows xp that can partition my sd card from a card reader
i have used paragon partition but it always ask to restart the pc and then partitions the sd from there
i have had it causes my laptop to crash twice now and both time had to have a friend repair my laptop
i am looking for a program that can partition the sd with out restating the computer if that is possible
thank you
nate
Click to expand...
Click to collapse
evilclosetmonkeynate said:
i am looking for a good free partition program for windows xp that can partition my sd card from a card reader
i have used paragon partition but it always ask to restart the pc and then partitions the sd from there
i have had it causes my laptop to crash twice now and both time had to have a friend repair my laptop
i am looking for a program that can partition the sd with out restating the computer if that is possible
thank you
nate
Click to expand...
Click to collapse
You could boot from a Live CD of any Linux distro. Or download and burn Gparted Live CD, all free

Installing tremers Froyo on ext2 partition

I found tutorial how to use ext2 partition on SDCARD for haret.
http://android-devs.org/forum/viewtopic.php?f=56&t=194
I created this
2 GB Fat32
1 GB ext2
1 GB ext2
so i have 4 GB disk and 3 partition just as its on tutorial
But after launching haret it should asked me
Press VolDn to launch Installer (to use ext2)
just after the
Checking for partitions
but in my case it just continue with installing without asking me and its uning only fat32
Any suggestion???
our rootfs doesn't have the install function, someone must edit the rootfs to boot into EXT partitions first!
I just copy rootfs to the / of the ext2 and system to /system, and then edit the init script so it remounts properly.
When I start doing partitioned releases I'll try and make it easy, probably by distributing prebuilt images by card size (4G, 8G etc.)
Tremere said:
When I start doing partitioned releases I'll try and make it easy, probably by distributing prebuilt images by card size (4G, 8G etc.)
Click to expand...
Click to collapse
I talked to phh yesterday.. he said ext2 and NAND booting have no effect on stability, performance and battery life. (rhod nand booting has been working for one month)
Performance could change but it would be less than 20%.
So I pray that someone will find the standby killer
So i need only one ext2 partition
Tremere said:
and then edit the init script so it remounts properly.
Click to expand...
Click to collapse
if i knew how and what to edit. Nevermind its not that important. You just focus on your work.
Matzemink said:
I talked to phh yesterday.. he said ext2 and NAND booting have no effect on stability, performance and battery life. (rhod nand booting has been working for one month)
Performance could change but it would be less than 20%.
So I pray that someone will find the standby killer
Click to expand...
Click to collapse
True. I think they also had an incorrect mount option on the rootfs until recently that slowed loopback performance. I think my last (unstable) release contained the fix for that.
For my own AOSP device tree I'm determined to start fresh without the rootfs and loopback crap. Maybe not a big performance gain but easier to 'get around' system wise.
if i knew how and what to edit. Nevermind its not that important. You just focus on your work.
Click to expand...
Click to collapse
off the top of my head, init.etc/init.froyo.rc and there is a line which tries to mount root as yaffs (flash). Not too hard to find.
You might want to have another ext2 for /data though.
How do I partition my micro sd card?
please excuse my bad English
I use translator
The easyest way for me. Download a release of Ubuntu from ubuntu.com and burn it to cd or make bootable USB. Boot live cd and partition from there.
wouldn't it be easier to download a live CD of gparted?
Jonny4911 said:
wouldn't it be easier to download a live CD of gparted?
Click to expand...
Click to collapse
System Rescue CD is my favorite for partitioning tasks. Should work on your sdcard.
Over in the raph forum, e334 posted a guide on partitioning ext2 from Windows

[Q] Using a SD-Ext Partition

I'm wondering if it's possible to create an ext3/4 partition on the SD-card and use it for files over 4gb. The main reason I want this is to play with Backtrack 5 for the ARM architecture. I'm guessing it should be as simple as partitioning my SD-card w/ a Fat32 partition as the first partition and then ext3/4 as my second and then adding a mount option into the fstab file. Just wanted to run it by anyone else that has already done it, or knows a better way.
PS. In case anyone else is interested, here's a thread with partial instructions on install Backtrack (if you're familiar with Linux, figuring out the rest shouldn't be difficult): http://forum.xda-developers.com/showthread.php?t=1074723&highlight=backtrack
Edit: Just found this: http://denniskuntz.com/blog/2011/05/11/backtrack-5-on-the-nook-color/ So, it seems it's possible. But, still have the question of can you have both a FAT32 and a ext2/3/4 partition on there and keep your nook functional as normal, but have a separate partition to run BT5 off of?

Categories

Resources