First create a GPT disk, using parted:
- Code: Select all
# parted /dev/sdc unit s print
Model: Packard Bell Carbon (scsi)
Disk /dev/sdc: 160836480s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 2048s 1003519s 1001472s ext3 83
2 1003520s 2007039s 1003520s ext3 83
3 2007040s 3012607s 1005568s 83
4 3012608s 3013671s 1064s 5
5 3014656s 4583423s 1568768s ext3 83
6 4585472s 4601855s 16384s 83
7 4603904s 5607423s 1003520s ext3 83
8 5609472s 160835583s 155226112s ext3 83
Parted also created a protective MBR:
- Code: Select all
# fdisk -l /dev/sdc
Disk /dev/sdc: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders, total 160836480 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 160836479 80418239+ ee GPT
- Code: Select all
# fdisk -l /dev/sdc
Disk /dev/sdc: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders, total 160836480 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 16064 8032 ee GPT
/dev/sdc4 3012608 160836479 78911936 5 Extended
/dev/sdc5 3014656 4583423 784384 83 Linux
/dev/sdc6 4585472 4601855 8192 83 Linux
Note: sfdisk also generated a garbage partition 2, which I deleted using fdisk. Don't know what triggered this behavior.
Now insert the disk in the NS2 (Or whatever, I think this will work for any fvdw-sl supported disk.) This is done using a 80GB disk, but I see no reason why it wouldn't work with a >2TiB disk, as long as partition 6 is below the 2TiB barrier.
Background:
An GPT disk also has an protective MBR partition with type ee, which starts at sector 1, and spans the whole disk (or 2TiB, whatever is smaller). When a disk has a partition 1 type ee starting at sector 1, an GPT aware OS will look at sector 2 for a GPT, and ignore the MBR. A non GPT aware OS (or bootloader) will just interpret the MBR. The u-boot in this box will just search for parition 6, and ignore everything else.
/dev/sdc4 is an extended partition, but GPT doesn't support extended partitions. And extended partition is actually just an extra partition table, located at the given (start) sector. /dev/sdc4 is not used by fvdw-sl, so I could just put that partition table there. The extended partition is needed, partition 6 can only be a logical partition, when using an MBR.
Note: This works with a Linux kernel. I don't know if other GPT aware OSses will all be happy with this construction. (Which is called a Hybrid MBR, BTW)