Matthias Schweinoch wrote: > Hi all, > > I'm running Gentoo 2005.0 with an up-to-date portage tree, and I'm > having some trouble getting an external USB harddisk running. My kernel > is a 2.6.11-gentoo-r9. I have compiled USB support and SCSI > support into the kernel. > > When I attach the harddisk via USB, the following output is produced in > /var/log/messages: > > Jul 12 23:47:25 genbox usb 1-1.1: new full speed USB device using > ohci_hcd and address 6 > Jul 12 23:47:25 genbox scsi2 : SCSI emulation for USB Mass Storage > devices > Jul 12 23:47:25 genbox usb-storage: device found at 6 > Jul 12 23:47:25 genbox usb-storage: waiting for device to settle before > scanning > Jul 12 23:47:30 genbox Vendor: TOSHIBA Model: MK4004GAH Rev: 0811 > Jul 12 23:47:30 genbox Type: Direct-Access ANSI SCSI revision: 00 > > Jul 12 23:47:30 genbox Attached scsi generic sg0 > at scsi2, channel 0, id 0, lun 0, type 0 > Jul 12 23:47:30 genbox usb-storage: device scan complete > Jul 12 23:47:30 genbox scsi.agent[8603]: disk at > /devices/pci0000:00/0000:00:03.0/usb1/1-1/1-1.1/1-1.1:1.0/host2/target2 > :0:0/2:0:0:0 > > Running 'lsusb' gives me the following for device 6: > > Bus 001 Device 006: ID 2735:1005 > > 'sg_scan' produces the following ouput: > > /dev/sg0: scsi2 channel=0 id=0 lun=0 [em] > > I would think this all looks pretty good, i.e. I would expect to be able > to mount the drive by doing something like: > > mount /dev/sg0 /mnt/usbstorage > > However, if I try this, mount produces an output saying that the device > is not a block device. > > I'm pretty much out out ideas, and I'd welcome any suggestions. > > Sincerely, > > Matthias
Normally the kernel will assign a device such as sda (in addition to sg0). The kernel documentation for USB_STORAGE says that you need BLK_DEV_SD enabled. Is it? If it's modular then the hotplug scsi.agent script is supposed to load it (sd_mod). $ gzcat /proc/config.gz | grep -i BLK_DEV_SD CONFIG_BLK_DEV_SD=y Zac -- [email protected] mailing list

