linux虚拟机加载U盘
来源:互联网 发布:数据展示平台 编辑:程序博客网 时间:2024/05/23 22:18
1、开启Linux虚拟机,电脑插上U盘
2、让虚拟机连接实体机的U盘,配置如图
3、使用fdisk -l命令查看U盘在dev目录下的什么位置
[root@localhost usb]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2545 20338290 83 Linux
/dev/sda3 2546 2610 522112+ 82 Linux swap / Solaris
Disk /dev/sdb: 8074 MB, 8074035200 bytes
157 heads, 7 sectors/track, 14349 cylinders
Units = cylinders of 1099 * 512 = 562688 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 574 14350 7569408 7 HPFS/NTFS
4、使用mount命令加载u盘
[root@localhost usb]# mount -t ntfs-3g /dev/sdb1 /usb
备注:如果挂载不成功,提示无法识别ntfs格式,请参照前一篇文档