Mount specific fstab entry

Sometimes you need to disconnect and reconnect mounts that have gone bad and don't want to disconnect + reconnect the entire list of fstab entries.

Is this possible without having to basically rerun the full underlying mount command that fstab abstracts away? Something like:

mount /Videos

where fstab contains:

//admin@192.168.1.4/Videos$ /Videos smbfs nodev,nosuid,auto

I'd rather not copy and paste the entire fstab entry and modify it to use the mount -o syntax

6

1 Answer

(Thanks to Tan for the answer)

umount /Videos and mount /Videos will work, and the latter will use the source, type and options in //admin@192.168.1.4/Videos$ /Videos smbfs nodev,nosuid,auto that is specified in fstab.

Side-note: I don’t bother with /etc/fstab anymore. I use /etc/auto.direct.

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