Linux Command: Show Mounted Hard Drives Partition

https:/‮/‬www.lautturi.com
Linux Command: Show Mounted Hard Drives Partition

To show the mounted hard drive partitions on a Linux system, you can use the mount command. mount is a utility that displays the currently mounted file systems and their associated devices, as well as the mount options used for each file system.

Here's an example of how to use mount to show the mounted hard drive partitions:

$ mount

This will display a list of the currently mounted file systems and their associated devices, including the hard drive partitions. The device name of a hard drive partition will typically be in the form of /dev/sdX, where X is a letter representing the device (e.g., sda, sdb, etc.).

You can also use the lsblk command to list the block devices on the system, along with their device names and mount points. For example:

$ lsblk -o NAME,MOUNTPOINT

This will display a list of the block devices on the system, including the hard drive partitions, along with their mount points (if they are mounted).

Note: The specific options and syntax for these commands may vary depending on your Linux distribution and version. Consult the mount and lsblk man pages or documentation for your system for more information.

It's also important to note that hard drive partitions may not always be mounted. Unmounted partitions will not be listed by the mount or lsblk commands, unless they are specifically mentioned in the /etc/fstab file as being automatically mounted at boot.

Created Time:2017-10-29 22:08:52  Author:lautturi