i have gone through the process of itsandriodsworld's walkthrough for the g1 and have successfully rooted my phone...i can enter amon ra's recovery mode and can change the partition but i get ". . instead of ........................." Then i went to ext2 to ext3 and it says console error...any help?
Try partitioning with parted.
Also post the output of the print command if you still have problems.
you did create a partition first before pressing the ext2 to ext3 option right?
Related
im trying to partition my memory card . its a 8gb class 6 microsd . i did the one click root and got the amon ra recovery . i dont want to use the recovery to partition it because it gives me a 32 swap size and i need a 96. i flashed on there cyanogenmod 4.0.4 for now. i believe i did the adb way the right way . but when i typed in adb shell i get a # sign. then i type in parted /dev/block/mmcblk0 and it says parted: not found. what am i doing wrong? is there any way i can partition it myself?
The way i do it is the easiest in my opion. U can do it 2 ways. 1 u can install a linux distro and use partition editor and have a bad os too.. Thats what i did. 2 u can just use linux in live mood then use the partition editor that way. Linux partition editor makes any size, and or type. Plus super super easy.
you can also install a recovery image that can partition your SD. That's what I did. No pc was even needed to partition the card.
dekeijzer said:
you can also install a recovery image that can partition your SD. That's what I did. No pc was even needed to partition the card.
Click to expand...
Click to collapse
in the OP he said he doesn't want to use the Amon Ra recovery image to part I'm in the same boat as he is axactly same boat lol I'm watching this thread closely...
mt3g said:
in the OP he said he doesn't want to use the Amon Ra recovery image to part I'm in the same boat as he is axactly same boat lol I'm watching this thread closely...
Click to expand...
Click to collapse
ok i found out how to do it. in order for gparted to work in adb you need to be on the recovery console. i have the amon ra. Make sure you have cyanogenmod 4.0.4. then type in adb shell and if you see / # then it worked. then from there gparted worked
The best/easiest method is explained here:
http://forum.xda-developers.com/showthread.php?t=535914
I just got my HTC hero rom 2.73.405.5 rooted with recovery-RA-hero-v1.5.3.1.img (I don't flash with any other custom ROM), and now i'm get stuck with APP2SD. I assumed it shouldn't be that complicated.
Here's what I've done (using a 2GB sdcard)
- Start in recovery mode (press Home + Power)
- Partition sdcard > Partition SD (swap=32MB, ext2=512MB, Fat32=remainder)
- back to recovery, Other > Move apps+dalv to SD
In adb use parted > print command, i can see the card is partitioned correctly. But using busybox bf -h command, i don't see the /system/sd partition. apps i installed before trying that are gone.
Did i do anything wrong?
you have to have a rom with Apps2sd enabled. The official hero roms don't have this functionality.
sengkh said:
I just got my HTC hero rom 2.73.405.5 rooted with recovery-RA-hero-v1.5.3.1.img (I don't flash with any other custom ROM), and now i'm get stuck with APP2SD. I assumed it shouldn't be that complicated.
Here's what I've done (using a 2GB sdcard)
- Start in recovery mode (press Home + Power)
- Partition sdcard > Partition SD (swap=32MB, ext2=512MB, Fat32=remainder)
- back to recovery, Other > Move apps+dalv to SD
In adb use parted > print command, i can see the card is partitioned correctly. But using busybox bf -h command, i don't see the /system/sd partition. apps i installed before trying that are gone.
Did i do anything wrong?
Click to expand...
Click to collapse
swap should be at the back of the disk fat at the front.
i used this to partition: http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
Thank you for reply.
@DMzda,
Does that mean I have to replace the whole Android OS or just some small patched to the ROM? Could you give me a link for detail or download?
I'm new to this and I don't really want to make big change, further I like HTC Sense pretty well.
@Piercy0812
From what I can tell the disk format is correct, although the selection in Recovery is reverse, it's shown in the parted > print as Partition 1 Fat32, Partition 2 ext2 ....
just pick the right ROM for your HERO (GSM or CDMA) and install it to your phone. It is easy to do.
There are custom ROMs that dont change much on your stock Hero. Make sure you get one with App2sd in the package.
side quesiton:
I have Modaco 2.2 and Apps2SD installed.
How do you check to see if it is functioning properly?
I have a widget that tells me how much memory on SD is used:
96 mb used out of 169mb.
I'm currently using data2ext with B 0.8, and I have a 2gb ext4 partition. I tried performing a backup using BlaY0's "Customized CWM 3.0.1.3 fake-flash with ext4 support". However, I get a message saying something along the lines of "Couldn't mount sd-ext. Sd-ext backup may not be supported on this device."
Any ideas? Is it unable to backup a ext partition larger than 1gb? Is there any alternative to a nandroid backup?
EDIT: Damn, is this cause I cheated when partitioning the SD card?
I guess the problem is in ext4 feature huge_files. Even tho my customized CWM has ext4 support, it lacks huge files support (files over 2TB). This feature however is set by default when formatting ext4 partition. It can be turned off using tune2fs. Consult mr. Google on how to use tune2fs.
Sent from my HTC Legend
i tried turning off huge_file support but i still cant nandroid the ext4 partition created with the customised fake flash.
from adb shell in latest CWM recovery i tried:
tune2fs -O ^huge_file /dev/block/mmcblk0p2
/data/data/com.koushikdutta.rommanager/files/e2fsck -fpDC0 /dev/block/mmcblk0p2
Click to expand...
Click to collapse
then rebooted but still not love with nandroid mountind the ext4 partition
fixed my problem:
i had reverted to using CWM 2.5.0.7 gui / update.zip which does not support ext4
so going back to blay0's custom update.zip (3.0.1.3) I can now nandroid backup my ext4 partition. (i have still got huge_files turned off as per above)
Just dunno how to use blay0s version with rom recovery gui, but no biggie
I'm guessing theres no way in CWM recovery to get ext4 am i correct. I've heard that it's ext3 by default, so my question is what program would i need to do this. I am running winblows 7, i do have a built in card reader so i could mount the microsd card from there to partition it.
d12unk13astard said:
I'm guessing theres no way in CWM recovery to get ext4 am i correct. I've heard that it's ext3 by default, so my question is what program would i need to do this. I am running winblows 7, i do have a built in card reader so i could mount the microsd card from there to partition it.
Click to expand...
Click to collapse
taken from
Here
How to manually partition your SD card for Android Apps2SD
Taylor Wimberly on Aug 21, 2009 at 9:27 pm119 comments
5share0share4 42
How to manually partition your SD card for Android Apps2SD
Update: You might also want to check out the Amon_RA recovery image which will automatically partition your SD card.
This article is for people with rooted Android phones. Everyone else please ignore. There are dozens of ways to partition your SD card and I would like to share the one that has worked for me every time. I prefer to manually partition my SD card because it gives me complete control.
Requirements before getting started:
Cyanogen Recovery Image v1.4 or greater (Easy to install with the 1-click hack)
SD Card (Class 6 suggested): A-DATA has good prices on Amazon (4GB, 8GB, 16GB)
Android Device Bridge(ADB): Comes with the Android SDK.
Android build that supports Apps2SD: I suggest Cyanogen’s latest stable release (Does Apps2SD automatically)
These instructions apply to both the Windows command prompt and the Mac terminal. As you can see from my screens, I was using Windows Vista. You can partition your SD card at any time, but you might as well do it before you flash a new build of Android. As always, back up your data when performing any hacks. Partitioning your SD card will erase all data on it. I split this guide into 9 steps, but it is not as difficult as it looks. Read the whole thing before starting.
All commands you need to type are in bold (my comments are in parenthesis). If you do not know how to use ADB, leave a comment for help or read ADB for Dummies over at XDA.
Step 1: Connect your phone to your computer via USB. Reboot into recovery mode.
Command:
Code:
adb shell reboot recovery
(this will reboot your phone into Cyanogen’s recovery image. Or power on phone when holding home button)
Command:
Code:
adb shell
(type this after your phone has booted and on the recovery screen. it should take you to a # prompt)
Step 2: Open parted to partition your SD card.
Command:
Code:
parted /dev/block/mmcblk0
(opens parted and mounts your SD card)
Step 3: Check the size and partitions of your SD card. The print command will display this info. You can see the size of my SD card is 7969 MB (8 GB). I have 1 partition which is fat32. If your SD card is blank and no partitions are listed, you can skip to Step 5.
Command:
Code:
print
(displays SD card information)
Step 4: Remove all existing partitions. If you have multiple partitions, remove each one at a time.
Command:
Code:
rm 1
(deletes partition number 1)
Command:
Code:
rm 2
(if needed. keep going till all partitions are removed)
Command:
Code:
print
(check when you are done to make sure all partitions are removed)
Step 5: Create your new partitions. You can make these any size, but the most common setup is 32 MB linux-swap partition, 512 MB ext2 partition, and remaining free space as a fat32 partition. In order to work properly, the partitions must be created in this order: fat32, ext2, linux-swap.
The linux-swap partition is used for a swap file on some builds. Not all builds use linux-swap, but I create one just in case I ever need it.
The ext2 partition is where your apps will be installed. I use 512 MB which gives me plenty of room but you can go larger like 1024 MB if you want. Parted only creates ext2 partitions and we can convert them to ext3 or ext4 later.
When using the Linux command mkpartfs, you must tell it where to start and and end each partition. This can be done by taking the total SD card size and subtracting the linux-swap then ext2 partition sizes. See the following example for my 8 GB card.
Command:
Code:
mkpartfs primary fat32 0 7425
(start is 0 and end is Total C)
Command:
Code:
mkpartfs primary ext2 7425 7937
(start is Total C and end is Total B)
Command:
Code:
mkpartfs primary linux-swap 7937 7969
(start is Total B and end is Total A)
Partition sizes for a 8 GB SD card.
Partition sizes for a 8 GB SD card.
Step 6: Check the sizes of your partitions. Use the command print again to display the partition sizes. If you made any mistakes you can return to Step 4 and remove them.
command:
Code:
print
(displays your partition information)
Step 7: Exit parted and upgrade your ext2 file system to ext3. For most users this is the final step. We suggest all users upgrade to ext3. Its main advantage over ext2 is journaling which improves reliability and eliminates the need to check the file system after an unclean shutdown.
command:
Code:
quit
(exit parted and return to # prompt)
command:
Code:
upgrade_fs
(script to upgrade from ext2 to ext3)
Step 8 (Optional): If you wish, you can upgrade your ext3 partition to ext4. Skip to Step 9 is you wish to use ext3. I asked Cyanogen what file system he uses and he tweeted ext4. The file system offers enhancements like delayed allocation. See Wikipedia for more info on ext4.
command:
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
(enter this command from the # prompt)
command:
Code:
e2fsck -fpDC0 /dev/block/mmcblk0p2
(run e2fsck after tune2fs. wait for the file check to finish)
Step 9: Finished. Check your work with print.
command:
Code:
parted /dev/block/mmcblk0
(open parted again)
command:
Code:
print
(check all your system partitions and their sizes)
command:
Code:
quit
(exit parted)
command:
Code:
reboot
(reboot your system to the operating system)
I was under the impression only CWM worked for our mt4g phones... So the AMON_RA recovery would work as well or just the older cyanogenmod 1.4?
I've known about the older cyanogen and amon ra recoveries back when i had my g1, that had ext4 partition built in(cyanogen i had to type in all that extra stuff e2kfs to get ext 4) but had no idea they were avalable fo rour mt4g, where do i download the mt4g amon ra recovery!?
@neidlinger
I appreciate your help, tho i knew those commands and recoveries back when i had the OG tmobile g1 the amon ra 1.7 recovery was the shizznit as it had soo many better options compared to cwm. I answered my own question by reading up into the forums about the dark tremor apps 2sd, i dunno how i missed it the first time but there was an obvious command list that will let you convert an ext partition to 3 or 4 lol It really does help to read up on older posts in development.
All those commands work on CWM. Koush converted the scripts into binary c programs.
You can use adb to run these commands inside the recovery console.
RichieDaze said:
All those commands work on CWM. Koush converted the scripts into bindary c programs.
You can use adb to run these commands inside the recovery console.
Click to expand...
Click to collapse
so just boot into recovery and run adb commands, or do i need to mount sd card thru recovery first.
Sent from my HTC Glacier using XDA Premium App
Try it without mounting. The binary should mount it or display a message telling you to mount it manually.
Please, Let us know the out come!
Have you tried sdparted from the recovery command line? (included in CWM)
It takes the guess work out of using parted!
Source:
[UTIL] sdparted v0.6 - easy sdcard partitioning, upgrading to ext3/4
Hey,
I need help with Imilka Gingerbread 0.8, as I don't have 10 posts yet I can't reply in that thread so I have to start a new thread (which is actually .. pretty odd).
I have an EU HTC HD2 and I'm trying to install NAND + CWR, it is my fourth ROM Im using, first NAND, all SDbased androids did work immediatly
Flashed original HTC HD2 ROM
Reformatted SD card FAT32
Used Task 29
Installed radio 2.15.50.14
Installed HSPL 2.08
Installed MAGLDR1.13
Flashed it according to advice 5/170/44 layout
Did every wipe at AD Recovery
Partitioned my 32gb SDcard 1024mb with 0 swap
Installed zip from SDcard
Rebooted
Waiting for about 2 hours at the black screen with green HTC, post says: First boot can take up to 10-20 minutes.
EU users need 5/180/5 CWR system partition and ext2/3/4 partition on sdcard.
TMOUS users need 5/360/5 or more CWR system partition.
ext2/3/4 partition will be made @ AD Recovery partition SD card ?
If not, how can I make this partition, without linux and stuff. Just windows 7.
Or am I doing it in the wrong order?
Just did it all over again
This time with 5/180/5 layout and made ext3 partition using easeus on windows using instead of clockwork thingy.
nope, still doesn't go past the black screen + green HTC
booting for an hour now, nothing
Think I found the problem.
Updated AD recovery to 5.0.2.3 orsomething there was an option show log
and it said creation of EXT2 partition was aborted, so now I put the SD in my card reader and manually formated it ext2. retrying now
Nope, nothing
I can manually mount everything but SD-EXT
show log::
mount: mounting /dev/block/mmcblk0p2 on /sd-ext
failed: invalid argument