我在使用USB驱动器时遇到问题。它曾经可以自动挂载,但是由于某些原因,那些美好的过去已经过去了。它不仅不会自动挂载,而且还可以从Nautilus或终端作为普通用户挂载它,
您没有查看“元素”内容所必需的权限。
我完全可以用root挂载它
sudo mount -t ntfs-3g /dev/sdb1 /media/Elements
我怀疑(并且仍然存在)权限问题,即使Nautilus为我的用户,管理员组和其他用户提供了r + w权限,也将其更改为:
cd /media/Elements
sudo chown -R -v sarah:sarah
这支持了我的希望,因为整个输出类似于
changed ownership of 'Volumes' from root:root to sarah:sarah
... 但不是。除非我sudo挂载,否则仍然无法挂载。
这是fstab的内容:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda4 during installation
UUID=9a4ff421-d5ab-4d26-a635-f9fd111d7eec / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=67E3-17ED /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda5 during installation
UUID=bbf1370f-c5c6-4398-b8ef-7d6092450df8 none swap sw 0 0
磁盘看起来像这样 fdisk -l ; ls -l /dev/disk/by-uuid/
Device Start End Sectors Size Type
/dev/sda1 40 409639 409600 200M EFI System
/dev/sda2 409640 488746431 488336792 232,9G Apple HFS/HFS+
/dev/sda3 488746432 490015967 1269536 619,9M Apple boot
/dev/sda4 490016768 968577023 478560256 228,2G Linux filesystem
/dev/sda5 968577024 976771071 8194048 3,9G Linux swap
Disk /dev/sdb: 931,5 GiB, 1000170586112 bytes, 1953458176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa635339d
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1953458175 1953456128 931,5G 7 HPFS/NTFS/exFAT
total 0
lrwxrwxrwx 1 root root 10 maj 8 20:26 072d92f8-9fe6-3e97-8dc8-b974961cd0ea -> ../../sda2
lrwxrwxrwx 1 root root 10 maj 8 20:26 67E3-17ED -> ../../sda1
lrwxrwxrwx 1 root root 10 maj 8 20:26 876e8119-57e2-37e2-bc4a-2a1ddc3d4de4 -> ../../sda3
lrwxrwxrwx 1 root root 10 maj 8 22:35 9092472B924714DE -> ../../sdb1
lrwxrwxrwx 1 root root 10 maj 8 20:26 9a4ff421-d5ab-4d26-a635-f9fd111d7eec -> ../../sda4
lrwxrwxrwx 1 root root 10 maj 8 20:26 bbf1370f-c5c6-4398-b8ef-7d6092450df8 -> ../../sda5
有任何想法吗?
/etc/fstab
请的内容。