External USB and Linux

 
SOLVED
Go to solution
Alessandro_22
Advisor

External USB and Linux

Hi, I mounted a Maxtor Diamond 60Gb ATA/133 HDD on an external USB device. There are two vfat partitions, but I'm not able to mount the appropriate driver under Linux Red Hat 8.0.
Please help!!!!
17 REPLIES 17
Mogens Kjaer
Frequent Advisor

Re: External USB and Linux

What does it say in your /var/log/messages
file when you plug in the disk?

Most likely, the partitions show up as
/dev/sda1 and /dev/sda2, then you can
try to mount them.
Alessandro_22
Advisor

Re: External USB and Linux

In reply to Mogens: thank you very much.

The messages in /var/log/messages are

kernel:hub.c:USB new device connect on bus 1/2, assigned device number 3
/etc/hotplug/usb.agent:Setup usb-storage for USB product 4ce/2/260

I'm not able to mount the drivers you suggested.
Claudio Cilloni
Honored Contributor

Re: External USB and Linux

what kind of error do you get when you try to mount?

I found this in the kernel documentation:

===================================================
THE /proc/bus/usb/devices FILE:
-------------------------------
In /proc/bus/usb/devices, each device's output has multiple
lines of ASCII output.
I made it ASCII instead of binary on purpose, so that someone
can obtain some useful data from it without the use of an
auxiliary program. However, with an auxiliary program, the numbers
in the first 4 columns of each "T:" line (topology info:
Lev, Prnt, Port, Cnt) can be used to build a USB topology diagram.

Each line is tagged with a one-character ID for that line:

T = Topology (etc.)
B = Bandwidth (applies only to USB host controllers, which are
virtualized as root hubs)
D = Device descriptor info.
P = Product ID info. (from Device descriptor, but they won't fit
together on one line)
S = String descriptors.
C = Configuration descriptor info. (* = active configuration)
I = Interface descriptor info.
E = Endpoint descriptor info.

=======================================================================

give a look at the /proc/bus/usb/devices file.
Maybe (!) there is something that could help you to find what's wrong, for example the right device to mount (if /dev/sd* was wrong).

hth
Claudio
Alessandro_22
Advisor

Re: External USB and Linux

I attach /proc/bus/usb/devices, thanks Claudio.

I added usb-storage.o yesterday, /dev/sd* does not work...
Claudio Cilloni
Honored Contributor

Re: External USB and Linux

mmmmh... I was wrong :-(

however, reading your attached file and the lines of your /var/log/messages,
seems that the driver is working and the usb HDD is recognized.

what is exactly the mount command you run? what error do you get?

Ciao
Claudio
Alessandro_22
Advisor

Re: External USB and Linux

I'm using

mount -t vfat /dev/sda1 /mnt/usb

or sda2... with error

/dev/sda1 is not a valid block device

Thanks again! Ciao
AP
Claudio Cilloni
Honored Contributor

Re: External USB and Linux

the mount command is right.
If I try to mount /dev/sda1, I get the same error; and i haven't any scsi disk. So /dev/sda1 isn't the right device.

Try looking in this file:

/proc/scsi/scsi

this should show the attached scsi devices of your system.

I'm trying everything comes in my mind :-)

ciao
Claudio
Mogens Kjaer
Frequent Advisor

Re: External USB and Linux

Don't you get any messages after
this in the log?

It will use SCSI emulation on this drive,
that's why it has to be mounted as a SCSI
drive.
Alessandro_22
Advisor

Re: External USB and Linux

in /proc/scsi/scsi there's an amazing

Attached devices: none

Let's try to provoke this forum: for such things, Windows is better than Linux :-)