Re: the mounted NTFS can't be refreshed

From: Mike Mol (mikemol_at_gmail.com)
Date: 05/22/05


Date: 21 May 2005 21:20:37 -0700


Jacky Ferihmen wrote:
> I'm using the vmware to run RH9 on a XP host.
> I builded NTFS-readable in my 2.6 kernel. I can mount the NTFS
> partition and use it . But if I switch to XP and change some of my
> files on that partition, the linux-client doesn't get a responce.
> Everything keeps unchanged. I tried to re-mount the partition, but
> nothing changed. I can't get to my new files in linux unless I reboot
> the virtual machine. I also tried to umount the partition first, and
> changed some files, and mount it again. But it dosen't work, the
> partition seems unchanged to linux.
>
> Why this happens? Is the problem of vmware? or RH?
> Does anyone get a idea? THX.

Part of your problem is that WinXP buffers data before writing it to
disk, so not everything you change in XP is going to immediately go to
the hard disk.

However, and more importantly, what you're doing is RISKY! It'd be
downright *dangerous* of you'd tried to set up NTFS write support!

AFAIK, there's no way to get WinXP to unmount a filesystem on a fixed
disk. (read, non-removable.) Which means that when you try to mount
the NTFS filesystem from Linux, you're working with a filesystem that's
already mounted, and therefore isn't in a predictable state.

In essence, this is because any modern desktop and/or server operating
system keeps some parts of the filesystem up-to-date only in memory,
for speed reasons. Direct access to the filesystem data is therefore
discouraged, because it's possible that not all of the changes that
are/were stored in memory have been saved to disk.

If you really want to share data between a Linux VMWare session and a
Windows host using a hard filesystem, get an external USB storage
devices...both flash-based and hard-disk-based products should work
fine. With external drives, you can tell Windows to unmount the
filesystem by going to "Safely Remove Hardware" in the task bar. Then
unplug the USB cable, start up VMWare, and plug it back in. VMWare
should take control of the device, and allow you to access it directly
from your guest OS.

However, a cheaper method would be to create a SMB share on your XP
box, and have your guest OS mount it through VMWare's networking
abilities. It'll be a little bit slower than direct access to a
device, but it's generally less of a hassle, and a little bit safer.



Relevant Pages

  • read/only root filesystem strategy
    ... the installed system as possible be running under a read/only mount. ... or a widely shared network filesystem. ... Modifying the kernel to perform the setup. ... Partition hda1 would house the kernel and a small rescue ...
    (comp.os.linux.development.system)
  • Re: Basic structure of Linux : File system, types of files with extentions, drive informations, and
    ... occurs at a certain place (the mount point) in the filesystem. ... When a partition is mounted onto the filing tree at a specific directory, ... note though that the op was asking a very newbie question, ...
    (alt.os.linux)
  • Re: hardisk full
    ... mount the appropriate partition on each. ... create tar files (This assumes you have at least twice the currently ... one filesystem at a time and use the other partition as the location to ...
    (Fedora)
  • Re: Problem with multiple mounts
    ... make reiserfs and run fsstress test case on this partition. ... I mount this partition on the nbd server. ... Unless you have a filesystem that is ...
    (Linux-Kernel)
  • Re: problem mounting filesystem
    ... Try to mount /dev/hdd1 elsewhere: ... I am able to use fdisk to partition the disk, and mke2fs to put an ext3 filesystem on it. ...
    (RedHat)