Hi all,
There is something I don't understand about mounting usb devices on my PC
I have a Verbatim usb key (vfat)
fdisk -l says
Code:
Disk /dev/sdb: 8000 MB, 8000004096 bytes
255 heads, 63 sectors/track, 972 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x634ad1c9
Device Boot Start End Blocks Id System
/dev/sdb1 2 972 7799557+ 5 Extended
/dev/sdb5 2 972 7799526 b W95 FAT32
and blkid says
Code:
/dev/sdb5: LABEL="VERBATIM" UUID="F8C4-7A68" TYPE="vfat"
I want to mount it by clicking on his name in dolphin
I wrote this in /etc/fstab
Code:
LABEL=VERBATIM /mnt/clef2 vfat auto,user,rw,uid=1001,gid=100 0 0
knowing that:
-my uid user is 1001
Code:
uid=1001(pierre) gid=100(users) groups=100(users),83(plugdev)
-my user belongs to plugdev
Code:
plugdev:x:83:root,pierre
-plugdev is in CONSOLE_GROUPS of /etc/login.defs
Code:
CONSOLE_GROUPS floppy:audio:cdrom:video:plugdev
Permissions on mounting directory are
Code:
drwxr-xr-x 2 pierre users 4096 2011-09-16 10:08 clef2
BUT: then I plug it and go in Dolphin, it doesn't appear; I must to do "list all entries" to show "VERBATIM". And if I click on it, I get the following error message
"An error occured accesing to "Verbatim" (My message is in french, of course). Message reçu: org.freedesktop.Hal.Device.Volume.PermissionDenied: Device /dev/sdb5
(Permissions on /dev/sdb* are:
Code:
brw-rw---- 1 root disk 8, 17 2013-09-05 14:38 sdb1
brw-rw---- 1 root disk 8, 21 2013-09-05 14:38 sdb5
I must thus to do as root "mount -a", (and get "mount: devpts already mounted or /dev/pts busy"), then click on "Verbatim" in Dolphin and all is OK, I have full access to /mnt/clef2
What did I wrong ? Thanks in advance !