How to check boot path (partition) in Linux

To check the boot partition in Linux, you can use the “lsblk” command. This command lists all the available block devices and their respective partitions. The boot partition is typically the root partition (/) and is mounted as the root file system. The output of the command will show the name of the partition (e.g., sda1, sdb2, etc.), the file system type, and the mount point.

Example:

lsblk

Output:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 20G 0 part /
├─sda2 8:2 0 30G 0 part /home
└─sda3 8:3 0 50G 0 part /data

In this example, the root partition is “/dev/sda1” and is mounted as “/”.

Leave a Comment