Mount Specific Fstab Entry

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

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

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.