如果想让linux识别u盘,需要把鼠标先定位在虚拟机的linux里面,然后插入优盘,优盘才会被linux识别,再用fdisk -l 来查看u盘的情况。
/dev/sda1 * 1 6 48163+ 83 linux
/dev/sda2 7 515 4088542+ 83 linux
/dev/sda3 516 776 2096482+ 82 linux swap / solaris
/dev/sda4 777 2610 14731605 5 extended
/dev/sda5 777 2610 14731573+ 83 linux
disk /dev/sdb: 7985 mb, 7985954816 bytes
231 heads, 28 sectors/track, 2411 cylinders
units = cylinders of 6468 * 512 = 3311616 bytes
device boot start end blocks id system
/dev/sdb1 2 2412 7794688 b w95 fat32
如果是fat格式的u盘,挂载命令:mount -t vfat /dev/sdb1 /mnt/udisk
如果是ntfs格式的u盘,挂载命令:mount -t ntfs-3g /dev/sdb1 /mnt/udisk
如果没有/mnt/udisk文件夹,可以创建一个
mkdir /mnt/udisk
即可~
但是注意,ntfs格式要挂载的话,需要下载一个ntfs-3g-2011.4.12-5.el5.i386.rpm包,安装一下~
百度一下这个包名,去csdn下载…