Package: util-linux
Version: 2.27.1-3
Severity: wishlist
File: /sbin/fdisk

Here we see the first device is followed by five blank lines, the others
by two.

# fdisk -l 2>&1|nl -b a
     1  Partition 4 does not start on physical sector boundary.
     2  Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
     3  Units: sectors of 1 * 512 = 512 bytes
     4  Sector size (logical/physical): 512 bytes / 4096 bytes
     5  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
     6  Disklabel type: dos
     7  Disk identifier: 0xc3ffc3ff
     8
     9  Device     Boot     Start       End   Sectors   Size Id Type
    10  /dev/sda4       122898430 974501887 851603458 406.1G  5 Extended
    11  /dev/sda5       122898432 949747711 826849280 394.3G 83 Linux
    12  /dev/sda6       949749760 974501887  24752128  11.8G 82 Linux swap / 
Solaris
    13
    14
    15
    16
    17
    18  Disk /dev/sdc: 3.6 GiB, 3867148288 bytes, 7553024 sectors
    19  Units: sectors of 1 * 512 = 512 bytes
    20  Sector size (logical/physical): 512 bytes / 512 bytes
    21  I/O size (minimum/optimal): 512 bytes / 512 bytes
    22  Disklabel type: dos
    23  Disk identifier: 0xc3072e18
    24
    25  Device     Boot  Start     End Sectors   Size Id Type
    26  /dev/sdc1           32  868799  868768 424.2M 83 Linux
    27  /dev/sdc2       868800 7553023 6684224   3.2G 83 Linux
    28
    29
    30  Disk /dev/sdb: 3.8 GiB, 4075290624 bytes, 7959552 sectors
    31  Units: sectors of 1 * 512 = 512 bytes
    32  Sector size (logical/physical): 512 bytes / 512 bytes
    33  I/O size (minimum/optimal): 512 bytes / 512 bytes
    34  Disklabel type: dos
    35  Disk identifier: 0x00000000
    36
    37  Device     Boot   Start     End Sectors  Size Id Type
    38  /dev/sdb1          2048 5834751 5832704  2.8G 83 Linux
    39  /dev/sdb2       5834752 6858751 1024000  500M 83 Linux
    40  /dev/sdb3       6858752 6860799    2048    1M 83 Linux
    41  /dev/sdb4       6860800 7770111  909312  444M  5 Extended
#

P.S., on the man page s/begin/beginning/

       -B, --protect-boot
              Don't erase the begin of the first disk sector when create a new
              disk label. This feature is supported for GPT and MBR.

Reply via email to