且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

虚拟机挂载U盘

更新时间:2022-10-02 07:58:51

1:用鼠标点一下vmware里,把焦点转移到vmware
2。插入u盘,系统会自动识别
3。建立挂载目录,一般#mkdir /mnt/udisk
这时候他会自动检测到,然后用 fdisk- l看一眼 ,,
[root@yyl-0377 root]# fdisk -l

Disk /dev/sda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1       574   4610623+  83  Linux
/dev/sda2           575       652    626535   82  Linux swap

Disk /dev/sdb: 130 MB, 130416640 bytes
8 heads, 32 sectors/track, 995 cylinders
Units = cylinders of 256 * 512 = 131072 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1   *         1       995    127344    b  Win95 FAT32

4。挂载 # mount /dev/sdb1 /mnt/udisk
然后进入/mnt/udisk 就可以了。
然后可以进行读写 ,想卸掉时用    

#umount  -l /dev/sdb1


本文转自 godoha 51CTO博客,原文链接:http://blog.51cto.com/godoha/78573 ,如需转载请自行联系原作者