Disk /dev/sda: 146.8 GB, 146815733760 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 5410 6046 5116702+ 83 Linux
/dev/sda2 * 7 5409 43399597+ 7 HPFS/NTFS
/dev/sda3 6047 7066 8193150 82 Linux swap
/dev/sda4 7067 17849 86614447+ 5 Extended
/dev/sda5 7067 7703 5116671 83 Linux
/dev/sda6 7704 7830 1020096 83 Linux
/dev/sda7 7831 17849 80477586 83 Linux
Partition table entries are not in disk order
看不到U盘的信息。
[root@test /]# dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
usb 2-1: new low speed USB device using address 2
input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:1d.0-1
usb 2-2: new low speed USB device using address 3
input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:00:1d.0-2
drivers/usb/input/hid-input.c: event field not found
usbcore: registered new driver usb-storage
usb 1-8: new high speed USB device using address 4
usb 1-8: USB disconnect, address 4
usb 1-8: new high speed USB device using address 5
内核应该加载了USB的模块。
[root@test /]# cd /proc/bus/usb
[root@test usb]# ls
001 002 003 004 005 devices
[root@test /]# ls -l /dev/ | grep "sd"
brw-rw---- 1 root disk 8, 0 Aug 1 00:02 sda
brw-rw---- 1 root disk 8, 1 Aug 1 00:02 sda1
brw-rw---- 1 root disk 8, 2 Aug 1 00:02 sda2
brw-rw---- 1 root disk 8, 3 Aug 1 00:02 sda3
brw-rw---- 1 root disk 8, 4 Aug 1 00:02 sda4
brw-rw---- 1 root disk 8, 5 Aug 1 00:02 sda5
brw-rw---- 1 root disk 8, 6 Aug 1 00:02 sda6
brw-rw---- 1 root disk 8, 7 Aug 1 00:02 sda7
没有其他的sdb, sdc or sd*
尝试手动加载usb块文件:
[root@test dev]# mknod -m 660 sdb b 8 8
[root@test /]# mount /dev/sdb /mnt/usb
mount: /dev/sdb is not a valid block device
[root@test dev]# rm -f sdb
[root@test dev]# cat /proc/devices | more
Block devices:
1 ramdisk
2 fd
3 ide0
8 sd
9 md
65 sd
66 sd
67 sd
.......
[root@test dev]# mknod -m 660 sdb b 65 0
[root@test /]# mount /dev/sdb /mnt/usb
mount: /dev/sdb is not a valid block device