The Android rooting + flashing super guide

Sorry, forgot to tell you that you need to type "su" first so the application has permission to read /data. Amended my post :)
 
Sorry, forgot to tell you that you need to type "su" first so the application has permission to read /data. Amended my post :)

Ah yeh. Worked now.

Although I can't see

/data/app ---> /sd-ext/app
/data/app-private ---> /sd-ext/app-private
/data/dalvik-cache ---> /sd-ext/dalvik-cache

amongst the list that appeared. I guess the partition hasn't worked?
 
it will say /app -> /sd-ext/app etc, because the command was run to only show the symbolic links from /data.

Look closely as the screen will wrap the text.

What about:
Code:
su
ls -1 /sd-ext/app
(note the -1 is indeed the number 1 and not a l)

Should see a list of *.apk'
 
it will say /app -> /sd-ext/app etc, because the command was run to only show the symbolic links from /data.

Look closely as the screen will wrap the text.

What about:
Code:
su
ls -1 /sd-ext/app
(note the -1 is indeed the number 1 and not a l)

Should see a list of *.apk'

"No such file or directory"
 
"No such file or directory"

Then the sd-ext hasn't been created, using ROM manager to partition your card isn't the greatest idea as it's really hit and miss.

I recommend downloading a Linux live CD (Ubuntu or Mint recommended) and boot your PC from the LiveCD with your phone connected and then partition your SDCard in the gparted application.

All you have to do is backup your card, resize the FAT partition to ~512mb less than what it is. Then in the new space, create an EXT3 partition with the maximum size it will allow you to. Click apply and it's done.

Then put your files back into the SDCard.

Here's what you should see with the two commands:

Code:
su
ls -1 /sd-ext/app/


Code:
su
ls -l /data
 
Then the sd-ext hasn't been created, using ROM manager to partition your card isn't the greatest idea as it's really hit and miss.

I recommend downloading a Linux live CD (Ubuntu or Mint recommended) and boot your PC from the LiveCD with your phone connected and then partition your SDCard in the gparted application.

All you have to do is backup your card, resize the FAT partition to ~512mb less than what it is. Then in the new space, create an EXT3 partition with the maximum size it will allow you to. Click apply and it's done.

Then put your files back into the SDCard.
Why isn't it working for me?? :(
ROM Manager didn't work so I tried Gparted. Resized the FAT partition to 512Mb, created the EXT3 partition and applied. Rebooted phone and still have the same problem that benjo did (no such file or directory) using Android Terminal Emulator.
 
Most people find it easier to use ROM Manager which was why I mentioned it earlier, in honesty a slightly more DIY way is to use AmonRA R5 recovery or above to partition the card, just works better.

Obviously take note that SLCD Desires will have a blank screen using Amon RA at present :p
 
Why isn't it working for me?? :(
ROM Manager didn't work so I tried Gparted. Resized the FAT partition to 512Mb, created the EXT3 partition and applied. Rebooted phone and still have the same problem that benjo did (no such file or directory) using Android Terminal Emulator.

Don't reduce your FAT partition to 512mb, reduce it by 512mb. What about the:
Code:
ls -l /data

command?

The other command might not work as the /sd-ext folder is a mount point and can be named something different by the ROM developer but most call it /sd-ext.
 
Great guide - looks pretty straight forward but is there a way to get the phone back to a completely virgin state? ie no recovery and unrooted stock ROM?
I have a desire on trial at the moment and I will need to send it back untouched.
 
Ooops, I'll increase the FAT partition to 2Gb.

This had app pointing to /SD but not /SD-ext

I've just used gparted again to resize partitions, so I'll see what happens.

Sounds like yours is working, and the ROM developer has mounted the EXT partition to point "/sd". The sd-ext etc labels are just names given to the point where the file system is mounted to and can be named anything.

So try:
Code:
su
ls -1 /SD

Be aware that the /SD bit needs to be the correct case, Linux will see /sd and /SD differently.
 
I can't get A2SD+ working for me :(.
Reflashed with the Modoco 2.2 ROM
Used Gparted and created a 2gb FAT partition and 2Gb EXT3, then applied the change.
Rebooted phone
Installed apps

Settings > Applications > Manage Applicatoins, only Angry Birds and Google Sky Map are listed as being on the SD card.

If I look at SD & Phone Storare, the SD Total Space is listed as 2Gb with 1.66 free. Is there anyway to view the SD storage in more detail, see if there is an EXT3 partition??
 
its called quick system info....download it.

and 2gb ext3? talk about overkill lmao....512mb is more then enough.

a2sd+ has nothing to do with googles propriety system and i wish people would understand that before complaining it doesnt show up in system settings. Especially when the OP put this in THE FIRST POST!!!
 
Last edited:
I can't get A2SD+ working for me :(.
Reflashed with the Modoco 2.2 ROM
Used Gparted and created a 2gb FAT partition and 2Gb EXT3, then applied the change.
Rebooted phone
Installed apps

Settings > Applications > Manage Applicatoins, only Angry Birds and Google Sky Map are listed as being on the SD card.

If I look at SD & Phone Storare, the SD Total Space is listed as 2Gb with 1.66 free. Is there anyway to view the SD storage in more detail, see if there is an EXT3 partition??

There's two types of AP2SD, one included by default in FroYo but it's not a very good way of doing it (there's a post by me earlier in the thread that explains why). The other is enabled in custom ROMs.

Here's a chart I knocked up to explain it:
ap2sdchart.jpg
 
Last edited:
I booted into Ubuntu and had a look in gparted.

I already had a 3~Gb Fat32 partition, with a 512mb ext and a 64mb swap.
 
You don't need any swap, so it's safe to delete that and increase the FAT partition.

I would recommend setting up adb by downloading it from here.

Then add the location of the tools folder to your variable path, there's a guide here to show you how to do it.

Much easier than using Terminal on the phone as you can copy and paste the outputs. :)

After that you can install an ADB UI manager such as QtADB.
 
Thank you!

The guide has helped me get rid of the standard HTC Desire keyboard, I hated that thing.
 
Back
Top Bottom