sfdisk and 1MiB post-MBR gap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As per ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.18/v2.18-ReleaseNotes :

fdisk(8):
  - supports new command line option "-c" to switch off DOS mode
  - uses 1MiB offset for the first partition
    (all these changes are already in the release 2.17.2)

I presume the 1MiB offset is to accomodate for grub2. sfdisk would need to be updated to do so too. My attempts in partitioning a drive with a 1MiB post-MBR gap failed with the following command line call:

sfdisk -uM -L /dev/sda <<-EOF
1,256,fd
,512,fd
,,fd
;
EOF

Obviously, this might be due to a bug in sfdisk (ignores the first parameter I set, I've tried with other figures with no success), or my misunderstanding of sfdisk's usage. In any case, sfdisk needs to be modified to accommodate for grub2.

Thanks,

Eric Thibodeau
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux