歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux系統下掛載USB硬盤的解決方法

Linux系統下掛載USB硬盤的解決方法

日期:2017/2/28 17:47:48   编辑:Linux教程

看看系統認出的盤先:

如果沒有被認出,則加載模塊

然後掛載:

#mount -t vfat /dev/sdax /mnt/flash_memory

看看系統認出的盤先:

查看系統分區情況,主要是看usb盤是否被系統認出,一般被認為sda*(即scsi盤) #cat /proc/partitions 如果沒有被認出,則加載模塊 進入模塊目錄,模塊對於kernel來說是組件,需要則加載,因為耗資源

#cd /lib/modules/2.4.x-x/kernel/drivers

#insmod ./scsi/scsi/scsi_mod.o

#insmod ./scsi/sd_mod.o --此一般為USB硬盤(優盤)驅動 #insmod ./scsi/ide_scsi.o

#insmod ./usb/usbcore.o

#insmod ./usb/usb_uhci.o

#insmod ./usb/usb_ohci.o

再看看系統認的盤: #cat /proc/partitions

然後掛載: #mount -t vfat /dev/sdax /mnt/flash_memory

使用完後卸載usb #umount /mnt/flash_memory

卸載模塊,以便釋放kernel的資源

#rmmod ./scsi/sd_mod.

Copyright © Linux教程網 All Rights Reserved