I have been using sdparted.txt but it also makes a swap. I just want fat32/ext4.
How do I create that from the G1 not from adb?
In recovery console:
Parted /dev/block/mmcblk0
Print
Rm1
Rm2
Rm3
Mkpartfs primary fat32 0 3464
Mkpartfs primary ext2 3464 3964
Print (to confirm all went through)
Or u can just remove the linux swap follow the 1st 2 lines and type rm3 then enter and print to make sure it was deleted. Also i have here a 500mb ext. You can adjust it to ur liking. And if u do repartition from the begining udgrade ur filesystem manualy to ext4
Thanks! Yes I have all his stuff
I have a 4gb sd and 8gb.
Well i went by ur sig and used the 4 gig if thats fine
Of course that would be great, I plan to get and 8gb card soon, so I thought I might ask for the code.
Well thanks for trying, but I never could figure it out. Instead I took the sdparted.txt script and set swap to 0. Ran it and have Fat32 and 512 ext4.
Related
Ok guys ima try to explain this as best I can. I have a 16g sd card that gparted or acronis will not recognize, now windows 7 on my laptop does.recognize it as an sd card showing 15.3gig wich I can only imagine is because it has been formated a few times, curently it has been formatted to fat32 using my laptop..what can I do to get my phone or any formatting tool to see it and format to the fat32, ext3 and linux swap, I've been trying for days and have read all I can so now I turn to the greater brains that be...thanks for ur help..........veritasaequita
I love the search button! Lol use cyanogen's latest recovery image (1.3.1) Search for it!
Then once you have it flashed, go into recovery console (alt+x on the menu) and type parted /dev/block/mmcblk0
do not type stuff in ( )
print (it should tell you the sector size, in mb. Since yours is 16gb it should be ~15000mb?)
rm 1
rm 2 (you might get, partition not found on this doesn't matter)
rm 3 (you might get, partition not found on this doesn't matter)
mkpartfs primary fat32 0 xxxx
mkpartfs primary ext2 xxxx yyyy
mkpartfs linux-swap yyyy zzzz
quit
upgrade_fs
reboot recovery
alt+f, alt+w, alt+s
home+back
<some extra notes, for the linux-swap partiton it should be roughly 32 mb. So make sure there's only a 32mb difference between yyyy and zzzz>
<ext2/3 partition should be ~600 mb> and fat32 the rest. Any problems just message me
im using Paragon and every time i try to create partitions i get the message can't create partition on sd card all primary slots are occupied. I even tried using parted on the G1 and it wouldnt let me. I cant figure it out why it wont let me create partitions.
Im using a transcend 8gb class 6 card
You can't create more than 4 primary partitions, are you trying to?
MvP77 said:
im using Paragon and every time i try to create partitions i get the message can't create partition on sd card all primary slots are occupied. I even tried using parted on the G1 and it wouldnt let me. I cant figure it out why it wont let me create partitions.
Im using a transcend 8gb class 6 card
Click to expand...
Click to collapse
when you used parted via the recovery console, did you use print and rm x (substitute the partition numbers from print) to remove the partition
david1171 said:
when you used parted via the recovery console, did you use print and rm x (substitute the partition numbers from print) to remove the partition
Click to expand...
Click to collapse
yes, and im just want to create the standard 3 partitions.
i have done it with 5 other cards with no problems
Have you checked the table type is msdos?
Try a new table anyway if you've no data on the card already.
Code:
mklabel
y
msdos
AdamPI said:
Have you checked the table type is msdos?
Try a new table anyway if you've no data on the card already.
Code:
mklabel
y
msdos
Click to expand...
Click to collapse
how do i do this?
MvP77 said:
im using Paragon and every time i try to create partitions i get the message can't create partition on sd card all primary slots are occupied. I even tried using parted on the G1 and it wouldnt let me. I cant figure it out why it wont let me create partitions.
Im using a transcend 8gb class 6 card
Click to expand...
Click to collapse
i use to use paragon, its not working because paragon is poo, and partes is really ez and it has to work, because it just does...follow these steps for your 8gig
Reboot into recovery [home+power]
Enter console hit enter
then type these commands
parted /dev/block/mmcblk0
print [that show u whatcha got]
rm 1 [removes 1st partition]
rm 2 [removes 2nd partition]
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700-7732 [or 7700-7764 if u want 64mb swap]
print [shows u whatcha got now]
when it says End? type in the last of ur linux-swap either 7732 or 7764 so..
7732 or 7764
print [shows final setup]
quit [exits parted so u can upgrade from ext2 to ext3]
upgrade_fs [this command will handle the ext2 to ext3 upgrade] and then u should be good to go, try it i promise u it will work.
good luck, veritasaequita
veritasaequita said:
i use to use paragon, its not working because paragon is poo, and partes is really ez and it has to work, because it just does...follow these steps for your 8gig
Reboot into recovery [home+power]
Enter console hit enter
then type these commands
parted /dev/block/mmcblk0
print [that show u whatcha got]
rm 1 [removes 1st partition]
rm 2 [removes 2nd partition]
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700-7732 [or 7700-7764 if u want 64mb swap]
print [shows u whatcha got now]
when it says End? type in the last of ur linux-swap either 7732 or 7764 so..
7732 or 7764
print [shows final setup]
quit [exits parted so u can upgrade from ext2 to ext3]
upgrade_fs [this command will handle the ext2 to ext3 upgrade] and then u should be good to go, try it i promise u it will work.
good luck, veritasaequita
Click to expand...
Click to collapse
ive done this already, didnt work.
MvP77 said:
how do i do this?
Click to expand...
Click to collapse
From parted in recovery console.
You start parted in interactive mode working on your sd card with
Code:
parted /dev/block/mmcblk0
then you can put in the commands.
ok i have installed the ra recovery v1.2.3 from the dev forum and have partitioned my sd card usingthe utility that came with it.only thing is i still dont understand how to set the swap file size.can somebody please explain how.i have searched around already.this is a lot to take in.
You searched, but the post on partitioning your sd card is at the top of this section...
evilkorn said:
You searched, but the post on partitioning your sd card is at the top of this section...
Click to expand...
Click to collapse
yeah man i read. i dont want to have to download and install all those requirements listed.there has to be another way.also i did breeze through the thread and didnt see any mention on setting swap file size.
8255daw said:
yeah man i read. i dont want to have to download and install all those requirements listed.there has to be another way.also i did breeze through the thread and didnt see any mention on setting swap file size.
Click to expand...
Click to collapse
Umm... The swap file size is the same size as your linux-swap partition...
sorry for being such a noob.the utility that came with the ra recovery sets it automatic to 36mb.i dont see where i can change it.
To format card SD card with linux-swap WARNING!!! this will reformat you entire SD card!!
You can use the recovery console and parted to format SDcards with 1.31 folks, no more going through hassles you have the tools on you G1!...here is an example of how to do this in recovery console using parted. DO NOT USE MORE THAN 32MB SWAP!!!
Example for 8GB card (this example plays it safe and will leave a small amount leftover regardless of the 8GB card)
Reboot and enter recovery
Enter console
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700 7732
#print (to verify we have the 3 partitions)
Example for my 4GB card
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
Example for a 2GB card playing it safe
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 1200
mkpartfs primary ext2 1200 1700
mkpartfs primary linux-swap 1700-1732
"End?" you need to place the last value for the linux swap eg.3964 for my 4GB card
#print (to verify we have the 3 partitions)
Next we need to "quit" parted and upgrade our ext2 partition to ext3
#upgrade_fs
Swap value is set to 30 currently, you can change this by modifying the "echo" value for swappiness in the a2sd.sh script
For a longer more detailed parted turorial read this
thank you sir...that is a thread i have read since joining here but i have not stumbled across it since.thanks again.
Its under JACHero ROM thread fyi.
Ive got a rooted G1 and im running CyanongenMod 4.2.3.1 Ive got a 16gb class2 sd card and ive partitioned it it it with 14.5gb - Fat32 and 1gb ext2
Now i know thats not right and so i wanna fix it. What i really wanna do is :
a) Have all the partitions set at correct sizes
b) a swap partition
c) and an upgrade to ext3 or 4 whichever is better
As ive already got about 200 apps installed whats the best ways of backing them up and doing the above
Thanks in Advance
Thru console:
parted /dev/block/mmcblk0
print (verify what size your card is)
rm 1
mkpartfs primary fat32 0 15500
mkpartfs primary ext2 15500 15852
mkpartfs primary linux-swap 15852 15948
quit
upgrade_fs
reboot recovery
May want to reformat to fresh fat32 beforehand but up to you.The sizes above can vary depending on what size your card is but that is a base for 16gb and includes a 96mb swap. Press enter after each line.
Tons of ways to backup...on your PC or I use Astro to do so...but any file manager works
http://forum.xda-developers.com/showthread.php?t=534714
I have that lovely little tutorial bookmarked, I use it almost everyday ( I flash new roms and stuff everyday, I just don't know what to settle on )
i installed the latest cyanogen update. phone is running perfectly but cant get apps2sd run. it is there is my applications menu but i cant select it
i partitioned my memory card the way written in the qoute?
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 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
what should be my next step? i tried most of the ways on xda and have failed pls help