Basically. I have separate drive for my windowsOS/media etc. And one of my nvme drive now is completely empty.

Is there a way to install Linux onto that empty nvme with windows and then like turn the PC off remove my windows drive entirely, and then have it just boot with the linux drive without needing to do a whole bootable usb through the motherboard uefi?

I don’t have USB drives and they cost too much for something i never use.

Like if there was a linux installer that Ibcan run while logged in to windows that would be amazing…

  • Helix 🧬@feddit.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    22 minutes ago

    You can use a raw disk in VirtualBox. Just make sure you install an initrd and kernel which has drivers for all of your hardware. If you let something autodetect hardware, it will detect the virtual hardware, not the real one.

    • jlow@slrpnk.net
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      Wow, I did not know about this, very cool!

      I think you can also use Ventoy over the network (which I have never tried either).

  • fozid@lem.radiantfig.fyi
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 hours ago

    Yes there are lots of methods to do this. Format the disk to something like ext4, untar a distro to it, then with wsl chroot into the disk, finish installing and configuring everything, then reboot to the new disk. You will need specific time to do an this, but should be fairly straight forward.

    I essentially did exactly this for my current setup.

    There are other ways to.

    • degen@midwest.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      This feels wrong but I don’t know why. It just feels like it would break somewhere. I’ve never given a vm its own physical drive though.

  • confusedpuppy@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    4
    ·
    4 hours ago

    I make a partition on my main drive which I load any .iso on to it. Usually I keep a Linux Mint .iso there in case I need a basic set of tools outside of my main Operating System for when I mess up my main OS. I can load that .iso partition at boot through the BIOS menu.

    I’m sure you can do the same with an NVME drive. You may need to check the BIOS boot order to make sure you start your preferred OS when booting your system.

    • Eggymatrix@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      I used to do this too, I confirm this works and is a good idea, it is convenient especially if you plan to distrohop a bit or know you will reset a couple times to experiment a bit

  • someonesmall@lemmy.ml
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    2 hours ago

    You might have a MicroSD or SD cars lying around which you can use as a USB stick with a $1 reader e.g. from Aliexpress.