LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Usb Device to mount (https://www.linuxquestions.org/questions/linux-newbie-8/usb-device-to-mount-4175476033/)

pjtuloup 09-05-2013 08:24 AM

Usb Device to mount
 
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 !

ilesterg 09-06-2013 03:26 AM

Just after plugging in the usb device, what does lsusb say?

pjtuloup 09-06-2013 08:21 AM

Thanks for your question, ilesterg

lsusb says:
Code:

Bus 001 Device 007: ID 0aa6:1501 Perception Digital, Ltd Store 'n' Go HD Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 047d:1022 Kensington Orbit Optical
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

However, I found a way to solve my problem which seems to show ther is a bug in usb gestion system.

Have a look:

NOTA1
If I put this in /etc/fstab
Code:

/dev/disk/by-label/VERBATIM  /mnt/clef2        vfat        auto,user,rw,uid=1001,gid=100    0  0
VERBATIM is showed in Dolphin, but appears empty (even if I click on it)

NOTA2
If I put this in /etc/fstab
Code:

/dev/disk/by-uuid/F8C4-7A68  /mnt/clef2        vfat        auto,user,rw,uid=1001,gid=100    0  0
VERBATIM is not showed and I must do "show all entries", but if I click on it all is Ok: full access ! (my way to solve the problem, for the moment)

Very strange, isn't it ?


All times are GMT -5. The time now is 06:18 PM.