what is the best approach to check all mount point are mounted according to fstab file

my target is to check that all mountpoint as defined in fstab are really mounted

what is the command for this ?

1 Answer 1

mount --fake --verbose --all

For currently mounted devices the output will contain "already mounted".

Options explained (for exact details see man 8 mount):

  • --fake: mount command will not actually mount anything
  • --verbose: provide detailed output
  • --all: mount all devices listed in fstab
  • -a for --all and -v for --verbose also works. Oct 2, 2017 at 21:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .