New answers tagged fstab
You can setup an entry in the /etc/sudoers file for this user to be able to use the mount command. Add something like the following to the end of the /etc/sudoers file: username ALL=NOPASSWD: /usr/bin/mount, /sbin/mount.ntfs-3g, /usr/bin/umount Be sure that the exact path to each executable is correct for your system. For example, your mount command ...
You could write a script which checks whether the connection is broken and does the necessary clean-up in that case. This script could be executed every 30 minutes as root by cron. Maybe is disappears from /proc/mounts when the kernel detects that the device has gone. If not then the script could simply try to create a file on the mounted volume. That ...
You can't; ext doesn't support the uid/gid options or any other way of overriding the on disk permissions at mount time. You must set the permissions correctly on the disk as root.
Unmount the partition: # umount /part Rename the directory after making sure it's not mounted: # mountpoint /part &>/dev/null || mv /part /best_name_ever Edit /etc/fstab to replace /part with /best_name_ever Remount the partition: mount /best_name_ever The # is of course meant to represent your root prompt, not actual input to be typed in. ...
Top 50 recent answers are included