How to check for unmounted disks in Linux?
The following command can be used to view unmounted disks:
- List all disk partitions.
sudo fdisk -l
- list block devices
lsblk
- Identify Block Devices
blkid
The above command will display information about all mounted and unmounted devices. Unmounted devices typically do not show the file system type, so this information can be used to identify unmounted devices.