How to check mounted hard drives in Ubuntu?

To check the mounted hard drives on Ubuntu, you can use the following command:

  1. View mounted hard drives: df -h
    This command will display detailed information about the mounted hard drives, including the mount point and available space.
  2. To view all hard drive partitions, use the command: sudo fdisk -l. This will display information about all hard drive partitions, including device names and partition types.
  3. View mounted file systems: mount
    This will display the mounted file systems and their mount points.
  4. To view hard disk information, use sudo lsblk which displays a tree structure of all disks and their partitions.

These commands allow you to quickly view the mounted hard drives and their detailed information.

bannerAds