Bruce Beare | ba366c4 | 2011-02-15 16:46:08 -0800 | [diff] [blame^] | 1 | # Best to align all partion start/ends on a cylinder boundary (fdisk prefers it) |
| 2 | # 512 bytes/sector |
| 3 | # 63 sectors/track |
| 4 | # 32 tracks/cylinder |
| 5 | |
| 6 | # LBAs are in 'k', so... |
| 7 | # 1008 blocks (1k each) (1032192 bytes) / cylinder |
| 8 | |
| 9 | device { |
| 10 | |
| 11 | path /dev/block/sda |
| 12 | |
| 13 | scheme mbr |
| 14 | |
| 15 | # bytes in a disk sector (== 1 LBA), must be a power of 2! |
| 16 | sector_size 512 |
| 17 | |
| 18 | # Start_lba should be on a cylindar boundary. |
| 19 | start_lba 63 |
| 20 | |
| 21 | # Autodetect disk size if == 0 |
| 22 | num_lba 0 |
| 23 | |
| 24 | partitions { |
| 25 | # /dev/sdX1 |
| 26 | sysloader { |
| 27 | active y |
| 28 | type linux |
| 29 | # 8 cyls in length... about 8M |
| 30 | len 8064 |
| 31 | } |
| 32 | |
| 33 | # /dev/sdX2 |
| 34 | recovery { |
| 35 | active y |
| 36 | type linux |
| 37 | # 8 cyls in length... about 8M |
| 38 | len 8064 |
| 39 | } |
| 40 | |
| 41 | # /dev/sdX3 |
| 42 | boot { |
| 43 | active y |
| 44 | type linux |
| 45 | # 8 cyls in length... about 8M |
| 46 | len 8064 |
| 47 | } |
| 48 | |
| 49 | # /dev/sdX4 |
| 50 | # (extended partion begins) |
| 51 | |
| 52 | # /dev/sdX5 |
| 53 | cache { |
| 54 | type linux |
| 55 | len 512M |
| 56 | } |
| 57 | |
| 58 | # /dev/sdX6 |
| 59 | system { |
| 60 | type linux |
| 61 | len 512M |
| 62 | } |
| 63 | |
| 64 | # /dev/sdX7 |
| 65 | third_party { |
| 66 | type linux |
| 67 | len 512M |
| 68 | } |
| 69 | |
| 70 | # /dev/sdX8 |
| 71 | data { |
| 72 | type linux |
| 73 | len -1 |
| 74 | } |
| 75 | } |
| 76 | } |