USB flash memory automounted but access denied - Mandriva

This is a discussion on USB flash memory automounted but access denied - Mandriva ; To all, When I plugin any usb flash memory a KDE window pops up and there' s a message (Access denied). The window doesn't list the files on it. The filesystem of the flash memory is fat32. There is no ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: USB flash memory automounted but access denied

  1. USB flash memory automounted but access denied

    To all,

    When I plugin any usb flash memory a KDE window pops up and there' s a
    message (Access denied). The window doesn't list the files on it.
    The filesystem of the flash memory is fat32.

    There is no entry for the flashmemory sdb1 in /etc/fstab.

    The output of uname-a
    Linux localhost 2.6.24.7-desktop586-1mnb #1 SMP Mon Jul 28 15:01:18 EDT
    2008 i686 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GNU/Linux

    Manddriva 2008.1 Konqueror 3.5.9

    The flash memory is regognized in Drakconf and there it can be mounted
    the flash memory can be used but only as root. and there is an entry in
    /etc/fstab when it's mounted, and a user can list the files in Konkueror
    ..

    How can I get this to automount properly?



    The output of /var/log/messages

    Oct 7 07:12:15 localhost kernel: usb 2-2: new high speed USB device
    using ehci_hcd and addr ess 9
    Oct 7 07:12:15 localhost kernel: usb 2-2: configuration #1 chosen from
    1 choice
    Oct 7 07:12:15 localhost kernel: scsi6 : SCSI emulation for USB Mass
    Storage devices
    Oct 7 07:12:20 localhost kernel: scsi 6:0:0:0: Direct-Access
    Kingston DataTraveler 2.0 1.02 PQ: 0 ANSI: 0 CCS
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] 251904 512-byte
    hardware sectors (129 MB )
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Write Protect is off
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive
    cache: write through
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] 251904 512-byte
    hardware sectors (129 MB )
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Write Protect is off
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive
    cache: write through
    Oct 7 07:12:20 localhost kernel: sdb: sdb1
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Attached SCSI
    removable disk
    Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: Attached scsi generic sg2
    type 0
    Oct 7 07:12:40 localhost kernel: usb 2-2: USB disconnect, address 9

    Thanks,
    GC

  2. Re: USB flash memory automounted but access denied

    On Tue, 07 Oct 2008 01:29:30 -0400, nospamgc wrote:

    > When I plugin any usb flash memory a KDE window pops up and there' s a
    > message (Access denied). The window doesn't list the files on it.
    > The filesystem of the flash memory is fat32.


    It sounds like the usb device is being recognized, but not as a storage
    device. See http://groups.google.ca/group/alt.os...50da547ee3c872

    Also, what is the output of /usr/sbin/lsusb ?

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  3. Re: USB flash memory automounted but access denied

    nospamgc wrote:

    > To all,
    >
    > When I plugin any usb flash memory a KDE window pops up and there' s a
    > message (Access denied). The window doesn't list the files on it.
    > The filesystem of the flash memory is fat32.
    >
    > There is no entry for the flashmemory sdb1 in /etc/fstab.
    >
    > The output of uname-a
    > Linux localhost 2.6.24.7-desktop586-1mnb #1 SMP Mon Jul 28 15:01:18 EDT
    > 2008 i686 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GNU/Linux
    >
    > Manddriva 2008.1 Konqueror 3.5.9
    >
    > The flash memory is regognized in Drakconf and there it can be mounted
    > the flash memory can be used but only as root. and there is an entry in
    > /etc/fstab when it's mounted, and a user can list the files in Konkueror
    > .
    >
    > How can I get this to automount properly?
    >
    >
    >
    > The output of /var/log/messages
    >
    > Oct 7 07:12:15 localhost kernel: usb 2-2: new high speed USB device
    > using ehci_hcd and addr ess 9
    > Oct 7 07:12:15 localhost kernel: usb 2-2: configuration #1 chosen from
    > 1 choice
    > Oct 7 07:12:15 localhost kernel: scsi6 : SCSI emulation for USB Mass
    > Storage devices
    > Oct 7 07:12:20 localhost kernel: scsi 6:0:0:0: Direct-Access
    > Kingston DataTraveler 2.0 1.02 PQ: 0 ANSI: 0 CCS
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] 251904 512-byte
    > hardware sectors (129 MB )
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Write Protect is off
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive
    > cache: write through
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] 251904 512-byte
    > hardware sectors (129 MB )
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Write Protect is off
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Assuming drive
    > cache: write through
    > Oct 7 07:12:20 localhost kernel: sdb: sdb1
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] Attached SCSI
    > removable disk
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: Attached scsi generic sg2
    > type 0
    > Oct 7 07:12:40 localhost kernel: usb 2-2: USB disconnect, address 9
    >
    > Thanks,
    > GC


    If it shows in KDE's "devices" window, you could mount it from there. I
    think that you right-click on the icon. But that is for the session only.

    I created an entry for /dev/sdb1 in /etc/fstab, copying the existing one
    in /etc/mtab, and added "users" to the options. That makes it
    read/writable by ordinary users. You still need to mount it manually just
    after saving fstab, but it will be automatically mounted next time. At one
    stage, that made bootup fail if the drive wasn't there to be checked in,
    but I usually leave mine in place.

    Only root can mount a device, but once mounted, it should be readable by a
    user, as you found. So, unless I have the syntax wrong, you could
    add "users" to the end of your "mount" command in a terminal, separated by
    a space.

    In my case the device number changes, so I identify it in fstab by the UUID;
    to determine that, see
    http://www.granneman.com/blog/2007/0...d-drives-uuid/

    HTH,

    Doug.
    --
    It is all right letting yourself go as long as you can let yourself back.
    - Mick Jagger.


  4. Re: USB flash memory automounted but access denied

    Doug Laidlaw schreef:
    SNIP

    any usb flash memory a KDE window pops up and there' s a
    >> message (Access denied).
    >>
    >> How can I get this to automount properly?




    > I created an entry for /dev/sdb1 in /etc/fstab, copying the existing one
    > in /etc/mtab, and added "users" to the options. That makes it
    > read/writable by ordinary users.


    Thanks Doug,
    and thanks David,

    Tried lsusb and verified the usb devices are indeed listed.
    So I investigated a little more.
    On closer inspection of /etc/fstab there was a line there that
    referenced /dev/sdb1 so I commented out this line, and rebooted.
    Flash memory now mounts as normal (no access denied messages anymore.)

    Not only flash memory is working again, a card reader that was greyed
    out in Vbox magically started working also, so I guess I should be
    wondering how this particular line in fstab was there in the first place.

    Thanks,
    G.C.

  5. Re: USB flash memory automounted but access denied

    On Tue, 07 Oct 2008 16:12:49 -0400, nospamgc wrote:

    > out in Vbox magically started working also, so I guess I should be
    > wondering how this particular line in fstab was there in the first place.


    If you used diskdrake to partition/format one of the removable devices, at
    the end, it would have given you the option to update fstab. If you didn't
    manually add the entry, that's the most likely cause that I can think of.

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  6. Re: USB flash memory automounted but access denied

    On Tue, 07 Oct 2008 07:29:30 +0200, nospamgc wrote:

    > To all,
    >
    > When I plugin any usb flash memory a KDE window pops up and there' s a
    > message (Access denied). The window doesn't list the files on it. The
    > filesystem of the flash memory is fat32.
    >
    > There is no entry for the flashmemory sdb1 in /etc/fstab.
    >
    > The output of uname-a
    > Linux localhost 2.6.24.7-desktop586-1mnb #1 SMP Mon Jul 28 15:01:18 EDT
    > 2008 i686 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GNU/Linux
    >
    > Manddriva 2008.1 Konqueror 3.5.9
    >
    > The flash memory is regognized in Drakconf and there it can be mounted
    > the flash memory can be used but only as root. and there is an entry in
    > /etc/fstab when it's mounted, and a user can list the files in Konkueror
    > .
    >
    > How can I get this to automount properly?


    Just for the record, that is not automount - it is hotplug. automount is a
    facility whereby remote file systems can be mounted merely by accessing
    them - they are then unmounted automatically after a period of inactivity.


    >
    >
    >
    > The output of /var/log/messages
    >
    > Oct 7 07:12:15 localhost kernel: usb 2-2: new high speed USB device
    > using ehci_hcd and addr ess 9 Oct 7 07:12:15 localhost
    > kernel: usb 2-2: configuration #1 chosen from 1 choice
    > Oct 7 07:12:15 localhost kernel: scsi6 : SCSI emulation for USB Mass
    > Storage devices
    > Oct 7 07:12:20 localhost kernel: scsi 6:0:0:0: Direct-Access Kingston
    > DataTraveler 2.0 1.02 PQ: 0 ANSI: 0 CCS Oct 7 07:12:20
    > localhost kernel: sd 6:0:0:0: [sdb] 251904 512-byte hardware sectors
    > (129 MB ) Oct 7 07:12:20 localhost kernel: sd 6:0:0:0:
    > [sdb] Write Protect is off Oct 7 07:12:20 localhost kernel: sd 6:0:0:0:
    > [sdb] Assuming drive cache: write through
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: [sdb] 251904 512-byte
    > hardware sectors (129 MB ) Oct 7 07:12:20 localhost kernel:
    > sd 6:0:0:0: [sdb] Write Protect is off Oct 7 07:12:20 localhost kernel:
    > sd 6:0:0:0: [sdb] Assuming drive cache: write through
    > Oct 7 07:12:20 localhost kernel: sdb: sdb1 Oct 7 07:12:20 localhost
    > kernel: sd 6:0:0:0: [sdb] Attached SCSI removable disk
    > Oct 7 07:12:20 localhost kernel: sd 6:0:0:0: Attached scsi generic sg2
    > type 0
    > Oct 7 07:12:40 localhost kernel: usb 2-2: USB disconnect, address 9
    >
    > Thanks,
    > GC



+ Reply to Thread