USB pen drives and KDE - Debian

This is a discussion on USB pen drives and KDE - Debian ; Hi, I just upgraded to KDE 3.4 specifically so that I could use the USB automounting goodies but I can't seem to get it to work as I want it to. When I plug the pen drive in I get ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: USB pen drives and KDE

  1. USB pen drives and KDE

    Hi,

    I just upgraded to KDE 3.4 specifically so that I could use the USB
    automounting goodies but I can't seem to get it to work as I want it to.

    When I plug the pen drive in I get this in the sys log

    *************SNIP*******************
    Sep 15 14:05:12 localhost kernel: usb 1-8.1: new full speed USB device using
    ohci_hcd and address 11
    Sep 15 14:05:12 localhost kernel: scsi10 : SCSI emulation for USB Mass Storage
    devices
    Sep 15 14:05:12 localhost kernel: usb-storage: device found at 11
    Sep 15 14:05:12 localhost kernel: usb-storage: waiting for device to settle
    before scanning
    Sep 15 14:05:13 localhost usb.agent[23835]: usb-storage: already loaded
    Sep 15 14:05:17 localhost kernel: Vendor: Generic Model: USB Flash Drive
    Rev: %%z!Y
    Sep 15 14:05:17 localhost kernel: Type: Direct-Access
    ANSI SCSI revision: 02
    Sep 15 14:05:17 localhost kernel: SCSI device sdb: 128640 512-byte hdwr
    sectors (66 MB)
    Sep 15 14:05:17 localhost kernel: sdb: Write Protect is off
    Sep 15 14:05:17 localhost kernel: sdb: Mode Sense: 0b 00 00 08
    Sep 15 14:05:17 localhost kernel: sdb: assuming drive cache: write through
    Sep 15 14:05:17 localhost kernel: SCSI device sdb: 128640 512-byte hdwr
    sectors (66 MB)
    Sep 15 14:05:17 localhost kernel: sdb: Write Protect is off
    Sep 15 14:05:17 localhost kernel: sdb: Mode Sense: 0b 00 00 08
    Sep 15 14:05:17 localhost kernel: sdb: assuming drive cache: write through
    Sep 15 14:05:17 localhost kernel: /dev/scsi/host10/bus0/target0/lun0: p1
    Sep 15 14:05:17 localhost kernel: Attached scsi removable disk sdb at scsi10,
    channel 0, id 0, lun 0
    Sep 15 14:05:17 localhost kernel: usb-storage: device scan complete
    Sep 15 14:05:17 localhost scsi.agent[23881]: sd_mod: loaded successfully
    (for disk)
    Sep 15 14:05:18 localhost usbmount[23940]: executing command: mount -tvfat
    -osync,noexec,nodev,noatime /dev/sdb1 /media/usb0
    Sep 15 14:05:19 localhost usbmount[23940]: executing command:
    run-parts /etc/usbmount/mount.d
    *************SNIP*******************

    and the device is automagically mounted at /media/usb0. The problem is that
    when I try and copy a file onto the drive I get this in the sys log

    *************SNIP*******************
    Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead device
    Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 253) failed
    Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead device
    Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 254) failed
    Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead device
    Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 255) failed
    *************SNIP*******************

    if I am regular user. If I am root everything works fine and dandy and I can
    copy files to and from the drive.

    I can see the drive in konqueror under media:/ (is there supposed to be a
    media tab because I have to type that in manually?) however I can't safely
    unmount it from there as I get this error message

    umount: /media/usb0 is not in the fstab (and you are not root)

    I was under the impression that it would all just work with KDE 3.4 but it
    doesn't seem to.

    I have pmount, hal, udev, hotplug and usbutils installed.

    Many thanks, Graham


    --
    To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  2. Re: USB pen drives and KDE

    But that pen drive works without errors if mounted manually?
    It seem's that it has filesystem errors on it, or it has damaged sectors...
    Bye

    Graham Smith ha scritto:

    >Hi,
    >
    >I just upgraded to KDE 3.4 specifically so that I could use the USB
    >automounting goodies but I can't seem to get it to work as I want it to.
    >
    >When I plug the pen drive in I get this in the sys log
    >
    >*************SNIP*******************
    >Sep 15 14:05:12 localhost kernel: usb 1-8.1: new full speed USB device using
    >ohci_hcd and address 11
    >Sep 15 14:05:12 localhost kernel: scsi10 : SCSI emulation for USB Mass Storage
    >devices
    >Sep 15 14:05:12 localhost kernel: usb-storage: device found at 11
    >Sep 15 14:05:12 localhost kernel: usb-storage: waiting for device to settle
    >before scanning
    >Sep 15 14:05:13 localhost usb.agent[23835]: usb-storage: already loaded
    >Sep 15 14:05:17 localhost kernel: Vendor: Generic Model: USB Flash Drive
    >Rev: %%z!Y
    >Sep 15 14:05:17 localhost kernel: Type: Direct-Access
    >ANSI SCSI revision: 02
    >Sep 15 14:05:17 localhost kernel: SCSI device sdb: 128640 512-byte hdwr
    >sectors (66 MB)
    >Sep 15 14:05:17 localhost kernel: sdb: Write Protect is off
    >Sep 15 14:05:17 localhost kernel: sdb: Mode Sense: 0b 00 00 08
    >Sep 15 14:05:17 localhost kernel: sdb: assuming drive cache: write through
    >Sep 15 14:05:17 localhost kernel: SCSI device sdb: 128640 512-byte hdwr
    >sectors (66 MB)
    >Sep 15 14:05:17 localhost kernel: sdb: Write Protect is off
    >Sep 15 14:05:17 localhost kernel: sdb: Mode Sense: 0b 00 00 08
    >Sep 15 14:05:17 localhost kernel: sdb: assuming drive cache: write through
    >Sep 15 14:05:17 localhost kernel: /dev/scsi/host10/bus0/target0/lun0: p1
    >Sep 15 14:05:17 localhost kernel: Attached scsi removable disk sdb at scsi10,
    >channel 0, id 0, lun 0
    >Sep 15 14:05:17 localhost kernel: usb-storage: device scan complete
    >Sep 15 14:05:17 localhost scsi.agent[23881]: sd_mod: loaded successfully
    >(for disk)
    >Sep 15 14:05:18 localhost usbmount[23940]: executing command: mount -tvfat
    >-osync,noexec,nodev,noatime /dev/sdb1 /media/usb0
    >Sep 15 14:05:19 localhost usbmount[23940]: executing command:
    >run-parts /etc/usbmount/mount.d
    >*************SNIP*******************
    >
    >and the device is automagically mounted at /media/usb0. The problem is that
    >when I try and copy a file onto the drive I get this in the sys log
    >
    >*************SNIP*******************
    >Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead device
    >Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 253) failed
    >Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead device
    >Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 254) failed
    >Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead device
    >Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 255) failed
    >*************SNIP*******************
    >
    >if I am regular user. If I am root everything works fine and dandy and I can
    >copy files to and from the drive.
    >
    >I can see the drive in konqueror under media:/ (is there supposed to be a
    >media tab because I have to type that in manually?) however I can't safely
    >unmount it from there as I get this error message
    >
    >umount: /media/usb0 is not in the fstab (and you are not root)
    >
    >I was under the impression that it would all just work with KDE 3.4 but it
    >doesn't seem to.
    >
    >I have pmount, hal, udev, hotplug and usbutils installed.
    >
    >Many thanks, Graham
    >
    >
    >
    >



    --
    To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  3. Re: USB pen drives and KDE

    I first repartitioned the drive as ext2 and tested it and it worked fine the
    first time it was plugged in mounted as the correct user and group.but failed
    the second getting mounted root:root

    I then converted back to FAT32 and again it worked the first time. I unmounted
    it, removed it, plugged it back in and it stopped working correctly again.

    The device always gets mounted as user root group root and I can't chown
    things away from root but I can write things to the disk as root.

    I am totally confused as to what is going on. I can't figure out if the disk
    isn't being correctly unmounted and therefore getting corrupted or if
    something else is going on.

    Please help, this is driving me nuts.

    Graham

    On Thursday 15 September 2005 14:35, EmIscA wrote:
    > But that pen drive works without errors if mounted manually?
    > It seem's that it has filesystem errors on it, or it has damaged sectors...
    > Bye
    >
    > Graham Smith ha scritto:
    > >Hi,
    > >
    > >I just upgraded to KDE 3.4 specifically so that I could use the USB
    > >automounting goodies but I can't seem to get it to work as I want it to.
    > >
    > >When I plug the pen drive in I get this in the sys log
    > >
    > >*************SNIP*******************
    > >Sep 15 14:05:12 localhost kernel: usb 1-8.1: new full speed USB device
    > > using ohci_hcd and address 11
    > >Sep 15 14:05:12 localhost kernel: scsi10 : SCSI emulation for USB Mass
    > > Storage devices
    > >Sep 15 14:05:12 localhost kernel: usb-storage: device found at 11
    > >Sep 15 14:05:12 localhost kernel: usb-storage: waiting for device to
    > > settle before scanning
    > >Sep 15 14:05:13 localhost usb.agent[23835]: usb-storage: already
    > > loaded Sep 15 14:05:17 localhost kernel: Vendor: Generic Model: USB
    > > Flash Drive Rev: %%z!Y
    > >Sep 15 14:05:17 localhost kernel: Type: Direct-Access
    > >ANSI SCSI revision: 02
    > >Sep 15 14:05:17 localhost kernel: SCSI device sdb: 128640 512-byte hdwr
    > >sectors (66 MB)
    > >Sep 15 14:05:17 localhost kernel: sdb: Write Protect is off
    > >Sep 15 14:05:17 localhost kernel: sdb: Mode Sense: 0b 00 00 08
    > >Sep 15 14:05:17 localhost kernel: sdb: assuming drive cache: write through
    > >Sep 15 14:05:17 localhost kernel: SCSI device sdb: 128640 512-byte hdwr
    > >sectors (66 MB)
    > >Sep 15 14:05:17 localhost kernel: sdb: Write Protect is off
    > >Sep 15 14:05:17 localhost kernel: sdb: Mode Sense: 0b 00 00 08
    > >Sep 15 14:05:17 localhost kernel: sdb: assuming drive cache: write through
    > >Sep 15 14:05:17 localhost kernel: /dev/scsi/host10/bus0/target0/lun0: p1
    > >Sep 15 14:05:17 localhost kernel: Attached scsi removable disk sdb at
    > > scsi10, channel 0, id 0, lun 0
    > >Sep 15 14:05:17 localhost kernel: usb-storage: device scan complete
    > >Sep 15 14:05:17 localhost scsi.agent[23881]: sd_mod: loaded
    > > successfully (for disk)
    > >Sep 15 14:05:18 localhost usbmount[23940]: executing command: mount -tvfat
    > >-osync,noexec,nodev,noatime /dev/sdb1 /media/usb0
    > >Sep 15 14:05:19 localhost usbmount[23940]: executing command:
    > >run-parts /etc/usbmount/mount.d
    > >*************SNIP*******************
    > >
    > >and the device is automagically mounted at /media/usb0. The problem is
    > > that when I try and copy a file onto the drive I get this in the sys log
    > >
    > >*************SNIP*******************
    > >Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead
    > > device Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 253)
    > > failed Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to
    > > dead device Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block
    > > 254) failed Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O
    > > to dead device Sep 15 14:07:01 localhost kernel: FAT: Directory
    > > bread(block 255) failed *************SNIP*******************
    > >
    > >if I am regular user. If I am root everything works fine and dandy and I
    > > can copy files to and from the drive.
    > >
    > >I can see the drive in konqueror under media:/ (is there supposed to be a
    > >media tab because I have to type that in manually?) however I can't safely
    > >unmount it from there as I get this error message
    > >
    > >umount: /media/usb0 is not in the fstab (and you are not root)
    > >
    > >I was under the impression that it would all just work with KDE 3.4 but it
    > >doesn't seem to.
    > >
    > >I have pmount, hal, udev, hotplug and usbutils installed.
    > >
    > >Many thanks, Graham



    --
    To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  4. Re: USB pen drives and KDE

    Am Donnerstag, 15. September 2005 15:21 schrieb Graham Smith:
    > Hi,
    >
    > I just upgraded to KDE 3.4 specifically so that I could use the USB
    > automounting goodies but I can't seem to get it to work as I want it to.

    [...]
    > Sep 15 14:05:19 localhost usbmount[23940]: executing command:

    [...]

    What does KDE-3.4 has to do with usbmount? Hint: absolutely nothing. It's not
    connected to media:/ in any way.

    HS


    --
    To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  5. Re: USB pen drives and KDE

    EmIscA wrote:

    > But that pen drive works without errors if mounted manually?
    > It seem's that it has filesystem errors on it, or it has damaged
    > sectors... Bye


    I don't think so, or root wouldn't be able to access it either. Please
    don't top-post.
    >
    > Graham Smith ha scritto:

    ....
    >>Sep 15 14:05:17 localhost scsi.agent[23881]: sd_mod: loaded
    >>successfully (for disk)
    >>Sep 15 14:05:18 localhost usbmount[23940]: executing command: mount -tvfat
    >>-osync,noexec,nodev,noatime /dev/sdb1 /media/usb0
    >>Sep 15 14:05:19 localhost usbmount[23940]: executing command:
    >>run-parts /etc/usbmount/mount.d
    >>*************SNIP*******************
    >>Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to dead
    >>device Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block 253)
    >>failed Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O to
    >>dead device Sep 15 14:07:01 localhost kernel: FAT: Directory bread(block
    >>254) failed Sep 15 14:07:01 localhost kernel: scsi9 (0:0): rejecting I/O
    >>to dead device Sep 15 14:07:01 localhost kernel: FAT: Directory
    >>bread(block 255) failed *************SNIP*******************
    >>
    >>if I am regular user. If I am root everything works fine and dandy and I
    >>can copy files to and from the drive.


    The mount command doesn't look right. Surely it should have a -w or -o rw
    in there? I think you've got one too many packages installed. This should
    be being handled by pmount - I don't have usbmount (and the package
    description says "USBmount is intended as a lightweight solution which is
    independent of a desktop environment. Users which [sic] would like an icon
    to appear when an USB device is plugged in should use the pmount and hal
    packages instead".

    >>I can see the drive in konqueror under media:/ (is there supposed to be a
    >>media tab because I have to type that in manually?)


    If you have device icons turned on on your desktop, it'll show up there, and
    if you F9 in Konqueror, click on the Services icon on the left side, it'll
    show up under "Storage devices"

    >>however I can't safely
    >>unmount it from there as I get this error message
    >>
    >>umount: /media/usb0 is not in the fstab (and you are not root)


    Which is correct.
    >>
    >>I was under the impression that it would all just work with KDE 3.4 but it
    >>doesn't seem to.


    It usually does.
    --
    derek


    --
    To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  6. Re: USB pen drives and KDE

    > The mount command doesn't look right. Surely it should have a -w or -o rw
    > in there? I think you've got one too many packages installed. This should
    > be being handled by pmount - I don't have usbmount (and the package
    > description says "USBmount is intended as a lightweight solution which is
    > independent of a desktop environment. Users which [sic] would like an icon
    > to appear when an USB device is plugged in should use the pmount and hal
    > packages instead".


    Removing usbmount has fixed teh problem and it all seems to work now. It would
    seem that usbmount was getting to the device first and causing the problems.
    I only installed in out of desperation when I couldn't get it working the
    "proper" way first time.

    Thanks.


    --
    To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

+ Reply to Thread