Re: fdisk: off-by-one issue in (n)new command

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

 



On Mon, Jan 16, 2012 at 07:30:42PM -0300, Gerardo Exequiel Pozzi wrote:
> Last sector, +sectors or +size{K,M,G} (2048-524287, default 524287): +255M
> Value out of range.

 The size of the device is 268435456 bytes,

 +255M is relative to the begin of the partition, it means

    (2048 * 512) + (255 * 1024 * 1024) = 268435456 bytes

 but the begin of the last sector (in bytes) is

    268435456 - 512 = 268434944 bytes (LBA sector 524287)

 Right?

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" 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