红联Linux门户
Linux帮助

Linux下挂载usb硬盘

发布时间:2007-03-13 01:21:49来源:红联作者:partnerDragon
  看看系统认出的盘先:如果没有被认出,则加载模块

  然后挂载:#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.o
文章评论

共有 0 条评论