Linux use sfdisk command show boot device name

Fig.03: Linux use sfdisk command show boot device name

Fig.03: Linux use sfdisk command show boot device name

The syntax is as follows to see boot device or partition name on a Linux:
sfdisk -l
sfdisk -l /dev/device
sfdisk -l /dev/sda

Sample output:

Disk /dev/sda: 48596 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System /dev/sda1 * 0+ 31- 31- 248832 83 Linux /dev/sda2 31+ 48596- 48565- 390096897 5 Extended /dev/sda3 0 - 0 0 0 Empty /dev/sda4 0 - 0 0 0 Empty /dev/sda5 31+ 155- 125- 999424 82 Linux swap / Solaris /dev/sda6 155+ 48596- 48441- 389096448 83 Linux

Examples and usage: How to check boot path (partition) in Linux

Leave a Comment