1、检查window系统分区是否挂在到了ubuntu中
sudo fdisk -l
Device Boot Start End Blocks Id System
/dev/sdb1 1 1824 14651248+ 2d Unknown
/dev/sdb2 1825 30401 229544752+ f W95 Ext'd (LBA)
/dev/sdb5 1825 6688 39070048+ b W95 FAT32
/dev/sdb6 6689 15199 68364576 2d Unknown
/dev/sdb7 15200 21278 48829536 2d Unknown
/dev/sdb8 21279 27357 48829536 2d Unknown
/dev/sdb9 27358 27481 995998+ 2d Unknown
/dev/sdb10 27482 30401 23454868+ 2d Unknown
2、关闭ubuntu,设置vmware
在VMware Workstation下点击:VM-->settings,打开Virtual Machine setting,Add-->选Hard Disk,Next:Use a physical disk(for advanced users) ,Next :Use individual partitions,Next:对照空间大小把E、F、G盘的复选框都沟上,Next,Finish,OK。启动Ubuntu。
3、打开终端,再次输入:sudo fdisk -l
Device Boot Start End Blocks Id System
/dev/sdb1 1 1824 14651248+ 2d Unknown
/dev/sdb2 1825 30401 229544752+ f W95 Ext'd (LBA)
/dev/sdb5 1825 6688 39070048+ 2d Unknown
/dev/sdb6 6689 15199 68364576 7 HPFS/NTFS
/dev/sdb7 15200 21278 48829536 7 HPFS/NTFS
/dev/sdb8 21279 27357 48829536 7 HPFS/NTFS
/dev/sdb9 27358 27481 995998+ 2d Unknown
/dev/sdb10 27482 30401 23454868+ 2d Unknown
说明分区已经挂载成功
4、在/media目录下建三个文件。E、F、G
sudo mkdir /media/E
sudo mkdir /media/F
sudo mkdir /media/G
5、挂载E、F、G盘
sudo mount -t ntfs /dev/sdb6 /media/E
若出现如下错误信息
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sdb6': 操作不支持
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sdb6 /media/E -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sdb6 /media/E ntfs-3g force 0 0
首先看看是否装上了ntfs-3g,命令:sudo apt-get install ntfs-3g
再次挂载: sudo mount -t ntfs-3g /dev/sdb6 /media/E -o force
出现,$LogFile indicates unclean shutdown (0, 0)
WARNING: Forced mount, reset $LogFile.
没关系,E盘已经在桌面上了,接着挂载其他两个盘就可以了。
输入:sudo mount -t ntfs-3g /dev/sdb7 /media/F -o force
sudo mount -t ntfs-3g /dev/sdb8 /media/G -o force
ok!全部挂载成功!
/mnt/hgfs:
先安装vmware tools选择VM-->Install Vmware tools安装
安装好后 就可以在虚拟上上摄者share文件
(1) 在ghost computer中(即VMware虚拟机)切换到windows桌面,选择VMware workstation程序菜单中VM---->settings---->Options---->shared folders---->properties
(2) 点击对话框右下的"Add"---->"下一步",在文本框"name"中输入共享目录的名字(即在ghost computer的linux系统中将显示出同样的目录名),假设为win2linux,在"host folder"中填入host computer 中windows系统想要共享出来的目录,假设为F:\win2linux,然后点击"完成".
(注: F:\win2linux目录要手动建立,即在F盘下建一个新建文件夹,命名为win2linux)
(3) 下一个对话框似选择共享的方式:Enable this share是指这个共享长期有效.目录可读写---->"完成",至此,shared folder设置完毕
举例:
1.如:要将文件包make-3.81.tar.gz从windows拷贝到VM linux中,只需将make-3.81.tar.gz拷贝到windows的F:\win2linux目录下,则在limux的/mnt/hgfs /win2linux下就有该文件,可以直接用了.
[root@localhost win2linux]# ls
make-3.81.tar.gz
[root@localhost win2linux]# ls
2.将linux中的文件拷贝到windows中
只需将要拷贝的文件拷贝到/mnt/hgfs/win2linux目录下,在windows的F:\win2linux目录下即有该文件
[root@localhost mickey]# cp ./vmtool_install_print.txt /mnt/hgfs/win2linux
[root@localhost mickey]#