Is it dangerous to access a third partition from a virtualbox guest installed on the partition


swift

I recently configured my laptop to dual boot Windows 10 and Ubuntu 16.04.

The setup is to have 6 partitions on a single 1TB drive, of which only 3 are set up as usable drives (the rest are recovery, swap, efi). On the one hand I installed win10 using the app, on the other hand I installed ubuntu using the app, and the other is the drive I use to share data between the two setups.

I've recently (loosely) followed this approach : https://lifehacker.com/how-to-dual-boot-and-virtualize-the-same-partition-on-y-493223329

This way I can now access the ubuntu partition as a virtual guest from windows.

If you look at the referenced guide and the linked vbox documentation, there are some big warnings about allowing host/guest access to each other's partitions, so I made sure to hide those warnings from myself on each system.

What I'm wondering now is that it's safe for me to access the shared data drive from both systems at the same time (note: it's not shared as a virtualbox share - both have physical disk visibility). Could this situation lead to corruption?

Cliff Armstrong

Wrong way

Accessing partitions directly from two different operating systems via native filesystem drivers is very dangerous. This is because native fs drivers are designed with the assumption that they have exclusive access to the filesystem. They are not aware of each other's MFT/Journal changes to their respective filesystems, and in some race condition they both try to write to the same sector at the same time. The risk of data loss is very high just because fs is mounted (not actively accessing it). Actively writing to a drive mounted this way actually guarantees that the filesystem won't get corrupted, if not lost data.

If fs is offloaded into the host OS (and is still risky) or as immutable client software (still won't notice changes), then at best you can directly mount the physical filesystem directly in the guest OS. host brand).

Right way

The easiest and most reliable option is to use a Virtualbox shared folder that maps to the root of the filesystem you wish to share. I do this myself:

enter image description here

Then you can mount the shared drive in the guest computer. To do this, you must have Virtualbox Guest Additions installed on the client machine. In *nix, just use the mount command with a device that matches the share name and fstype "vbox". In Windows, look at "Network Locations" and then Can right-click> Map Network DriveOn Shares.

Related


Virtualbox cannot boot guest from GPT physical partition

Ding Virtualbox cannot boot the guest from a GPT physical partition, it stops at a black screen with the cursor in the top left corner (not blinking). Virtualbox version is 5.0.10 x64. PhysicalDrive0 is the GPT drive, here is the partition information: C:\Prog

How to access ubuntu partition from windows using VirtualBox

Sodium nitrate I found a link that describes the exact opposite: access windows via virtualbox in ubuntu. I don't want to reboot the system every time I check some little things in ubuntu. I have ubuntu 12.04 and windows 8 (dual boot). How to setup virtualbox

How to access ubuntu partition from windows using VirtualBox

Sodium nitrate I found a link that describes the exact opposite: access windows via virtualbox in ubuntu. I don't want to reboot the system every time I check some little things in ubuntu. I have ubuntu 12.04 and windows 8 (dual boot). How to setup virtualbox

How to access ubuntu partition from windows using VirtualBox

Sodium nitrate I found a link that describes the exact opposite: access windows via virtualbox in ubuntu. I don't want to reboot the system every time I check some little things in ubuntu. I have ubuntu 12.04 and windows 8 (dual boot). How to setup virtualbox

Access virtualbox guest from LAN

Tom Kaho All the tutorials and guides I've seen about accessing remote desktops in virtualbox claim it's very easy, but I still get errors. Every time I try to access a virtualbox client running Arch Linux, I get standard error: Remote Desktop cannot connect t

Access virtualbox guest from LAN

Tom Kaho All the tutorials and guides I've seen about accessing remote desktops in virtualbox claim it's very easy, but I still get errors. Every time I try to access a virtualbox client running Arch Linux, I get standard error: Remote Desktop cannot connect t

Access Windows 8 partition via virtualbox

mark1985 I have an Asus K55a laptop and am currently dual booting Windows 8 and Ubuntu 13.10. I'm trying to use VirtualBox to access a Windows 8 partition without rebooting. clarify: Windows 8 is installed The partition where Win8 installed "OS" has been mount

Access Windows 8 partition via virtualbox

mark1985 I have an Asus K55a laptop and am currently dual booting Windows 8 and Ubuntu 13.10. I'm trying to use VirtualBox to access a Windows 8 partition without rebooting. clarify: Windows 8 is installed The partition where Win8 installed "OS" has been mount

Access Windows 8 partition via virtualbox

mark1985 I have an Asus K55a laptop and am currently dual booting Windows 8 and Ubuntu 13.10. I'm trying to use VirtualBox to access a Windows 8 partition without rebooting. clarify: Windows 8 is installed The partition where Win8 installed "OS" has been mount

Hash join with partition limit from third table

Peter My current problem is in 11g, but I'm also interested in how to solve this more intelligently in future releases. I want to join two tables. Table A has 10 million rows, and Table B is huge, with a billion records on about a thousand partitions. A partit

Access files from another partition

ancestor I've been using Windows for a while and I just installed Ubuntu and wanted to make some media files (mostly iTunes songs and movies) available to my Ubuntu partition. My question is, is there an easy way to copy them into Ubuntu (I noticed another par

Access files from another partition

ancestor I've been using Windows for a while, I just installed Ubuntu and wanted to make some media files (mainly my iTunes songs and movies) available to my Ubuntu partition. My question is, is there an easy way to copy them into Ubuntu (I noticed another par

Access the Ubuntu partition from Windows

avi12 I have 1 SSD and 2 HDDs - each with 1 TB capacity. Windows 10 is installed on the SSD and Ubuntu 18.04 is installed on one of the HDDs. I need to be able to access the HDD from Windows, but currently I can't as its filesystem is apparently EXT4. I need t

Access site on host from guest using VirtualBox?

Gilchaz I'm running VirtualBox on a Mac (host) and the VM used is Windows 7 (guest). VirtualBox is set up to use a NATnetwork adapter and has internet access (google, msn, etc.) fine, but I'm hosting a site on a Mac (host) so I can't access it from the VM. The

Access VPN host by name from VirtualBox guest

username I have an Ubuntu guest running under VirtualBox on a W10 host with VPN. I've set up the host-only adapter and the NAT adapter as suggested in other answers here, and everything works fine. The only problem is from the guest that I can't access the hos

How to access Apache from host (on VirtualBox guest)?

urok93 I have Apache installed on an Ubuntu VM. When I go into the client machine and load Firefox, I can see that Apache is running fine when I browse to localhost. I want to access the same page through the host. I tried using the guest's IP address, but not

Access site on host from guest using VirtualBox?

Gilchaz I'm running VirtualBox on a Mac (host) and the VM used is Windows 7 (guest). VirtualBox is set up to use a NATnetwork adapter and has internet access (google, msn, etc.) fine, but I'm hosting a site on a Mac (host) so I can't access it from the VM. The

Access VPN host by name from VirtualBox guest

username I have an Ubuntu guest running under VirtualBox on a W10 host with VPN. I've set up the host-only adapter and the NAT adapter as suggested in other answers here, and everything works fine. The only problem is from the guest that I can't access the hos

How to access Apache from host (on VirtualBox guest)?

urok93 I have Apache installed on an Ubuntu VM. When I go into the client machine and load Firefox, I can see that Apache is running fine when I browse to localhost. I want to access the same page through the host. I tried using the guest's IP address, but not

Get a list of installed packages from a corrupted partition

Matt Mo I'm running 13.04 on VMWare Fusion 6 on top of OS X, which has some serious stability issues and has to do a hard reboot (reboot) at least once a day, if not more. Since VMWare is lame and doesn't always write disk data to disk, virtual machines are vu

Get a list of installed packages from a corrupted partition

Matt Mo I'm running 13.04 on VMWare Fusion 6 on top of OS X, which has some serious stability issues and has to do a hard reboot (reboot) at least once a day, if not more. Since VMWare is lame and doesn't always write disk data to disk, virtual machines are vu

Get a list of installed packages from a corrupted partition

Matt Mo I'm running 13.04 on VMWare Fusion 6 on top of OS X, which has some serious stability issues and has to do a hard reboot (reboot) at least once a day, if not more. Since VMWare is lame and doesn't always write disk data to disk, virtual machines are vu

How to access a vagrant guest from another virtualbox guest?

Adrian Garner The scenario is that my development environment is on a Vagrant box on a laptop (host) and I want to do browser testing in a vitualbox vm, so I need to look at another vm. The port of the vagrant box is: 8080, which is forwarded to the host on th

How to access a vagrant guest from another virtualbox guest?

Adrian Garner The scenario is that my development environment is on a Vagrant box on a laptop (host) and I want to do browser testing in a vitualbox vm, so I need to look at another vm. The port of the vagrant box is: 8080, which is forwarded to the host on th