How to view unallocated disks in Linux?

In Linux system, you can use the following command to view unallocated disks:

  1. show information about all block devices on the system
lsblk

This command will show information such as the name, size, and partition type of the disk. Unallocated disks typically appear as disks without partitions.

  1. fdisk is a command-line utility used for partitioning and formatting hard drives.
sudo fdisk -l

This command will display partition information for the disk, including allocated and unallocated disks.

Note that commands for viewing and managing disks typically require the use of “sudo” or to be run as root in order to obtain sufficient permissions.

bannerAds