LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   read external hard drive (https://www.linuxquestions.org/questions/linux-hardware-18/read-external-hard-drive-172621/)

mccclxxxv 04-20-2004 04:56 PM

read external hard drive
 
K Ive searched and searched, but I can't find the answer to this...

Why won't linux recognize my external usb hard drive???? Its a maxtor 5000DV and it has 1 partition on it.

when i do /sbin/fdisk -l, this is what i get:
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 5142 41303083+ 7 HPFS/NTFS
/dev/hda2 5143 7296 17302005 f Win95 Ext'd (LBA)
/dev/hda5 5143 5208 530113+ 82 Linux swap
/dev/hda6 5209 5274 530113+ 83 Linux
/dev/hda7 5275 7296 16241683+ 83 Linux

all that is my internal hard drive.

I'm running a version of Redhat 9 specialized for my school. Its called athena, but it very much like red hat 9.

i think i need to install some drivers or something because I think i got this working on fedora before, but i can't remember what i did....

can ne1 help????

thanks

Bruce Hill 04-20-2004 05:44 PM

First, do you have mass storage installed in your kernel or as a module?
Instead of fdisk run lsusb to see your usb devices.

mccclxxxv 04-21-2004 02:41 PM

Yea....my drive is in there. here's the reading:]

Bus 004 Device 002: ID 0d49:5020
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0d49
idProduct 0x5020
bcdDevice 1.00
iManufacturer 1 Maxtor
iProduct 3 5000DV v01.00.00
iSerial 2 Y4237HNE
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 2
bInterval 9
Language IDs: (length=4)
0409 English(US)

Bruce Hill 04-21-2004 05:34 PM

Run # lsusb and not # lsusb -v for a listing and not all that verbose information.

Since I'm using Slack, YMMV -- however, if you don't already have a directory under
/mnt such as /mnt/hd or /mnt/usbhd then you should make one. Then as su issue ->
# mount /dev/sda1 /mnt/usbhd (your mount point)
and see if that does it. Then issue ->
# ls -alc /mnt/usbhd (your mount point)
and see what data that returns.

You should get something like this ->
Code:

bash-2.05b# mount /dev/sda1 /mnt/usbhd
bash-2.05b# ls -alc /mnt/usbhd
total 33
drwxr--r--    4 root    root        4096 Jan  1  1970 .
drwxr-xr-x    9 root    root          216 Apr 10 07:20 ..
drwxr--r--    6 root    root        4096 Apr 17 18:21 Jason_Backup
drwxr--r--  15 root    root        24576 Mar 16 08:10 Videos

To unmount the drive issue ->
bash-2.05b# umount /mnt/usbhd (notice /dev/sda1 not listed and no n following first u)

NB: If you're going to use this drive on a regular basis, I'd suggest creating a mount
point in /etc/fstab so that you can mount it as a normal user and not as su, such as ->
Code:

/dev/sda1        /mnt/hd          vfat        user,umask=1000,rw,auto 0 0

michaelk 04-21-2004 06:15 PM

Does the output of the command lsmod show any USB modules being loaded?
Does the output of dmesg show any errors for your USB device?

mount.nfs 06-11-2022 12:38 PM

directory of . listing year 1970

michaelk 06-11-2022 12:58 PM

mount.nfs,
Your replying to a 18 year old thread where the OP has not be active for 17 years and the information you are replying about was not even the OPs.


All times are GMT -5. The time now is 05:24 PM.