this post was submitted on 20 Aug 2024
65 points (94.5% liked)

Linux

48738 readers
1158 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

This might sound daft, but something similar used to work with live discs.

I've got Windows 10 and Mint 21.1 dual booting on my computer at the moment. Every so often I'll realise that I've missed something from my Windows installation. If it's important, I then have to boot to Windows to get the information, or the settings etc.

Is there a way to virtualise my Mint installation so that I can run both the OSs at once to make sure that I've got everything?

VirtualBox had a tool to do this with a live USB, but that was back in the MBR days, so it probably won't work with modern hardware.

EDIT: Sorry, I should clarify, Mint and Windows are on the same physical disk, and the plan is to remove Windows once I'm done.

Update: I'm giving up. It looks like it is possible if you have separate disks with separate boot partitions, but getting it to work with a shared boot partition is harder work than I'm willing to do right now.

VMware Player can use a partition or disk, but might be in read only mode, I couldn't get far enough to check.

Thanks for all the replies :)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 4 months ago (1 children)

If you're using the 'Pro' or 'Education' license for Windows 10, you can look into Hyper-V, which should allow you to boot a VM from a physical disk.

Hyper-V is built-in to Windows; & you just need to enable it in system settings.

Not sure if it works with partitions, if you're dual booting the OSs from separate partitions on the same disk -- it probably doesn't; in which case you might need to migrate Mint to its dedicated disk first.

[–] [email protected] 2 points 4 months ago (1 children)

Yeah, it's partitions that I'm dealing with. My goal is to transfer everything over, give it a few weeks to make sure that I haven't missed anything, then wipe Windows from the partition so that Mint has the full disc.

[–] stardustsystem 3 points 4 months ago (1 children)

Hyper-V will work with physical disk, but be warned - the wizard you run through when making a VM will make it look like you give the VM a VHD file for storage or nothing. Just attach no storage to the VM initially, then go into the VM settings after the wizard is complete to attach something besides a VHD.

Can't entirely remember if it handles partitions but I know it can boot particular disks and if the setting exists, that's where it would be

[–] [email protected] 1 points 4 months ago (1 children)

This is what I'm trying at the moment. I found this question on Super User that suggests it can be done, but like you say, the wizard makes it look like you have to use a file first.

https://superuser.com/questions/1309308/boot-physically-installed-linux-in-vmware-workstation-on-windows-10

[–] [email protected] 2 points 4 months ago (1 children)

This is one area where Win11 (and maybe an updated win10?) might have a leg up: my hyper V has the option of adding a disk later in the wizard, which allows me to go into IDE controller 0 and mount a physical disk in the new vm's settings:

https://files.catbox.moe/ss8pwv.png

https://files.catbox.moe/nr9rdl.png

[–] [email protected] 2 points 4 months ago (2 children)

I might have hit my limit :(

VMware is letting me do something similar, and I've attached the Mint partition, but because the boot partition is separate and in use, it's not letting me go any further. There's probably a way around it, but it's beyond what I know how to do, and I don't want to risk breaking my Mint installation.

[–] [email protected] 3 points 4 months ago (1 children)

I'm not sure. I never ran into an issue with the boot partition last time I did this, but that was vmware fusion on a macos host in like... 2015 so. So while I would probably just yolo it and unmount the boot partition (or maybe try to migrate/reinstall to another drive so it can have its own boot partition?), you might be better off trying something else.

Either that or try another hypervisor

[–] [email protected] 1 points 4 months ago

To be honest, I've given up. I was hoping that it would be something to make my life easier for a short while, but the amount of work to get it running is going to be more than just dual booting and swapping OSes for a while.

It's a shame, as it could be an interesting project, but it's quite a niche need going by some of the replies here, and isn't worth the effort.

[–] stardustsystem 1 points 4 months ago

Honestly, this is the point where I'd just make a new VM and manually migrate what I need to