当前位置:Linux教程 - Linux文化 - usb 硬盘安装心得!

usb 硬盘安装心得!


usb设备:金存小博士usb移动硬盘 安装环境:RedHat 7.2 (2.4.7-10),核心支持usb设备,网上下载的啦, 8-)

安装、登录rh,

1.检查核心是否加载usb模块

# dmesg | grep usb

有输出如"usb.c: registered....."信息说明模块已加载,否则需要执行:

# modprobe usb-uhci # modprobe usb-storage

# dmesg .... .... registered new drver usbdevfs usb.c: registered new driver hub usb-uhci.c: $Revision: 1.259 $ time 17:36:49 Sep 6 2001 usb-uhci.c: High bandwidth mode enabled PCI: Enabling device 00:07.2 (0000 -> 0001) PCI: Assigned IRQ 9 for device 00:07.2 usb-uhci.c: usb UHCI at I/O 0x10e0, IRQ 9 usb-uhci.c: Detected 2 ports usb.c: new usb bus registered, assigned bus number 1 hub.c: usb hub found hub.c: 2 ports detected usb-uhci.c: v1.251:usb Universal Host Controller Interface driver SCSI subsystem driver Revision: 1.00 Initializing usb Mass Storage driver... usb.c: registered new driver usb-storage usb Mass Storage support registered.

2.连接好usb硬盘,

# dmesg .... .... hub.c: usb new device connect on bus1/2, assigned device number 3 usb-uhci.c: interrupt, status 3, frame# 1489 scsi0 : SCSI emulation for usb Mass Storage devices Vendor: Model: Rev: Type: Direct-Access ANSI SCSI revision: 02 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 SCSI device sda: 19640880 512-byte hdwr sectors (10056 MB) sda: sda1 WARNING: usb Mass Storage data integrity not assured usb Mass Storage device found at 3 usb.c: usb disconnect on device 3 usb.c: usb disconnect on device 2

发现usb设备,对应的设备为 /dev/sda1

# mkdir /mnt/usbdisk # mount /dev/sda1 /mnt/usbdisk

哈哈,搞掂!

其他种类的usb设备的安装大同小异,关键是核心支持,当然你所用的usb设备也必需是被认可的,我的朗科优盘(大拇指)就因为没被认可装不上,提示usb device 5 (vend/prod 0xa16/0x1111) is not claimed by any active driver.还要各位指点.

题外话:在台式机安装rh,安装好后核心自动加载usb模块,笔记本电脑就不会(呜呼,费了我好长时间才弄明白);本来想装mandrake试一下,安装过程实在漫长,8-(


摘自:linuxforum.net