PDA

View Full Version : Trying to mount a USB Hard Disk


guarriman
2007-07-12, 02:17 AM CDT
Hi.

Working with Fedora Core 5, I'm trying to mount an external USB Hard Disk (Trekstor DataStation).

I switched on the Hard Disk I connected it via USB. However, I'm not able to find it (I'm using only shell). If I ll my /dev/ directory I find:

crw------- 1 root root 442, 0 Jul 12 01:55 usbdev1.1_ep00
crw------- 1 root root 442, 0 Jul 12 01:55 usbdev1.1_ep81
crw------- 1 root root 442, 2048 Jul 12 01:55 usbdev2.1_ep00
crw------- 1 root root 442, 2048 Jul 12 01:55 usbdev2.1_ep81
crw------- 1 root root 442, 2049 Jul 12 01:55 usbdev2.2_ep00
crw------- 1 root root 442, 2049 Jul 12 01:55 usbdev2.2_ep81
crw------- 1 root root 442, 4096 Jul 12 01:55 usbdev3.1_ep00
crw------- 1 root root 442, 4096 Jul 12 01:55 usbdev3.1_ep81
crw------- 1 root root 442, 4099 Jul 12 01:57 usbdev3.4_ep00
crw------- 1 root root 442, 4099 Jul 12 01:57 usbdev3.4_ep02
crw------- 1 root root 442, 4099 Jul 12 01:57 usbdev3.4_ep86

(there're more entries)

How can I find which my USB-HD is?

Thank you very much.

stevea
2007-07-12, 02:25 AM CDT
Try "tail -50 /var/log/messages" right after yo uplug the drive in.

It will tell yo a little bit odf cryptic info abou the USB insert and should tell you that
it's monted as "hdd" or "sda" or similar. Then look for /dev/hdd or /dev/sda or whatever.

I can't recall what FC5 used for usb naming but I think /dev/sda is probable..

Oh yeah - then upgrade to a supported Fedora.

guarriman
2007-07-12, 02:38 AM CDT
Hi stvea. Thank you very much for your useful answer.

I did 'tail -50 /var/log/messages'

Jul 12 02:21:07 johnserver kernel: usb 3-1: new high speed USB device using ehci_hcd and address 5
Jul 12 02:21:07 johnserver kernel: usb 3-1: configuration #1 chosen from 1 choice
Jul 12 02:21:07 johnserver kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jul 12 02:21:12 johnserver kernel: Vendor: ST325082 Model: 4A Rev: 0000
Jul 12 02:21:12 johnserver kernel: Type: Direct-Access ANSI SCSI revision: 00
Jul 12 02:21:12 johnserver kernel: SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
Jul 12 02:21:12 johnserver kernel: sda: Write Protect is off
Jul 12 02:21:12 johnserver kernel: sda: assuming drive cache: write through
Jul 12 02:21:12 johnserver kernel: SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
Jul 12 02:21:12 johnserver kernel: sda: Write Protect is off
Jul 12 02:21:12 johnserver kernel: sda: assuming drive cache: write through
Jul 12 02:21:13 johnserver kernel: sda: sda1
Jul 12 02:21:13 johnserver kernel: sd 1:0:0:0: Attached scsi disk sda
Jul 12 02:21:13 johnserver kernel: sd 1:0:0:0: Attached scsi generic sg0 type 0


So:

[]# mount /dev/sda1 /mnt/trekstor
[]# cd /mnt/trekstor

it works!

Now I want to edit fstab to make system mount it each time it reboots:

/dev/sda1 /mnt/trekstor vfat noauto,users,rw,umask=1000 0 0

is it right?

Thank you very much.

stevea
2007-07-12, 02:50 AM CDT
Yes that is right *assuming* the file system is a vfat.

Type "fdisk -l /dev/sda" and examine the output to be certain.

p.s. sorry abt all the typos - my kb battery was going dead.