List all mounts in Linux

I know mount and df lists all mounts. But I would like to list the mounts which failed to establish on boot, too. How do I get them?

2

2 Answers

There is no such command, since there is no list of "attempted mounts". You can compare the current mount list (/etc/mtab) to the list of shares registered to be mounted though (/etc/fstab).

Alternatively you could try to grep through the system log files to find failed mount attempts.

2

You can use mount -a to mount all the mount points defined in the fstab.

If there is some kind of error mounting, you will get some warning. If the mount point is already mounted successfully, the command will do nothing with that mountpoint.

Mount errors should appear in dmesg.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like