Mounting external drive as "local" in VM
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Mounting external drive as "local" in VM
Aloha. I'm running a Windows 7 Home 64-bit guest on a Linux Mint 19.1 Cinnamon box. I'm using VirtualBox Version 6.0.12 r133076 (Qt5.9.5 as the vm software.
Everything works. But I need to mount a drive that is attached to the Linux host via an eSATA docking station to the VM. I have been using the "Devices -> Shared Folders -> Shared Folders Settings -> Add new shared folder" to connect the external eSATA drive to the VM. This does work, but the drive shows up as a network drive. Unfortunately, I have some Windows based tools that I want to use for this drive, and they do not recognize Network Drives.
I've done some searching on how to connect this drive as a local drive, but everything I've found so far carries warnings about possibly losing all your data! I can't afford that risk.
So, is there some (relatively safe) method to attach this drive to my Win 7 VM? Please understand that I am something of a novice with both Linux and VMs.
Mahalo,
Harry Z
Everything works. But I need to mount a drive that is attached to the Linux host via an eSATA docking station to the VM. I have been using the "Devices -> Shared Folders -> Shared Folders Settings -> Add new shared folder" to connect the external eSATA drive to the VM. This does work, but the drive shows up as a network drive. Unfortunately, I have some Windows based tools that I want to use for this drive, and they do not recognize Network Drives.
I've done some searching on how to connect this drive as a local drive, but everything I've found so far carries warnings about possibly losing all your data! I can't afford that risk.
So, is there some (relatively safe) method to attach this drive to my Win 7 VM? Please understand that I am something of a novice with both Linux and VMs.
Mahalo,
Harry Z
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- catweazel
- Level 19
- Posts: 9763
- Joined: Fri Oct 12, 2012 9:44 pm
- Location: Australian Antarctic Territory
Re: Mounting external drive as "local" in VM
If you can't afford the risk, don't do it. It's that simple.
https://www.serverwatch.com/server-tuto ... ox-vm.html
That link shows how it's done, and carries the warning.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Re: Mounting external drive as "local" in VM
Do you have backups? If so, you're not at risk for losing your data, only of having to copy it back. If not, that's a much bigger problem and something you should take care of immediately. Yesterday, even.
Re: Mounting external drive as "local" in VM
Tried the link purely out of interest:
https://www.serverwatch.com/server-tuto ... ox-vm.html
and got:
An error occurred while processing your request.
Reference #97.ac81655f.1571086112.35905c04
https://www.serverwatch.com/server-tuto ... ox-vm.html
and got:
An error occurred while processing your request.
Reference #97.ac81655f.1571086112.35905c04
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Re: Mounting external drive as "local" in VM
Well, I guess I'm not going to do this then.catweazel wrote: ⤴Mon Oct 14, 2019 1:16 amIf you can't afford the risk, don't do it. It's that simple.
https://www.serverwatch.com/server-tuto ... ox-vm.html
That link shows how it's done, and carries the warning.
The tools I want to run are backup tools. Unfortunately, they don't work with network drives.
Thank you all for taking the time to respond.
Harry Z
Re: Mounting external drive as "local" in VM
There is no reason to use win7 running as a guest in VB to do backups, there are plenty of excellent linux backup tools that will take care of your external drive (or backup to your external drive if that's what you are using it for).
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
-
- Level 6
- Posts: 1174
- Joined: Sun Mar 10, 2013 8:08 pm
- Location: Mansfield, Ohio
Re: Mounting external drive as "local" in VM
Aloha, Harry,HarryZ wrote: ⤴Mon Oct 14, 2019 12:29 am Aloha. I'm running a Windows 7 Home 64-bit guest on a Linux Mint 19.1 Cinnamon box. I'm using VirtualBox Version 6.0.12 r133076 (Qt5.9.5 as the vm software.
Everything works. But I need to mount a drive that is attached to the Linux host via an eSATA docking station to the VM. ...
My setup is Windows Host, Linux Guest, but I think I can help you. Let me relate my experience.
You may be able to mount your drive as a virtual USB hard disk. That's what I do. Here's what I have:
Virtual USB #1 is my web browser (Pale Moon). The virtual USB includes the Pale Moon application plus the entire browser profile. Since Pale Moon executes in Linux, and since symlinks may be involved, this virtual USB is formatted with ext3 file system -- you would format yours for Win7.
Virtual USB #2 is my email client (Thunderbird). The virtual USB includes only the TBird application. Since TBird executes in Linux, and since symlinks may be involved, this virtual USB is also formatted with ext3 file system -- you would format yours for Win7.
Shared directory #1 is my TBird profile (including the entire emial store). This is part of my Windows Host (that's only shared with Linux), so it's NTFS. I share it so that I can access my email in both the Host & the Guest.
Shared directory #2 is my Windows data disk also formatted in NTFS.
The rub for you would be that, in order to run applications in your Win7 Guest, they'd have to be portable versions of those applications. Other than that slight complication, a similar setup might work for you. Try it and let me know how it goes.
Hope this helps.
-
- Level 4
- Posts: 251
- Joined: Sun May 05, 2019 6:48 pm
- Location: Scottsdale, AZ, USA
Re: Mounting external drive as "local" in VM
This may be a dumb question...
Have you tried mapping a drive letter to your "network" drive?
Have you tried mapping a drive letter to your "network" drive?
-
- Level 6
- Posts: 1174
- Joined: Sun Mar 10, 2013 8:08 pm
- Location: Mansfield, Ohio
Re: Mounting external drive as "local" in VM
After reading SomeDudeInAZ's reply (which is pretty good, by the way), I realized that Harry's ultimate issue may be making backups, not mounting a docking station in the Guest.
You want to make a safety backup of a Guest, right?
Forget trying to mount a docking station into the Guest. What you want is a lot easier than that. Simply make a copy of the Guest's VDI (or VHD) from within the Host.
My Guest's VDI is named 'Mint18.vdi'. When I make a backup, I shut down the Guest and simply copy 'Mint18.vdi' from within the Host. If anything happens to the Guest at a latter time, I simply copy it back. There's no problem with UUIDs because the two VDIs have the same UUID. But don't try to do the copying via VBox's Virtual Media Manager.
It really is that simple.
PS: With such a simple backup method, I don't bother with snapshots and such stuff. Life is simple. Life is good.
PPS: In a Linux Host, a docking station may show up solely as a networked drive. I think that's a characteristic of Linux that you're not likely to circumvent.
You want to make a safety backup of a Guest, right?
Forget trying to mount a docking station into the Guest. What you want is a lot easier than that. Simply make a copy of the Guest's VDI (or VHD) from within the Host.
My Guest's VDI is named 'Mint18.vdi'. When I make a backup, I shut down the Guest and simply copy 'Mint18.vdi' from within the Host. If anything happens to the Guest at a latter time, I simply copy it back. There's no problem with UUIDs because the two VDIs have the same UUID. But don't try to do the copying via VBox's Virtual Media Manager.
It really is that simple.
PS: With such a simple backup method, I don't bother with snapshots and such stuff. Life is simple. Life is good.
PPS: In a Linux Host, a docking station may show up solely as a networked drive. I think that's a characteristic of Linux that you're not likely to circumvent.
Re: Mounting external drive as "local" in VM
Agreed. My VMs live in the default folder, /home/andy/VirtualBox VMs. I use backintime to backup /home and have two backups scheduled to run automatically. /home gets backed up daily, the VMs once a week (on the basis that they don't change often). For this to work as intended, it does require that you don't keep any data inside the VM - but that's what shared folders are for.Forget trying to mount a docking station into the Guest. What you want is a lot easier than that. Simply make a copy of the Guest's VDI (or VHD) from within the Host
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Re: Mounting external drive as "local" in VM
While I do appreciate the advice, it is not pertinent to what I'm doing. I am using a specialized tool written to backup all user data for either transfer to another machine or a new hard drive. It's called Fab's Autobackup https://www.fpnet.fr/. There is no Linux equivalent, and this tool does not work with network connected drives. All the techniques posted here are not what I'm looking for.
I will just make my bench machine dual boot Mint / Windows 10.
Again, thanks for all the input.
Harry Z
I will just make my bench machine dual boot Mint / Windows 10.
Again, thanks for all the input.
Harry Z
-
- Level 4
- Posts: 251
- Joined: Sun May 05, 2019 6:48 pm
- Location: Scottsdale, AZ, USA
Re: Mounting external drive as "local" in VM
Here's an even dumber question...
If that's the app you're going to use...will it run under WINE? Just a thought
If that's the app you're going to use...will it run under WINE? Just a thought
HarryZ wrote: ⤴Mon Oct 21, 2019 6:21 pm While I do appreciate the advice, it is not pertinent to what I'm doing. I am using a specialized tool written to backup all user data for either transfer to another machine or a new hard drive. It's called Fab's Autobackup https://www.fpnet.fr/. There is no Linux equivalent, and this tool does not work with network connected drives. All the techniques posted here are not what I'm looking for.
I will just make my bench machine dual boot Mint / Windows 10.
Again, thanks for all the input.
Harry Z
Re: Mounting external drive as "local" in VM
Thanks for the suggestion. I've talked with the author and he's not sure if it will or won't work under Wine. But, I need to spend my time doing productive (billable) work as opposed to "playing" with Wine. Much easier for this Windows-centric person to set up the machine for dual boot than to mess around with more unfamiliar software.SomeDudeInAZ wrote: ⤴Tue Oct 22, 2019 4:14 pm Here's an even dumber question...
If that's the app you're going to use...will it run under WINE? Just a thought
Again, thanx for the suggestion.
Harry Z
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Mounting external drive as "local" in VM
Are you backing user data on the Linux machine? Your windows tool at first glance sounds like Aptik https://github.com/teejee2008/aptikHarryZ wrote: ⤴Mon Oct 21, 2019 6:21 pmIt's called Fab's Autobackup https://www.fpnet.fr/. There is no Linux equivalent
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Mounting external drive as "local" in VM
No, I was trying to use a specialty tool (Fab's Autobackup) that only runs on Windows in a Win 7 Guest running on a Mint host. Unfortunately, the tool does not work with network drives, which is how the "source" drive looks to the guest.smurphos wrote: ⤴Tue Oct 22, 2019 5:02 pm Are you backing user data on the Linux machine? Your windows tool at first glance sounds like Aptik https://github.com/teejee2008/aptik
The only tools I run on Mint are ddrescue, RStudio, gsmartcontrol, and gparted, and occasionally I have to use Mint to delete a file or folder structure from a Windows drive where Windows chokes on it for some reason. Any tool that saves data has to save it in a format that I can use from Windows. (e.g.: ddrescue creates image files, which I can mount in Windows using osfmount).
Harry Z
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Mounting external drive as "local" in VM
Yeah sure I understood that - but was wondering what data you were using it to back up as that wasn't clear from your thread and if the data was your linux user data I was suggesting a (very good IMHO) linux near alternative. If it's Windows data crack on and ignore me. I can't really help with your presenting question as I don't run any Windows guests to experiment with other than to reiterate the query a few posts above - are you automounting the shared drive with an assigned drive letter and if not does doing so make any difference - https://www.virtualbox.org/manual/UserM ... unt_manual
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Mounting external drive as "local" in VM
No, I have not tried that. The documentation you point to makes it clear (to me) that every mounted drive will be a "network" drive.smurphos wrote: ⤴Wed Oct 23, 2019 12:26 am
... are you automounting the shared drive with an assigned drive letter and if not does doing so make any difference - https://www.virtualbox.org/manual/UserM ... unt_manual
Thanks again for your assitance!
Harry Z