LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounting External HDD (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-external-hdd-307735/)

J_K9 03-30-2005 06:47 AM

Mounting External HDD
 
Hi,

I have plugged in my USB External Hard Drive into my FC3 laptop, and it doesn't mount automatically. Please may someone tell me what command I need to issue into terminal to mount my Ext. HDD? Thanks, it's quite urgent.

J_K9

gerardt 03-30-2005 06:51 AM

try fdisk -l to see if the device/partitions are visible.
If they are use the mount command.
mount /dev/sd?? /<path_to_mount_point>
This is a temporary mount available only until next reboot.
For a more permanent mount use /etc/fstab.
Be aware that a device may not always appear at the same position on USB and therefore permanent mounts may be tricky.

J_K9 03-30-2005 06:56 AM

Thanks for replying gerardt, but when I type in "fdisk -l" it just says that bash has an error because fdisk does not exist! Do you know of anything else I can do? Thanks,

[EDIT]
But if I type n "man fdisk", the man file comes up!
[/EDIT]

J_K9

gerardt 03-30-2005 07:03 AM

you need to be logged in as root to run the fdisk command. But only use the -l option as it can destroy partition information.

J_K9 03-30-2005 07:21 AM

Here is the result of my fdisk -l (I'm sorry it took so long but I haven't managed to get my FC3 laptop onto my home network yet).

Code:

Disk /dev/hda: 20.0 GB, 20003880960 bytes
16 heads, 63 sectors/track, 38760 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device        Boot  Start          End      Blocks            Id      System

/dev/hda1                1          951      479272+      82      Linux swap
/dev/hda2      *      952      23001    11113200    83      Linux
/dev/hda3            23002      36727    6917904      83      Linux
/dev/hda4            36728      38760    1024632        5      Extended
/dev/hda5            36728      38759    1024096+    82      Linux swap

Oh, by the way, I am dualbooting between SUSE 9.1 and FC3 just in case you're confused, and I accidentally made two swaps...

J_K9

P.S I'm sorry about the formatting

gerardt 03-30-2005 07:39 AM

if the drive was visible we would see it in this output as a sd device.

One last try. try lsusb and see if it returns anything.

Is the device by any chance a maxtor?

J_K9 03-30-2005 07:45 AM

Here is the result:

Code:

Bus 001 Device 002: ID 059f:0341 LaCie, Ltd
Bus 001 Device 001: ID 0000:000

That's right, because my hard drive is a LaCie Mobile Hard Drive. Thanks again,

J_K9

gerardt 03-30-2005 07:57 AM

Try "mount /dev/sd?1 /mnt" where ? is the device number alphabetically
001=a 002=b etc.

J_K9 03-30-2005 08:09 AM

I tried what you said:
Code:

# mount /dev/sdb1 /mnt
mount: special device /dev/sdb1 does not exist

I also tried "/dev/sda1" (even though that's not what you said) and that didn't work either? Do you have any more ideas? Thanks for your help so far,

J_K9

slackist 03-30-2005 08:29 AM

Note: this is what I would do in Slackware, not sure about FC* but worth a try...

open a console window and as root enter (without the ' ' )
'tail -f /var/log/messages'
Then plug it in and some messages should appear telling you where the device has been recognised, then use that info to mount the drive.

For some reason I have a USB drive showing up a sr0 , but this method helped me mount it :)

I am a newb, but I hope this helps :)

J_K9 03-30-2005 02:06 PM

I think it might be "scsi0" so I'm going to try and mount that now!

[EDIT]
No, scsi0 doesn't exist. I'll copy out all the messages but it might take a while!
[/EDIT]

J_K9

J_K9 03-30-2005 02:37 PM

Code:

Apr 30 21:10:28 localhost kernel: usb 1-2: new full speed USB device using address 3
Apr 30 21:10:28 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Apr 30 21:10:33 localhost wait_for_sysfs[3507]: either wait_for_sysfs (udev 039)
needs an update to handle the device '/devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2:1.0'
properly (no bus device link) or the sysfs-support of your device's driver needs to be fixed,
please report to <linux-hotplug-devel@lists.sourceforge.net>
Apr 30 21:10:43 localhost hal.hotplug[3529]: timeout(10000 ms) waiting for /devices/pci0000:00/0000:00:07.2/usb1/1-2/1-2:1.0

The funny thing is that the update rpm for "udev" is on the hard disk! If I write it onto a CD-RW and install it do you think it might work? Thanks in advance,

J_K9

J_K9 03-30-2005 03:14 PM

Sorry for triple posting, but:

Now that I have installed the new udev, this is the result of "tail -f /var/log/messages" when I plug in my LaCie External Hard Drive:
Code:

Apr 30 22:06:08 localhost kernel: usb 1-2: new full speed USB device using address 2
Apr 30 22:06:10 localhost kernel: SCSI subsystem initialized
Apr 30 22:06:10 localhost kernel: Initializing USB Mass Storage driver...
Apr 30 22:06:10 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices

And then slightly later on...
Code:

Apr 30 22:07:00 localhost kernel: usb 1-2: reset full speed USB device using
address 2
Apr 30 22:07:16 localhost kernel: scsi: Device offlined - not ready after error
recovery: host 0 channel 0 id 0 lun 0
Apr 30 22:07:16 localhost kernel: usbcore: registered new driver usb-storage
Apr 30 22:07:16 localhost kernel: USB Mass Storage support registered.

The only problem remaining is - 1) Is it already mounted? If so, where? - or 2) If it isn't mounted, how do I mount it? Any help would be greatly appreciated. Thanks again,

J_K9

coontie 03-30-2005 04:37 PM

I'm having the exact same problem, same exact error messages! I'm trying to get external USB Maxtor 40gb drive working.

Mar 30 17:35:02 oxygen su(pam_unix)[22644]: session opened for user root by ig(uid=500)
Mar 30 17:35:54 oxygen kernel: usb 1-8: new high speed USB device using ehci_hcd and address 11
Mar 30 17:35:54 oxygen kernel: scsi8 : SCSI emulation for USB Mass Storage devices
Mar 30 17:35:59 oxygen kernel: Vendor: (l(l(l(l Model: (l(l(l(l(l(l(l(l Rev: 0811
Mar 30 17:35:59 oxygen kernel: Type: Direct-Access ANSI SCSI revision: 00
Mar 30 17:35:59 oxygen kernel: SCSI device sda: 678176876 512-byte hdwr sectors (347227 MB)
Mar 30 17:35:59 oxygen kernel: sda: assuming drive cache: write through
Mar 30 17:35:59 oxygen kernel: SCSI device sda: 678176876 512-byte hdwr sectors (347227 MB)
Mar 30 17:35:59 oxygen kernel: sda: assuming drive cache: write through
Mar 30 17:36:15 oxygen hal.hotplug[22765]: timout(10000 ms) waiting for /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/host8/target8:0:0/8:0:0:0
Mar 30 17:36:25 oxygen scsi.agent[22776]: Attribute /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/host8/target8:0:0/8:0:0:0/type does not exist

[root@oxygen ~]# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 011: ID 05e3:0702 Genesys Logic, Inc. USB 2.0 IDE Adapter
Bus 001 Device 001: ID 0000:0000

Any ideas?

coontie 03-30-2005 04:39 PM

Forgot to add the kernel details:

Linux oxygen 2.6.10-1.770_FC3smp #1 SMP Thu Feb 24 14:20:06 EST 2005 i686 i686 i386 GNU/Linux


All times are GMT -5. The time now is 07:01 PM.