Kubuntu 自动将 USB 以只读方式挂载在 /media/usb0 中

Kubuntu 自动将 USB 以只读方式挂载在 /media/usb0 中

在全新安装 Kubuntu 15.10 后,我的 USB 驱动器自动以只读方式安装,/media/usb0而不是/media/<username>/

安装输出

$ sudo mount
/dev/sdb1 on /media/usb0 type vfat (rw,nodev,noexec,noatime,nodiratime,sync,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

设备所有者为root

drwxr-xr-x  9 root root 4,0K janv.  1  1970 usb0/

dmesg | tail

我注意到USB 结果errors=remount-ro行的末尾,因此我决定检查错误:mountdmesg

dmesg | tail
[64509.392669] sd 11:0:0:0: [sdb] Attached SCSI removable disk
[64509.698730] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

fsck

我跑

$ sudo fsck.vfat -a /dev/sdb1
fsck.fat 3.0.28 (2015-05-16)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
  3:53/6d, 4:59/6b, 5:53/64, 6:4c/6f, 7:49/73, 8:4e/66, 9:55/73, 10:58/00
  Not automatically fixing this.
Reclaimed 123 unused clusters (503808 bytes) in 4 chains.
Performing changes.
/dev/sdb1: 3906 files, 500874/1974252 clusters

dmesg | tail再次

dmesg | tail
[64990.154612]  sdb: sdb1
[64990.156582] sd 12:0:0:0: [sdb] Attached SCSI removable disk

没有更多错误,但仍然没有写入权限。

问题

如何自动将我的 USB 挂载为读写模式?

答案1

  1. 我删除了usbmount(我之前安装的);
  2. 配置可移动设备对话框(参见KDE Plasma 5 缺少可移动设备选项):

    kcmshell4 device_automounter_kcm
    
  3. 使用以下方法从服务管理器启动“可移动设备自动安装程序”

    kcmshell4 kcmkded
    
  4. 拔掉插头,重新插上,然后就好了!

相关内容