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 :)

  • Zohran69@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    4 months ago

    Yup. Sure can. It’ll run as good as the system Resources’s you allocate during the install. I run them quite often with virtualbox

    • Archer@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      4 months ago

      VMWare Workstation is now free as well if you can tolerate Broadcom’s dogshit website

    • Tippon@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 months ago

      That’s good to know :)

      Is there anything special that I need to do, or do I just boot from the Mint boot drive?

      • M500@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        Depending on which virtual machine software you use, you might need to go onto the Linux even after you boot from it and run some programmer script to install drivers or something, but depends on which virtual machine software you use.

  • thisisbutaname@discuss.tchncs.de
    link
    fedilink
    arrow-up
    10
    ·
    4 months ago

    Yes, you can run Linux in a VM.

    But also: you should be able to access your Windows partition from Linux, as it supports NTFS and FAT filesystems, and view the files there.

    What I do is I have one partition with Windows, one with Linux, and a third one (with an NTFS file system) for the files I need to access from both.

    • Tippon@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      Sorry, I should have clarified, I’ve got a data disc, but I’m forgetting about things that need to be migrated, like Thunderbird profiles and Syncthing. As far as I can tell, I need to export them first, and then import them in Mint. If I set Mint as a VM, I should be able to do it all in one go and hopefully not forget anything else :)

  • wvstolzing@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    4 months ago

    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.

    • Tippon@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 months ago

      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.

      • *dust.sys@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        4 months ago

        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

          • osaerisxero@kbin.melroy.org
            link
            fedilink
            arrow-up
            0
            ·
            4 months ago

            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

            • Tippon@lemmy.dbzer0.comOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              4 months ago

              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.

              • osaerisxero@kbin.melroy.org
                link
                fedilink
                arrow-up
                2
                ·
                4 months ago

                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

                • Tippon@lemmy.dbzer0.comOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  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.

              • *dust.sys@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                4 months ago

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

  • Mountaineer@aussie.zone
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    4 months ago

    I think all the existing answers are on the basis of creating a new Linux VM.

    And if I understand you correctly, you already have a bare metal Linux install that you want to run whilst Windows is up.

    This is the best search result I could find: https://forums.virtualbox.org/viewtopic.php?t=93437

    It sounds like Virtualbox will indeed create a pseudo vhdx that points to a real partition, but windows is going to give you permissions drama.

    The above link is out of date though, so its best viewed as info rather than guide.

    Good luck.

  • potentiallynotfelix@lemdro.id
    link
    fedilink
    English
    arrow-up
    6
    ·
    4 months ago

    I know that you can use a Type-1 Hypervisor to run two OSes at once. That will generally need a higher spec system, because it basically runs two systems at once. Not a very practical option.

    • Tippon@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      From what I can tell, they would both need their own boot partition, which is where I’m stuck. My Windows and Mint installations share a boot partition, and it causes problems for this.

      I know that it’s not very practical, for most people, but imagine having to use Windows for work or a specific game, and still being able to access your distro as normal. It could be handy for a small niche, and felt like an interesting challenge :)

      • potentiallynotfelix@lemdro.id
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        a type 1 hypervisor is practically an operating system itself, just a very minimal one. it’s like installing virtualbox to your hard drive. it’s probably not best for your situation, because its usually used in servers.

    • Tippon@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      Can VirtualBox boot from the same physical disc as Windows? I’ve got Mint and Windows on separate partitions on the same disc for now.

      • BearOfaTime@lemm.ee
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        4 months ago

        Virtualbox runs in windows (or Linux).

        But it’s a dog as far as virtualization goes.

        • Tippon@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          0
          ·
          4 months ago

          Sorry, yes, I know what VirtualBox is. My problem is that I want to access my existing Mint installation through my existing Windows 10 installation. Mint and Windows are on the same physical disc in separate partitions, and I don’t want to have to reboot to do something like export my Thunderbird settings and emails from the Windows client if I’m in Mint.

          It’s a temporary stopgap solution while I switch because I have memory issues, and only tend to remember things when I need to use them (probably ADHD related, but that’s another story)

  • Axum@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 months ago

    This is definitely an XY problem and your solution is kinda insane.

    Just install ntfs drivers on Linux, and ext4 drivers on windows.

    Or if you truly need both constantly at the same time, ditch the physical install and commit to WSL

    • Daemon Silverstein@thelemmy.club
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      If Linux is configured to use LUKS and/or Windows is configured to use Bitlocker, it’s not so simple as just installing the ext4/NTFS driver.

      Also, neither Linux can run Windows programs (I’m aware of Wine, but AFAIK Wine won’t run software already installed on an existing Windows installation) nor Windows can run Linux programs (I’m also aware of WSL, but apart from very specific chroot-ings, AFAIK one can’t run software from pre-existing Linux installations)…

  • AFAIK on Windows the physical disk containing the partition needs to be marked offline in Disk Management, and the disk or a partition given exclusively to VirtualBox running as administrator, otherwise access is limited to read-only

    I would suggest checking some other sources as well, just in case this has changed over the years. If you do successfully pass the physical partition into VirtualBox read-write, you might need to set up a virtual disk with grub to boot into your physical Linux partition

  • colournoun@beehaw.org
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    I succeeded in doing this once long ago. Then while in the Linux vm I wiped the VM’s partition table, which wiped the physical disk partition table, including windows. Do not recommend.

  • kitnaht@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    4 months ago

    It’s literally been built into windows since Windows 10, natively.

    Can you access another partition on the drive and boot it? I’m sure it’s possible somehow. The VM part isn’t really the problem here.

    • Tippon@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      You might be misunderstanding what I want to do. I want to boot my existing Mint partition as a VM under Windows, not make a new VM with its own drive.

      From what I can tell, it might be possible if the distro is on its own drive with its own boot partition, but my Mint installation is on a partition on the same drive as Windows, and they share the same boot partition.

      • kitnaht@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        4 months ago

        Didn’t misunderstand at all, you just used different wording.

        You want to utilize an existing partition on the drive, as a VM image and boot it while you’re in Windows.

        The answer is yes, you can. Again, the VM part isn’t the problem here. Virtualbox can do it, but they require some major workarounds in order to do.

        https://www.neowin.net/forum/topic/784138-howto-boot-existing-ubuntu-partition-using-virtualbox-inside-windows/

        This is just one example out of many out there on Google. Understand that the commands here are NOT making a new drive image. They are making a drive image FILE that is specially formatted with the tools to point to the existing partition on the drive. VMWare can do this, QEMU can do this, Virtualbox can do this… you’re just making a VM image, where the data points to an actual hard existing partition on the drive.

        Once again – This is NOT making a new VM with its own drive, even though the command looks similar. I’m sure HyperV can do it as well, I’m simply not familiar enough with its packaging.

        • Tippon@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 months ago

          Apologies, yes, I did misunderstand you.

          I got VMware to recognise the partition, but it couldn’t boot it. Everything I found said that the distro needed to be on a separate drive with its own boot partition. I found threads saying that VirtualBox couldn’t do it either, but I’d be happy to be wrong :)

          I’m not at my computer now, so won’t get a chance to try it for at least a few hours.

          Thanks for the link and the information :)

  • NarrativeBear@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    I run a Hackintosh’s dual booting Mac OS and Windows. So you solution is not insane as some have pointed out.

    What I would suggest is maybe running a NAS on your local network to act as your share. Obviously this won’t help if you dont store your working files on your NAS, but its an idea. I know no way to directly share between the two machines as they are technically not on at the same time.

    • Tippon@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 months ago

      Thanks, but the sharing itself isn’t the issue. I’ve got three other hard drives in this computer, and can access them all through each OS. What I want to be able to do is be using Windows and realise that I want something from a program on the Mint drive, or have Mint running and realise that I need something from a program on Windows, and just be able to get it without having to shut down everything and reboot.

      I’ve got programs like Thunderbird where the data has to be exported before it can be imported in the Mint version, and the program has to be running for that to happen. With my memory, I keep forgetting about things like that until I’m in Mint and need the data, but in the time it takes me to reboot, get the data, and get back to Mint, I’ve forgotten why I needed it in the first place >.<

      • NarrativeBear@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        No worries, VMware or some of the other virtualization software’s should work in this case as most other comments pointed out. Probably the most simple and straight to the point.

        If you have the urge to tinker, another potential item or route you can look at is a proxmox machine. You can run multiple VMs in tandem at the same time. This would run on a standalone machine.

        You would then be able to remote desktop into any virtualized OS on your home network. You can use a software like parsec which I like to access each machine from a clean interface.

        • Tippon@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 months ago

          Thanks for the suggestions, but you might be misunderstanding me. I’ve already got Windows 10 and Mint installed on the same drive, and I was hoping to find a way to boot the existing Mint installation as a VM under Windows.

          There were Windows programs that could do something similar in the past, using VirtualBox, but it looks like the Linux distro needs to be on its own drive with its own boot partition for it to work.