Find the answer to your Linux question:
Results 1 to 5 of 5
Hi everybody, Ever since I moved to a 2.6 kernel (and therefore udev), I haven't been able to access my USB flash drive. It used to be /dev/sda, and my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942

    I read the UDEV Primer and I'm still confused


    Hi everybody,

    Ever since I moved to a 2.6 kernel (and therefore udev), I haven't been able to access my USB flash drive. It used to be /dev/sda, and my harddrive was /dev/hda. Now my harddrive is /dev/sda, and I don't know where to look for it. I've gone over /sys/bus/usb, but under devices there, there's 5 usb devices. How do I know which one is the right one, and where is the device to mount?

    Thanks!

  2. #2
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    Try /dev/sda1 when your usb_storage module is loaded (and the necessary scsi support). This happens (dmesg) when I plugin an usbstick:
    Code:
     usb 3-2: new high speed USB device using ehci_hcd and address 3
    SCSI subsystem initialized
    Initializing USB Mass Storage driver...
    scsi0 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 3
    usb-storage: waiting for device to settle before scanning
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
      Vendor: Kingston  Model: DataTraveler 2.0  Rev: 1.00
      Type:   Direct-Access                      ANSI SCSI revision: 02
    usb-storage: device scan complete
    SCSI device sda: 2002944 512-byte hdwr sectors (1026 MB)
    sda: Write Protect is off
    sda: Mode Sense: 0b 00 00 08
    sda: assuming drive cache: write through
    SCSI device sda: 2002944 512-byte hdwr sectors (1026 MB)
    sda: Write Protect is off
    sda: Mode Sense: 0b 00 00 08
    sda: assuming drive cache: write through
     sda: sda1
    Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
    Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
    I\'m so tired .....
    #200472

  3. #3
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    I don't think that'll work, considering that my harddrive (an SATA) is at /dev/sda.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Toronto
    Posts
    127
    If /dev/sda stands for your hard drive then, usb flash drive should be accessible by /dev/sdb or /dev/sdc ! Try it and lemme know if this works.

  6. #5
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    No go; none of them are valid block devices.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •