Hi. Commands executed:
# dd if=/dev/zero of=/dev/sdc
# parted /dev/sdc
(parted) unit s print free
Error: /dev/sdc: unrecognised disk label
Model: (...) (scsi)
Disk /dev/sdc: 15638480s
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted) mktable msdos
(parted) unit s print free
Disk /dev/sdc: 15638480s
Partition Table: msdos
Number Start End Size Type File system Flags
2s 15638479s 15638478s Free Space
Disks' sizes calculation model, involved in the calculation of values related to disks, appears to be incorrect. Here an illustration from above output, assuming that disks start from sector 1; according to that assumption correct calculation model regarding disks' sizes is expected to be:
Disk <path> = Size + (Start - 1<size_unit> = 15638478s + (2 -1)s = 15638479s.
However exhibited Disk /dev/sdc size is 15638480s. Regards R.T.