1 |
Matthias Schweinoch wrote: |
2 |
> Hi all, |
3 |
> |
4 |
> I'm running Gentoo 2005.0 with an up-to-date portage tree, and I'm |
5 |
> having some trouble getting an external USB harddisk running. My kernel |
6 |
> is a 2.6.11-gentoo-r9. I have compiled USB support and SCSI |
7 |
> support into the kernel. |
8 |
> |
9 |
> When I attach the harddisk via USB, the following output is produced in |
10 |
> /var/log/messages: |
11 |
> |
12 |
> Jul 12 23:47:25 genbox usb 1-1.1: new full speed USB device using |
13 |
> ohci_hcd and address 6 |
14 |
> Jul 12 23:47:25 genbox scsi2 : SCSI emulation for USB Mass Storage |
15 |
> devices |
16 |
> Jul 12 23:47:25 genbox usb-storage: device found at 6 |
17 |
> Jul 12 23:47:25 genbox usb-storage: waiting for device to settle before |
18 |
> scanning |
19 |
> Jul 12 23:47:30 genbox Vendor: TOSHIBA Model: MK4004GAH Rev: 0811 |
20 |
> Jul 12 23:47:30 genbox Type: Direct-Access ANSI SCSI revision: 00 |
21 |
> |
22 |
> Jul 12 23:47:30 genbox Attached scsi generic sg0 |
23 |
> at scsi2, channel 0, id 0, lun 0, type 0 |
24 |
> Jul 12 23:47:30 genbox usb-storage: device scan complete |
25 |
> Jul 12 23:47:30 genbox scsi.agent[8603]: disk at |
26 |
> /devices/pci0000:00/0000:00:03.0/usb1/1-1/1-1.1/1-1.1:1.0/host2/target2 |
27 |
> :0:0/2:0:0:0 |
28 |
> |
29 |
> Running 'lsusb' gives me the following for device 6: |
30 |
> |
31 |
> Bus 001 Device 006: ID 2735:1005 |
32 |
> |
33 |
> 'sg_scan' produces the following ouput: |
34 |
> |
35 |
> /dev/sg0: scsi2 channel=0 id=0 lun=0 [em] |
36 |
> |
37 |
> I would think this all looks pretty good, i.e. I would expect to be able |
38 |
> to mount the drive by doing something like: |
39 |
> |
40 |
> mount /dev/sg0 /mnt/usbstorage |
41 |
> |
42 |
> However, if I try this, mount produces an output saying that the device |
43 |
> is not a block device. |
44 |
> |
45 |
> I'm pretty much out out ideas, and I'd welcome any suggestions. |
46 |
> |
47 |
> Sincerely, |
48 |
> |
49 |
> Matthias |
50 |
|
51 |
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). |
52 |
|
53 |
$ gzcat /proc/config.gz | grep -i BLK_DEV_SD |
54 |
CONFIG_BLK_DEV_SD=y |
55 |
|
56 |
Zac |
57 |
-- |
58 |
gentoo-user@g.o mailing list |