Robert Lemmen wrote: > hi michael, > > could you explain how to create such a partition? i have created a small > loopback with a GPT partition, but i don't see that behaviour...
Not using a loopback device but a plain file: # create a sparse file, ~200GB in this case dd if=/dev/zero of=fakedisk bs=1 count=0 seek=219902325555 # write gpt label parted fakedisk mklabel gpt # create a partition fdisk fakedisk # commands: n/return/return/asdf/return/+10G/w # verify that gpt label exists (look for 01 00 ee fe ff ff in line 1c0) dd if=fakedisk bs=512 count=1 | hexdump -C -v # write MBR dd if=/dev/urandom of=fakedisk bs=440 count=1 conv=notrunc # verify MBRs existence (random data before partition marker) dd if=fakedisk bs=512 count=1 | hexdump -C -v # create another partition fdisk fakedisk # commands: n/return/return/fdsa/return/+10G/w # notice absence of random data dd if=fakedisk bs=512 count=1 | hexdump -C -v For the record: mirror02:~# dpkg -l gnu-fdisk coreutils parted libparted1.8-10 linux-image-2.6.26-1-amd64 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-========================-========================-================================================================ ii coreutils 6.10-6 The GNU core utilities ii gnu-fdisk 1.0-3+b1 Linux fdisk replacement based on libparted ii libparted1.8-10 1.8.8.git.2008.03.24-11 The GNU Parted disk partitioning shared library ii parted 1.8.8.git.2008.03.24-11 The GNU Parted disk partition resizing program mirror02:~# Hope that's clear enough, Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]