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:
//[email protected]/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
Solution 1:
(Thanks to Tan for the answer)
umount /Videos
and mount /Videos
will work, and the latter will use the source, type and options in //[email protected]/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
.