Creating only an ext/2 and linux swap with cyan?(solved) - G1 Q&A, Help & Troubleshooting

I have been reading in the dev forum on the jachero thread about creating part. using cyanogen 1.3.1 the instructions are for creating all 3 partitions.
what do I type to create only an ext/2 and linux swap using the console?. I am sick of taking my card out of my phone. this is my first go round with the console and creating parts. I have been using acronis and want to learn how using the phone only. My phone actually has cyans 1.4 recovery.thanks in advance

gtrplr71 said:
I have been reading in the dev forum on the jachero thread about creating part. using cyanogen 1.3.1 the instructions are for creating all 3 partitions.
what do I type to create only an ext/2 and linux swap using the console?. I am sick of taking my card out of my phone. this is my first go round with the console and creating parts. I have been using acronis and want to learn how using the phone only. My phone actually has cyans 1.4 recovery.thanks in advance
Click to expand...
Click to collapse
... What? You want to get rid of the Fat32 partition of your sdcard and only have the ext2 and linux-swap? You realize you'll no longer be able to mount your sdcard if you do that right? Also, none of the ROMs will work for you because they are all searching for ext2 to be the 2nd partition, if you only have those two, then when the ROMs go searching for the correct partitions, they'll find different ones and really mess up your phone. And for that matter, how are you gonna flash without a fat3d partition to flash from?

No I only have a fat 32 now. I want to create an ext/2 and linux swap without reformatting the fat portion. the instuctions given are for all three I want to create an ext2 and swap part.

gtrplr71 said:
No I only have a fat 32 now. I want to create an ext/2 and linux swap without reformatting the fat portion. the instuctions given are for all three I want to create an ext2 and swap part.
Click to expand...
Click to collapse
not possible with the current recovery as it only contains commands to delete partitions and remake them, not resize them.

How do you turn the phone off after making all three partitions in recovery? It does create only the part you want

gtrplr71 said:
How do you turn the phone off after making all three partitions in recovery? It does create only the part you want
Click to expand...
Click to collapse
type "reboot" while still in recovery.

Related

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.

trying to create 3rd partition

I want to install 'linux-swap' on a 3rd partition, but I can't seem to create the 3rd partion. I have the primary one and apps2sd created the 2nd one and upon upgrading it went from being ext2 to being ext3 ... I want to make a 3rd partition but can't seem to get my computer program to allow me to edit my partitions on the sd card.... Someone please help
you can make new partitions through cyanogen's recovery 1.3.1 http://forum.xda-developers.com/showthread.php?t=534479 in jac's hero thread is the method to it via the recovery console.
If you are on windows i highly suggest reading the guide thats in the development section about partition without a boot disk. It is super simple and dead on. You just need adb and a usb cable!
thanks david
Thanks David.. the forum of JACs is PERFECT.. my only question is how do I add the 3rd without formated cuz the Ext3 has all my apps on it.. I don't mind the Fat32 partition as I can back that up. I just have no idea how to backup Ext3 or possibly resizing it cuz right now now the 2 partitions are filling the card up...
Thanks again
tearsphere said:
Thanks David.. the forum of JACs is PERFECT.. my only question is how do I add the 3rd without formated cuz the Ext3 has all my apps on it.. I don't mind the Fat32 partition as I can back that up. I just have no idea how to backup Ext3 or possibly resizing it cuz right now now the 2 partitions are filling the card up...
Thanks again
Click to expand...
Click to collapse
Gparted lets you edit partition sizes without formatting them, look for a guide on that.

Easier way to partition SD with CM 4.0.2?

Hey im currently using Cyanogen's mod 4.0.2 on my original 1gb sd card, i know the apps2sd is automatically built in to the rom, however is there an easier way to create the partition on the sd card without all the commands and such? im still a noob to any help is appreciated..thanks
rschuman90 said:
Hey im currently using Cyanogen's mod 4.0.2 on my original 1gb sd card, i know the apps2sd is automatically built in to the rom, however is there an easier way to create the partition on the sd card without all the commands and such? im still a noob to any help is appreciated..thanks
Click to expand...
Click to collapse
Install Ubuntu and use Gparted
There's a script called SDsplit
there's also a script to partitoin that 51dusty made. Or you can stop being lazy and just type them it. It takes no more than 5min to do.
Or you can flash JF 1.51 adp because it doesn't use the sd so you're safe to partion the sd card and use partted in recovery. JAC has the directions on his Jacxhero ROM page. Thats what i use. Works everytime.
rschuman90 said:
Hey im currently using Cyanogen's mod 4.0.2 on my original 1gb sd card, i know the apps2sd is automatically built in to the rom, however is there an easier way to create the partition on the sd card without all the commands and such? im still a noob to any help is appreciated..thanks
Click to expand...
Click to collapse
Before I started using "parted" I used apps2sd 2 (in the market).
The trick is to make sure you don't let it run the actual apps2sd but only use it to create the partition.
CM's does it better (and you might break something!!!).
If you don't have a ext partition and run apps2sd 2 it lets you create one.
Don't make the partition more than 500mb-530mb.
By the way, it only makes an ext2 partition so if you want ext3 go to console and and upgrade_fs.
Dusty's method in parted is much better!
This is just what I did before I stopped being lazy.
ThR1LL said:
there's also a script to partitoin that 51dusty made. Or you can stop being lazy and just type them it. It takes no more than 5min to do.
Click to expand...
Click to collapse
It's called SDsplit
AdrianK said:
It's called SDsplit
Click to expand...
Click to collapse
The one I'm talking about is called sdparted found here
the script provides 3 partitions... you may not need the swapper. try to make it manually, its easy!!!
AdrianK said:
It's called SDsplit
Click to expand...
Click to collapse
do u have to have adb though if you did dustys method WITHOUT a computer?

Question about using swap for the first time(CM 4.1.11.1)

i am currently on Cm 4.1.11.1 with ext2 and fat 32, i know how to creat linux swap using Paragon, just want to know can i simply just create Linux swap partition and keep fat 32 and ext2 the way it is, and after creating swap, how do i use it with CM 4.1.11.1
***Please no one answer with "search" or "look around forum" because i have read threw about 100000000paages already
caleoss said:
i am currently on Cm 4.1.11.1 with ext2 and fat 32, i know how to creat linux swap using Paragon, just want to know can i simply just create Linux swap partition and keep fat 32 and ext2 the way it is, and after creating swap, how do i use it with CM 4.1.11.1
***Please no one answer with "search" or "look around forum" because i have read threw about 100000000paages already
Click to expand...
Click to collapse
You need to create a user.conf and userinit.sh on your ext partition which tell the phone which settings to use. The link's in my sig.
I'd highly recommend, switching from ext2, ext3 and 4 are journalled so you should get much better performance. If I remember correctly you can type "upgrade_fs" in Cyanogen's recovery to convert ext2 to ext3.
http://forum.xda-developers.com/showthread.php?t=534479
you may have to repartition your card (instructions in link above)
AdrianK said:
You need to create a user.conf and userinit.sh on your ext partition which tell the phone which settings to use. The link's in my sig.
I'd highly recommend, switching from ext2, ext3 and 4 are journalled so you should get much better performance. If I remember correctly you can type "upgrade_fs" in Cyanogen's recovery to convert ext2 to ext3.
Click to expand...
Click to collapse
what setting do u recomend? do u have a configuration already set up that i could just put on sd card or whatever, dont really know much about configuring it

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.

Categories

Resources