NTFS drive, mounted & passthrough simultaneously

tawapah

Member
Sep 15, 2022
5
0
6
On a small single machine "homelab" I have the same NTFS drive connected with both the host and a Windows VM simultaneously.

It has been mounted to the host as described here:
Code:
mount -t ntfs /dev/sda1 /mnt/pve/backup-disk

And to the vm using pci passthrough:
Code:
qm set 100 -scsi3 /dev/disk/by-path/pci-0000:07:00.0-ata-2

It all first seemed to work as intended. Both Proxmox and Windows can use the drive. But I noticed that if I copy an iso image into the "../proxmox/template/iso/" from within Windows, then Proxmox cannot see this file. The same applies vice versa, if I upload an iso to the drive from Proxmox, then this file cannot be seen from within Windows - not even after a restart.

Is there anyone that can explain why Proxmox and Windows cannot see each others files, even when they are placed into the same directory on the same drive?
 
Last edited:
On a small single machine "homelab" I have the same NTFS drive connected with both the host and a Windows VM simultaneously.
Why are you trying to do this.???

Why not just setup the disk as an SMB share and have Windows access that shared folder.? That share can than also be added to the Proxmox data storage and and anywhere else you need to access it from.
 
Is there anyone that can explain why Proxmox and Windows cannot see each others files, even when they are placed into the same directory on the same drive?
because you can't mount a ntfs filesystem on 2 machines at the same time....you are going to kill it if you do this...
 
  • Like
Reactions: uzumo and news
Why are you trying to do this.???

Why not just setup the disk as an SMB share and have Windows access that shared folder.? That share can than also be added to the Proxmox data storage and and anywhere else you need to access it from.
For some years I've been gaming using a Windows VM, but recently I noticed that more and more games doesn't support this. Therefore I've decided to make a dual-boot solution, having only one Windows installed, which then both can be booted up directly, but also started as a vm through Proxmox - thus having the benefits of both. I can see that it's possible to passthrough a regular Windows install here, and was hoping this also could work with a dual-boot.

I then came up with the idea of sharing the same backup drive, both when booting directly into Windows and when booting into Proxmox starting the Window as a vm. I guess that is fine, but then I also thought about sharing this together with Proxmox, so both Proxmox and Windows could use it for backups, but apparently this doesn't work as I intended.
 
because you can't mount a ntfs filesystem on 2 machines at the same time....you are going to kill it if you do this...
Okay, so this will mess up the file system on the partition?

What about if I split the drive into two partitions, having one for Proxmox and the other for Windows. Would that work simultaneously?
 
Last edited: