Mounting an external HDD
zer0halo
zerohalo at gmail.com
Thu Dec 16 07:19:50 UTC 2004
I'm trying to mount an external USB HDD (a USB enclosure with a HDD
with Win partitions on it, which I need to get some data off). I know
that I need to do something along the lines of:
$ mount -t vfat /dev/sd** /mnt/usbhd
but I can't figure out how to tell which /dev/sd** my device connects to.
Ubuntu is recognizing the device because dmesg gives me this:
<blockquote>USB Mass Storage device found at 4
usbcore: registered new driver usb-storage
USB Mass Storage support registered.</blockquote>
$ lshal also shows me that it has detected a Maxtor HDD via USB:
<blockquote>
udi = '/org/freedesktop/Hal/devices/scsi_host_0'
info.udi = '/org/freedesktop/Hal/devices/scsi_host_0' (string)
info.capabilities = 'scsi_host' (string)
info.product = 'SCSI Host Interface' (string)
scsi_host.host = 0 (0x0) (int)
info.parent =
'/org/freedesktop/Hal/devices/usb_usb_device_d49_3000_1101_-1_1200E000022134431_0'
(string)
linux.sysfs_path_device =
'/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-5/4-5:2.0/host0'
(string)
linux.sysfs_path = '/sys/class/scsi_host/host0' (string)
info.bus = 'scsi_host' (string)
udi = '/org/freedesktop/Hal/devices/usb_usb_device_d49_3000_1101_-1_1200E000022134431_0'
info.udi = '/org/freedesktop/Hal/devices/usb_usb_device_d49_3000_1101_-1_1200E000022134431_0'
(string)
info.product = 'USB Mass Storage Interface' (string)
usb.interface.subclass = 6 (0x6) (int)
usb.interface.protocol = 50 (0x32) (int)
usb.interface.number = 0 (0x0) (int)
usb.interface.class = 8 (0x8) (int)
usb.configuration_value = 2 (0x2) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_subclass = 0 (0x0) (int)
usb.max_power = 98 (0x62) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 1 (0x1) (int)
usb.device_revision_bcd = 4353 (0x1101) (int)
usb.is_self_powered = true (bool)
usb.can_wake_up = false (bool)
usb.serial = '1200E000022134431' (string)
usb.product_id = 12288 (0x3000) (int)
usb.vendor_id = 3401 (0xd49) (int)
usb.vendor = 'Maxtor' (string)
usb.product = 'Maxtor USB Drive' (string)
usb.bus_number = 4 (0x4) (int)
usb.port_number = 5 (0x5) (int)
usb.level_number = 1 (0x1) (int)
usb.linux.device_number = 4 (0x4) (int)
usb.linux.parent_number = 4 (0x4) (int)
usb.num_ports = 0 (0x0) (int)
usb.speed_bcd = 294936 (0x48018) (int)
usb.version_bcd = 512 (0x200) (int)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_d49_3000_1101_-1_1200E000022134431'
(string)
usb.linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-5/4-5:2.0' (string)
linux.sysfs_path_device =
'/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-5/4-5:2.0' (string)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-5/4-5:2.0' (string)
info.bus = 'usb' (string)
</blockquote>
$ mount shows me:
<blockquote>usbfs on /proc/bus/usb type usbfs (rw)</blockquote>
I apologize for my ignorance, but with all of this info I still can't
figure out where to mount the drive.
I tried $ mount -t usbfs /proc/bus/usb /mnt/usbhd
I read in the wiki about sending in bugs to the hotplug system, but I
don't know if this is a bug or just my ignorance.
With HAL, aren't USB devices supposed to automagically mount/appear on
desktop when plugged in?
Thanks for the help.
--
"Impossible is nothing."
More information about the ubuntu-users
mailing list