[Desire Android Development] DroidBois:
I'm on Version 2 - the first one that came out - I'll leave it alone then.

Yes of course it is, I just followed it. I was just offering to write it up a little more clearly and formatted on your wiki, that's all. I'm adept at using Linux but not everyone may be. The content is fine, it just needs to be rounded out and put up on a Wiki, that's all..

Well I followed it and got the following:

First I set up my partitions

sudo fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

switch off the mode (command 'c') and change display units to

sectors (command 'u').

Command (m for help): p

Disk /dev/sdb: 15.9 GB, 15931539456 bytes

255 heads, 63 sectors/track, 1936 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00004f67

Device Boot Start End Blocks Id System

/dev/sdb1 1807 1937 1048576 83 Linux

/dev/sdb2 1 1798 14436352 b W95 FAT32

Partition table entries are not in disk order

Delete Partitions

Command (m for help): d

Partition number (1-4): 1

Command (m for help): d

Selected partition 2

Command (m for help): p

Disk /dev/sdb: 15.9 GB, 15931539456 bytes

255 heads, 63 sectors/track, 1936 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00004f67

Device Boot Start End Blocks Id System

no partitions – then created them and got

Device Boot Start End Blocks Id System

/dev/sdb1 2 1798 14434402+ c W95 FAT32 (LBA)

/dev/sdb2 1799 1936 1108485 83 Linux

I then formatted the first partition

sudo mkfs.vfat -F 32 -n UserData -s 32 -v /dev/sdb1

mkfs.vfat 3.0.9 (31 Jan 2010)

/dev/sdb1 has 255 heads and 63 sectors per track,

logical sector size is 512,

using 0xf8 media descriptor, with 28868804 sectors;

file system has 2 32-bit FATs and 32 sectors per cluster.

FAT size is 7072 sectors, and provides 901707 clusters.

There are 32 reserved sectors.

Volume ID is cdfcd54e, volume label UserData

I calculate 7,241,728 bytes for the FAT table with 1216 sectors remaining (my calculation minus 7824384 as per Siebre's notes)

New command and output is:

sudo mkfs.vfat -F 32 -R 1216 -n UserData -s 32 -v /dev/sdb1

mkfs.vfat 3.0.9 (31 Jan 2010)

/dev/sdb1 has 255 heads and 63 sectors per track,

logical sector size is 512,

using 0xf8 media descriptor, with 28868804 sectors;

file system has 2 32-bit FATs and 32 sectors per cluster.

FAT size is 7072 sectors, and provides 901670 clusters.

There are 1216 reserved sectors.

Volume ID is f53f31d3, volume label UserData

Then last, I formatted the EXT4 partition

mke2fs -T ext4 -b 4096 -E stride=64,stripe-width=64 -O extent,^huge_file -m 0 -L userdata /dev/sdb2

mke2fs 1.41.14 (22-Dec-2010)

Filesystem label=userdata

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

Stride=64 blocks, Stripe width=64 blocks

69408 inodes, 277121 blocks

0 blocks (0.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=285212672

9 block groups

32768 blocks per group, 32768 fragments per group

7712 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376

Writing inode tables: done

Creating journal (8192 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or

180 days, whichever comes first. Use tune2fs -c or -i to override.

Now I'm copying data across from my backed up phone, to restore on my new card. I assume I will need to run the DATA2SD re-install script immediately after restoring from backup, before booting?