print (Parted User’s Manual)

#### 2.4.8 print

Command: print [print-type] ¶

  Displays the partition table on the device parted is editing, or detailed information about a particular partition.

  print-type is optional, and can be one of ‘`devices`’, ‘`free`’, ‘`list`’, or ‘`all`’.

  `devices`

    display all active block devices

  `free`

    display information about free unpartitioned space on the current block device

  `list, all`

    display the partition tables of all active block devices

  Example:

      (parted) print
      Model: ATA Samsung SSD 850 (scsi)
      Disk /dev/sda: 2684MB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos
      Disk Flags:

      Number  Start   End     Size    Type     File system     Flags
       1      1049kB  1000MB  999MB   primary                  boot, lba
       2      1000MB  2300MB  1299MB  primary  ext2            lba
       3      2300MB  2500MB  200MB   primary  linux-swap(v1)  lba
      (parted) print free
      Model: ATA Samsung SSD 850 (scsi)
      Disk /dev/sda: 2684MB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos
      Disk Flags:

      Number  Start   End     Size    Type     File system     Flags
              16.4kB  1049kB  1032kB           Free Space
       1      1049kB  1000MB  999MB   primary                  boot, lba
       2      1000MB  2300MB  1299MB  primary  ext2            lba
       3      2300MB  2500MB  200MB   primary  linux-swap(v1)  lba
              2500MB  2684MB  185MB            Free Space