Accessing NTFS On Host From XP/Win7 VM

Home » CentOS-Virt » Accessing NTFS On Host From XP/Win7 VM
CentOS-Virt 9 Comments

Greetings,

I have installed CentOS 6.3 recently on bare metal (as dual boot with win 7) and want to access the existing NTFS through XP Guest. SELinux is enforcing and VM network is NAT.
Google confused me more that educating me — maybe I could not cobble up the right phrase.¬†Any help appreciated.

TIA

It is my only system at home.

9 thoughts on - Accessing NTFS On Host From XP/Win7 VM

  • I didn’t quite understand, what do you want to achieve. I had winXP and CentOS 5.8 installed simultaneously on my laptop, winXP
    was dual-use: either on a bare metal or as a guest in VMWare under running CentOS. Had to create two hardware configurations on WinXP and play with disk controllers.

    Now I have CentOS 6.3 (recently installed) and going to achieve the same thing under KVM. Shouldn’t be different.

    Best regards, Dmitry Mikhailov

  • Greetings,

    I have a dual boot — CentOS 6.3 and Win 7 running on bare metal

    There are three NTFS partition and 3 partitions for CentOS — /boot, swap and LVM PV device.

    I am able to access NTFS when CentOS is booted.

    I have installed XP as a guest under CentOS.

    Now I want to install, say firefox, whose setup file is in the second NTFS partition of host from the XP guest.

    How to make the partition visible to the guest?

    TIA

  • Add a full physical disk to the VM:


    *** WARNING *** WARNING *** WARNING ***
    Don’t never ever try to boot Linux again from that disk in a virtual machine OR even write anything onto Linux partitions. Trying to mount/write already mounted partitions = big shit happens.

  • Greetings,

    Thanks for the reply.

    But your reply scares me. My CentOS ISOs and a lot of things are in those NTFS partitions which are used with Win 7 booted on baremetal.

  • Greetings,

    fdisk -l on baremetal shows:

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 6527 52428096 7 HPFS/NTFS
    /dev/sda2 6528 54108 382194352 f W95 Ext’d (LBA)
    /dev/sda3 54109 54172 512000 83 Linux
    /dev/sda4 54172 60802 53251072 8e Linux LVM
    /dev/sda5 6528 44970 308789528+ 7 HPFS/NTFS
    /dev/sda6 44970 54108 73403392 7 HPFS/NTFS

    Only one vm running XP/ That too only when CentOS is running and vm is fired up.

    VM is a file on /dev/sda4.

    I want to access /dev/sda5 and/or /dev/sda6 and/or /dev /sda1 in the XP guest –They are already mounted and accessible when CentOS is booted up.

  • Let me see if I understood your problem statement fully/correctly:

    1. You have a system with Windows 7 (say sda1) and CentOS 6.3 (say sda2)
    2. You are booted into CentOS 6.3 and running a Win XP guest in a VM (LKVM?)
    3. Now you want to access /dev/sda1 (NTFS) from within the Win XP VM

    How are you starting the VM? CLI or virt-manager.

    — Arun Khan

LEAVE A COMMENT