系统: Linux 19.1肉桂。
此问题中的磁盘被认为是ext4或ntfs格式化的外部HDD。
我感兴趣的是如何设置我的fstab或其他任何东西,以便卸载(**umount**)正常用户帐户下的那些外部HDD?
我有:
ext4ntfs我的fstab的相关部分:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail 0 0发布于 2019-03-26 08:33:00
您需要将users选项添加到fstab条目中。
在我的设置中的工作示例:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail,users 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail,users 0 0这将允许您(在重新启动时)执行例如:
umount /dev/sdX1作为没有sudo的普通用户。
此外,在Linux上,有一个磁盘GUI,您甚至可以关闭这些驱动器,我强调:一旦您卸载了这些驱动器,请按下顶部栏中的power磁盘按钮,在右边:

https://unix.stackexchange.com/questions/508681
复制相似问题