Find the answer to your Linux question:
Results 1 to 6 of 6
Hi folks, Gentoo_64 Just install an USB enclosure (ATA HD) # fdisk -l did not find it. Please advise how to get it installed. TIA B.R. satimis...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,804

    About USB enclosure


    Hi folks,

    Gentoo_64

    Just install an USB enclosure (ATA HD)

    # fdisk -l
    did not find it.

    Please advise how to get it installed. TIA

    B.R.
    satimis

  2. #2
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    Do you have udev and hotplug installed/configured?

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,804
    Hi bigtomrodney,

    Do you have udev and hotplug installed/configured?
    # udevmonitor
    Code:
    udevmonitor prints the received event from the kernel [UEVENT]
    and the event which udev sends out after rule processing [UDEV]
    hanging here
    Just have udev and hotplug installed ;


    # emerge -pv sys-fs/udev
    # emerge -av sys-fs/udev

    # emerge -pv sys-apps/hotplug
    # emerge -av sys-apps/hotplug


    then
    # emerge --sync
    # emerge portage

    # emerge --update --deep --newuse world
    # emerge --depclean
    # revdep-rebuild
    # etc-update
    # env-update

    re-plugin the USB enclosure

    # dmesg
    Code:
    ....
    ....
    device-mapper: error adding target to table
    device-mapper: dm-linear: Device lookup failed
    device-mapper: error adding target to table
    device-mapper: dm-linear: Device lookup failed
    device-mapper: error adding target to table
    device-mapper: dm-linear: Device lookup failed
    device-mapper: error adding target to table
    device-mapper: dm-linear: Device lookup failed
    device-mapper: error adding target to table
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on dm-0, internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on dm-1, internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on dm-3, internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on dm-2, internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on dm-4, internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    eth0: no IPv6 routers present
    eth0: no IPv6 routers present
    usb 1-3: new high speed USB device using ehci_hcd and address 3
    usb 1-3: configuration #1 chosen from 1 choice
    scsi2 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 3
    usb-storage: waiting for device to settle before scanning
      Vendor:           Model:                   Rev:
      Type:   Direct-Access                      ANSI SCSI revision: 02
    sd 2:0:0:0: Attached scsi disk sda
    usb-storage: device scan complete
    eth0: link down.
    usb 1-3: USB disconnect, address 3
    eth0: link up.
    usb 1-3: new high speed USB device using ehci_hcd and address 4
    usb 1-3: configuration #1 chosen from 1 choice
    scsi3 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 4
    usb-storage: waiting for device to settle before scanning
      Vendor:           Model:                   Rev:
      Type:   Direct-Access                      ANSI SCSI revision: 02
    sd 3:0:0:0: Attached scsi disk sda
    usb-storage: device scan complete
    usb 1-3: USB disconnect, address 4
    usb 1-3: new high speed USB device using ehci_hcd and address 5
    usb 1-3: configuration #1 chosen from 1 choice
    scsi4 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 5
    usb-storage: waiting for device to settle before scanning
      Vendor: Maxtor 9  Model: HAQA              Rev: 5215
      Type:   Direct-Access                      ANSI SCSI revision: 02
    SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
    sda: Write Protect is off
    sda: Mode Sense: 00 38 00 00
    sda: assuming drive cache: write through
    SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
    sda: Write Protect is off
    sda: Mode Sense: 00 38 00 00
    sda: assuming drive cache: write through
     sda: unknown partition table
    sd 4:0:0:0: Attached scsi disk sda
    usb-storage: device scan complete
    usb 1-3: USB disconnect, address 5
    usb 1-3: new high speed USB device using ehci_hcd and address 6
    usb 1-3: configuration #1 chosen from 1 choice
    scsi5 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 6
    usb-storage: waiting for device to settle before scanning
      Vendor: Maxtor 9  Model: HAQA              Rev: 5215
      Type:   Direct-Access                      ANSI SCSI revision: 02
    SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
    sda: Write Protect is off
    sda: Mode Sense: 00 38 00 00
    sda: assuming drive cache: write through
    SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
    sda: Write Protect is off
    sda: Mode Sense: 00 38 00 00
    sda: assuming drive cache: write through
     sda: unknown partition table
    sd 5:0:0:0: Attached scsi disk sda
    usb-storage: device scan complete
    It was there.

    # mount /dev/sda /mnt/
    # ls /mnt/
    Code:
    enclosure.txt  lost+found
    Problem solved.

    The USB enclosure won't mount automatically on plugin. Please advise how to config "hotplug". TIA

    B.R.
    satimis

  4. #4
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    Did you try subfs?
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,804
    Hi apoorv_khurasia.

    Did you try subfs?
    Is it for Suse kernel? What is it?

    Tks

    B.R.
    satimis

  6. #6
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    subfs is a kernel module and is not distro-specific. It shall allow to automount your drives when they are plugged in. e.g., CD, Floppy, USB etc.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

Posting Permissions

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