LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting external hard drives (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-external-hard-drives-194506/)

Moebius 06-17-2004 04:49 AM

mounting external hard drives
 
I have three external hard drives and an iPod. One of the external hard drives and the iPod are firewire, the others are USB2.0. I think I have all the correct things compiled into my kernal, but I don't see any /dev/sda1... in fact when I do a ls /dev I don't see anything about sda.

What should I do?

Thanks.

superbondbond 06-17-2004 10:23 AM

whenever I connect a new device like that, I always run dmesg to see how the system reacts to it.
If its a usb device I'll usually try something like dmesg |grep usb.

mgargiullo 06-17-2004 03:40 PM

Look for a program called usbview.

It will list what's connected.

This should help tell you how the kernel sees the device (ie.. what type of drivers you'll need)

superbondbond 06-17-2004 04:28 PM

I gather that usbview simply displays info from

/proc/bus/usb/devices
/proc/bus/usb/drivers
/sbin/lsusb

Moebius 06-17-2004 06:43 PM

dmesg gave me some good info:
Code:

drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
drivers/usb/core/usb.c: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
drivers/usb/core/usb.c: registered new driver usb-storage
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
usb 1-5: new high speed USB device using address 3
scsi3 : SCSI emulation for USB Mass Storage devices
  Vendor: Maxtor 6  Model: Y120L0            Rev: YAR4
  Type:  Direct-Access                      ANSI SCSI revision: 02
USB Mass Storage device found at 3
usb 1-7: new high speed USB device using address 4
scsi4 : SCSI emulation for USB Mass Storage devices
  Vendor: Generic  Model: STORAGE DEVICE    Rev: 0116
  Type:  Direct-Access                      ANSI SCSI revision: 02
USB Mass Storage device found at 4
usb 4-2: new full speed USB device using address 2
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x03F0 pid 0x2D11
usb 2-1: new full speed USB device using address 2
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
Adding 1000432k swap on /dev/hda2.  Priority:-1 extents:1
usb 2-2: new low speed USB device using address 3
input: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:10.0-2
EXT3 FS on hda3, internal journal
input: USB HID v1.10 Mouse [Logitech Logitech USB Keyboard] on usb-0000:00:10.0-2
usb 2-1.2: new full speed USB device using address 4
usb 2-1.3: new low speed USB device using address 5
input: USB HID v1.00 Mouse [Cypress Sem PS2/USB Browser Combo Mouse] on usb-0000:00:10.0-1.3

USB view also gave me some good info. It found my USB mass storage devices, but I'm not sure how to mount them now.

Code:

Mass Storage Device
Manufacturer: Prolific Technology Inc.
Speed: 480Mb/s (high)
USB Version:  2.00
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 067b
Product Id: 2507
Revision Number:  1.00

Config Number: 1
        Number of Interfaces: 1
        Attributes: c0
        MaxPower Needed: 100mA

        Interface Number: 0
                Name: usb-storage
                Alternate Number: 0
                Class: 08(stor.)
                Sub Class: 6
                Protocol: 50
                Number of Endpoints: 2

                        Endpoint Address: 01
                        Direction: out
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 512
                        Interval: 0ms

                        Endpoint Address: 82
                        Direction: in
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 512
                        Interval: 0ms

And the other one looks pretty much the same.

And what about firewire?

Thanks for the help, let me know where I should go from here.

Moebius 06-19-2004 08:39 PM

OK, I figured it out. It was because I hadn't compiled SCSI support into my kernel. I didn't know SCSI had anything to do with USB, but I guess it does.

Thanks for the help guys.


All times are GMT -5. The time now is 03:00 AM.