宿主机系统XP 虚拟机Linux5.4
首先将宿主机上第二块硬盘的第一个分区50G格式化ntfs。
在vm-setting中add hard disk 选择第二块硬盘的第一个分区
开启虚拟机fdisk -l查看磁盘如下:
Disk /dev/hda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 2 6528 52428127+ 7 HPFS/NTFS (需要mount的分区)
/dev/hda2 6529 32637 209720542+ 2d Unknown
/dev/hda3 32638 60788 226122907+ 2d Unknown
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 6 48163+ 83 Linux
/dev/sda2 7 515 4088542+ 83 Linux
/dev/sda3 516 2427 15358140 83 Linux
/dev/sda4 2428 2610 1469947+ 5 Extended
/dev/sda5 2428 2610 1469916 82 Linux swap / Solaris
=========================================================
在虚拟机中创建目录/mnt/K_Driver
本来用命令mount -t vtfs /dev/hda1 /mnt/K_Driver
结果提示:未知的命令
然后根据网上提示安装fuse-2.7.4-8.e15.i386.rpm
和fuse-ntfs-3g-2009.4.4-2.el5.rf.i386
最后运行mount -t ntfs-3g /dev/hda1 /mnt/K_Driver
显示mount内容:
。。。。。。
/dev/hda1 on /mnt/K_Driver type fuseblk (rw,allow_other,blksize=4096)
。。。。。
现在问题是:
无论我在XP的K盘下创建文件 还是在虚拟机linux中/mnt/K_Driver下创建文件,,两边数据都不一致,不同步。请问这是为什么?那个地方出错了?
比如在XP下K盘里添加个文件 在Linux中看不到