我正在尝试使用ext4 USB驱动器,但Ubuntu 13当前仅以root用户的写权限安装它,因此对于普通用户,如果没有sudo,我将无法对其进行写操作。
我检查的第一个地方dconf-editor
有以下选项
- 自动挂载
- 自动挂载
- 自动运行
- autorun-x-content-ignore
- 自动运行x内容打开文件夹
- autorun-x-content-start-app
在我看来,应该可以选择是否可以写入已安装的USB驱动器,但不能。
我还确保我的用户在相关组中:fuse
和plugdev
我已经搜索了大多数Internet,找不到解决方案来更改安装操作所赋予的权限。实际上,没有人会遇到这个问题。很多人会遇到问题,因为它们的驱动器完全是只读的,但只有root写入权限才可以。
我看不到任何控制情况的方法。我看过使用来设置安装选项,gnome-disks
但留下了空白。
它不在,fstab
但确实出现在mount
列表或/ etc / mtab中:
/dev/sdb1 /media/adam/WDPassport2T ext4 rw,nosuid,nodev,uhelper=udisks2 0 0
如果有帮助,这是syslog中显示的内容:
kernel: [111522.196770] usb 2-1: USB disconnect, device number 6
kernel: [111525.384020] usb 2-1: new high-speed USB device number 7 using ehci-pci
kernel: [111525.565220] usb 2-1: New USB device found, idVendor=1058, idProduct=0820
kernel: [111525.565225] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
kernel: [111525.565227] usb 2-1: Product: My Passport 0820
kernel: [111525.565229] usb 2-1: Manufacturer: Western Digital
kernel: [111525.565231] usb 2-1: SerialNumber: 575832314141334A34383631
kernel: [111525.565729] usb-storage 2-1:1.0: USB Mass Storage device detected
kernel: [111525.566203] scsi9 : usb-storage 2-1:1.0
mtp-probe: checking bus 2, device 7: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1"
mtp-probe: bus: 2, device: 7 was not an MTP device
kernel: [111526.564697] scsi 9:0:0:0: Direct-Access WD My Passport 0820 1007 PQ: 0 ANSI: 6
kernel: [111526.565063] scsi 9:0:0:1: Enclosure WD SES Device 1007 PQ: 0 ANSI: 6
kernel: [111526.568096] sd 9:0:0:0: Attached scsi generic sg2 type 0
kernel: [111526.568202] ses 9:0:0:1: Attached Enclosure device
kernel: [111526.568263] ses 9:0:0:1: Attached scsi generic sg3 type 13
kernel: [111531.263108] sd 9:0:0:0: [sdb] 3906963456 512-byte logical blocks: (2.00 TB/1.81 TiB)
kernel: [111531.265100] sd 9:0:0:0: [sdb] Write Protect is off
kernel: [111531.265105] sd 9:0:0:0: [sdb] Mode Sense: 47 00 10 08
kernel: [111531.266473] sd 9:0:0:0: [sdb] No Caching mode page found
kernel: [111531.266479] sd 9:0:0:0: [sdb] Assuming drive cache: write through
kernel: [111531.272224] sd 9:0:0:0: [sdb] No Caching mode page found
kernel: [111531.272230] sd 9:0:0:0: [sdb] Assuming drive cache: write through
kernel: [111531.284885] sdb: sdb1
kernel: [111531.288219] sd 9:0:0:0: [sdb] No Caching mode page found
kernel: [111531.288223] sd 9:0:0:0: [sdb] Assuming drive cache: write through
kernel: [111531.288227] sd 9:0:0:0: [sdb] Attached SCSI disk
kernel: [111531.751588] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
udisksd[3131]: Mounted /dev/sdb1 at /media/adam/WDPassport2T on behalf of uid 1000
gvfs-mount -d /dev/sdb1
应安装驱动器,也应安装udisks --mount /dev/sda5
。这些密码不需要root密码,因为它们使用gvfsd
条目允许访问。
ls -ld /media/adam/WDPassport2T
和ls -l /media/adam/WDPassport2T
输出?
sudo umount /dev/sdb1
,然后以普通用户身份进行安装。该mtab
条目user=adam
,这应该意味着用户adam
可以使用它...