vfat USBドライブ自動マウント

vfat USBドライブ自動マウント

私はdebian 8と kde-fullパッケージを使用していますが、すべてが最新です。私は4つのUSBフラッシュドライブを持っています。すべてWindows OSでフォーマットされています。しかし、サンディスク「14.9 GiBリムーバブルメディア」のみが正しく自動インストールされました。 TrascendとKINGSTONは自動的に読み取り専用でインストールされます。私はイルカで多くのことはできません。したがって、問題は、これら2つのドライブがルートを所有者としてマウントされることです。

私は試した: * udevの規則で遊ぶ https://unix.stackexchange.com/questions/111685/usb-drive-permissions-when-automounting/124060#124060 https://unix.stackexchange.com/questions/24731/automounting-usb-sticks-on-debian/186469#186469 - 結果なし* ntfs-3g、autofs、dosfstoolsパッケージのインストール* sudo chown -R root:disk /media/usb1コマンドの実行 - 成功しません

私はそれを動作させる方法がないと信じられません。 NTFS USB ドライブが正しく取り付けられている場合は、同様の方法で FAT ドライブを取り付けることができます。

猫/etc/fstab

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=febe762a-ce94-479e-957e-6f405012b81b / ext4 errors=remount-ro 0 1
/dev/sr0   /media/cdrom0   udf,iso9660   user,noauto   0   0
/swap_debian    none    swap    swap    0     0

ここに画像の説明を入力してください。

admin@debian-PC:~$ sudo fdisk -l

その先に:

Disk /dev/sdb: 30 GiB, 32224837632 bytes, 62939136 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: 0x00000000

Device     Boot Start      End  Sectors Size Id Type
/dev/sdb1         256 62939135 62938880  30G  b W95 FAT32

14.9GiBリムーバブルメディア:

Disk /dev/sdc: 14.9 GiB, 16008609792 bytes, 31266816 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: 0x1b541b54

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1  *     2048 31266815 31264768 14.9G  7 HPFS/NTFS/exFAT

キングストン:

Disk /dev/sdd: 7.5 GiB, 8019509248 bytes, 15663104 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: 0x04030201

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdd1        2192 15663103 15660912  7.5G  c W95 FAT32 (LBA)

見せないでください。

Disk /dev/sdb: 3.9 GiB, 4194304000 bytes, 8192000 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: 0x6da2a859

Device     Boot Start     End Sectors Size Id Type
/dev/sdb1  *       63 4209092 4209030   2G  e W95 FAT16 (LBA)

最後のドライブはまったくマウントされません。

ベストアンサー1

おすすめ記事