[Q] Can Haret be inside a folder and not on the root? - XPERIA X1 Android Development

I'm thinking (for file organizing) to try this one out:
Partition my 4G stock sd
1. FAT32 label 4G X1 primary 2.5G size
2. Ext2 no label primary 1G size
3. linuxswap no label primary 256Mb size
Then, I'll put the FAT32 Root my old WM 6.1 files:
1. progra~1, DCIM, apps, games, etc.
2. create an Android folder and put roms with it
as opposed to put everything in fat32 root.
I'm trying it now but I can't boot to Android. Would that be the reason? thanks!

Is the name of the android directory "andboot"? I think it's the only name thats work.

maybe this will help you:
http://forum.xda-developers.com/showthread.php?t=925641
and this, if you want multiple ext2 builds on your sd card:
http://www.neopeek.com/viewtopic.php?f=16&t=6367

Related

Change of SD card

Hey guys, currently i'm using a 1gb sd card with cyan rom installed to my htc dream phone.
If I want to change to a higher capacity sd card, how should i go about doing it? In terms of the applications and stuffs?
Do you have your sdcard partitioned in any way? if its only a fat32 formatted card, you can simply format the new one fat32 and copy all files from the old card to the new. If you have it partitioned, match the smaller partitions on the new card (match sizes of ext 2/3/3 and linux swap if you have one and copy files accordingly) and copy old fat32 stored files onto new one (the fat32 partition size difference should not effect anything). I've tried this myself a few months back upgrading from a 4gb class 4 to an 8gb class 6 and I had no issues. Just be sure both cards were partitioned with the same program if you are using linux [I run Ubuntu], otherwise you may run into admin permission problems
Mine is formatted in the way in this site: http://wiki.cyanogenmod.com/index.php/Full_Update_Guide_-_G1/Dream/Magic32B_Firmware_to_CyanogenMod
So how should I go about doing it?

Partition Questions...

Hi, i have a few questions about partitioning:
1. I have a 2GB SD Card, so what would be a good swap size and ext2 size setting?
2. How would i do the swap? I have Amon Ra's Recovery Image 1.5.2.
3. Do I need to reflash my ROM after i do this?
4. When i partition it, will it remove all of me Apps currently on my phone and everything on my SD card?
5. What are the differences between ext2/ext3/ext4 and what is the best one to use?
6. How long will my SD Card last if i do this?
Thank you in advance and sorry if these questions have already been answered.
1. Swap 32mb; Ext2 512mb
2. Partition sdcard>Partition SD>Choose swap size
3. Yes
4. Yes; back up important files (i.e pictures) on the computer
5. Has something to do with journalism file blah blah (better performance); ext3 is supported by most roms and a wise choice
6. Probably takes out a month or so off in longevity. An sd card cost like $10
Thank you

Deleting Partition?

How do I do this? I wanna wipe everything and make a new partition with a different amt of swap, etc. How do I go about doing this?
go to recovery and re particion your sd card. but remember to back up stuff to your pc that are important.
Sent from my Htcclay's SuperBad G1 using the XDA mobile application powered by Tapatalk
phazzdaddy said:
How do I do this? I wanna wipe everything and make a new partition with a different amt of swap, etc. How do I go about doing this?
Click to expand...
Click to collapse
Follow these steps. I do them every single time before flashing a ROM, never have any issues that others have because they are lazy and refuse to just start fresh. I'm going to make this as basic as possible just to make it easy. It looks long, but I can seriously do this in under 3 minutes now.
You can either remove everything off your SD card and transfer on later, or leave it. It depends on if you want to resize your fat32 partition.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you don't have Amon_RA's recover get it Here
Boot into recovery (power on phone by pressing home button and power button)
Once in recovery, select (Go to console)
Press Enter
at the /# type this in
parted /dev/block/mmcblk0
Press Enter
When this pops up (parted), type in print
Press Enter
You should now see something like this:
Code:
Model: ([B][COLOR="Red"]whatever model your SD is[/COLOR][/B])
Disk /dev/block/mmcblk0: ([B][COLOR="Red"]the size of your SD card (write this # down for reference)[/COLOR][/B])
Sector Size (logical/physical): ([B][COLOR="Red"]Sector size[/COLOR][/B])
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 7405MB 7405MB primary fat32 lba
2 7405MB 7905MB 500MB primary ext2
3 7905MB 8001MB 96.0MB primary linux-swap(v1)
This gives you a break down of how much space is allocated for each partition.
The start/end/size values will differ depending on the size of your SD card and partitions.
Write down the size of your sd card, you can find it above next to:
Disk /dev/block/mmcblk0: ####MB
From here you can now delete and resize your partitions.
Number:
1 - fat32 partition (where you store music, photos, etc.)
2 - ext partition (where apps2sd goes)
3 - swap partition (used for swap)
Before you start deleting, make sure if you do want to remove the fat32 partition, you mount your SD and copy everything to your PC or wherever so you can transfer back later.
To remove individual partitions, type in at the (parted)
rm 1 Enter (this will delete your fat32 partition)
rm 2 Enter (this will delete your ext partition)
rm 3 Enter (this will delete your linux-swap partition)
Depending on what you deleted, you can type print Enter, again and it will refresh the partitions.
Using the number you wrote down which is the size of your SD card, you can figure out how you want to allocate the partitions.
I will show you what I type in and you can go off of that.
I have a 8GB SD card. 8169MB total
7405MB - fat32
500MB - ext2
96MB - swap
I only use 8001MB just to be safe. (not sure if it matters)
You just don't want to go over your SD card size.
Now to create the partitions.
The sizes below are my settings.
You can decide the sizes for you own SD card.
--------------------------------------------------------------------------------
For fat32 type in at the (parted):
mkpartfs primary fat32 0 7405 press Enter
This will create a 7405MB fat32 partition
--------------------------------------------------------------------------------
For ext2 type in at the (parted):
mkpartfs primary ext2 7405 7905 press Enter
This will create a 500MB ext2 partition
--------------------------------------------------------------------------------
For swap partition type in at the (parted):
mkpartfs primary linux-swap 7905 8001 press Enter
This will create a 96MB swap partition (you can upgrade to ext3 and ext 4 through the recovery)
--------------------------------------------------------------------------------
Notice the numbers I entered in 0 7405 (since 0-7405 = 7405, that's the size of the partition. Yes elementary, but just so you know what the numbers represent)
7405 7905 (7905-7405 = 500, 500MB partition, and so on)
You can choose whatever you want for the sizes of the partition doing it this way. Just make sure fat32 partition starts with 0, you want fat32 partition first, ext 2nd, and swap 3rd.
Once you have created the partitions, reboot into recovery and flash your rom.
To reboot into recovery, type quit at the (parted)
Then reboot recovery at the / #
It may look hard, but it is really simple.
Good luck.
All the credit for this goes to 51dusty and his thread Here
I just made this so you can do the same steps from your phone.

How can I delete the EXT2 partition?

I got my N1 "Froyo" updated->rooted->Titanium apps restored.
EXT2 seems useless since official app2sd is now supported,my question is,how can i delete the EXT2 partition?
Might wanna hold off on that for a bit...
Looks like the official app2sd method requires developers to set a flag on each application so that it is allowed to be installed on SD card. Any attempts to manually move current apps to the SD card only seem to work until a reboot, at which point you'll have to reinstall everything to the internal storage.
where to? in pc or mobile?
in pc: http://gparted.sourceforge.net/livecd.php
Same question here. Currently have an Ext2 partition in sd card mobile however 8 gb San Disk class 2 card doesn't fully support Apps2Sd (especially large apps 15 mb+) as I often experienced force close and slow down. Any advice how to delete it?
Thanks in advance.
Boot into recovery and connect phone to computer. Open a command prompt and navigate to the "tools" folder of the SDK. Enter the following:
1. adb shell
2. parted /dev/block/mtdblock0
3. list
This will show you the list of partitions on your card. Partition 2 should be ext. You can straight up delete it using "rm 2" but that won't reclaim the empty space to the fat32 partition. You'll have to backup files from your fat partition, delete all partitions and make one new fat32 partition using the entire space.
This is, of course, the long way. Alternatively, you can use the SD Partition utility built into the AmonRa recovery. All that requires is that you enter the amount of space you wanna allocate. That still nukes your files so make backups.

[Q] How to install two android builds?

Hello,
Is there any possibility to run two different android builds on one phone and making it actaully work? Today I am running only an NAND build, but I also want to run an android build from my sd card so I can experiment. I have tried to partition my sd card several ways, but it doesn't seem to work.
I have partitioned a sd card of 2 gb into 1gb of FAT (ubuntu doesn't offer the ability to format into the FAT32 format), 800mb of EXT2 and 100 mb of Linux Swap. And I placed the build I wanted to install (Scooter's Cyanoenmod 7.1) into an andboot folder on the 1 gb FAT partition. But still no succes so what am I doing wrong?
*Also how does one actually switch between the sd card installed and NAND installed android builds?*
set the sd partitions for system and data in atools.
Create 3 partition on sd:
- fat32
- ext3
- ext3
flash the new nbh and then reinstall the new rom.

Categories

Resources