1. 先别插U盘,/sbin/lsmod看是否有usb-storage。如果没有的话: cd /lib/modules/2.4.20-8/kernel/drivers/usb for v in *.o storage/*.o do /sbin/insmod $v done
2. 2. 这里再/sbin/lsmod,应该有usbcore、usb-ohci(或usb-uhci,根据主板芯片组而不同)、usb-storage、scsi_mod等。其中usb-storage的状态应该为(unused)。
3. 插入U盘,不停的/sbin/lsmod,这期间usb-storage的状态应为Initializing,持续时间大约半分钟,其实就相当于Windows在右下角不停的弹汽球:) 4. 初始化结束后, /sbin/fdisk -l,应该能看到/dev/sda1设备。
root@ubuntu:/# fdisk -l
Disk /dev/sda: 21.5 GB, 214748380 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000414cf
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 39845887 19921920 83 Linux
/dev/sda2 39847934 41940991 1046529 5 Extended
/dev/sda5 39847936 41940991 1046528 82 Linux swap / Solaris
Disk /dev/sdb: 16.2 GB, 16173236224 bytes
255 heads, 63 sectors/track, 1966 cylinders, total 31588352 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x04dd5721
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 31588351 15794144+ c W95 FAT32 (LBA)
注意:我的/dev下的u盘设备室sdb1。这时,执行
mount /dev/sdb1 /mnt/udisk 才能成功。如果是MSDOS格式,又想看到中文,可以 mount -t vfat /dev/sdb1 /mnt/udisk -o iocharset=gb2312。
(为方便可以/etc/fstab加一行,以后就可以 mount /mnt/udisk就行了)。
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- huatuoyibo.cn 版权所有 湘ICP备2023022426号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务