Elektrine lite

← Feed

@Jump365@lemmy.zip

2026-10-05 19:39 UTC

Noob: Can I install Linux on an empty nvme while in windows? Without needing a USB? 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…

Replies (15)

  • @cmnybo@discuss.tchncs.de 2026-10-05 19:48

    I’ve never tried it, but you can use UNetbootin to do that.

    Open ##4937259

  • @GonzoAtBarstow@lemmy.world 2026-10-05 20:00

    I installed from inside vmware before, with the linux drive mounted natively.

    Open ##4937420

  • 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.

    Open ##4937421

  • @elmicha@feddit.org 2026-10-05 20:18

    You could use netboot.xyz: netboot.xyz/docs/booting/uefi

    Open ##4937575

  • @someonesmall@lemmy.ml 2026-10-05 21:10

    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.

    Open ##4937878

  • @helix@feddit.org 2026-10-05 23:12

    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.

    Open ##4938425

  • @Crozekiel@lemmy.zip 2026-10-05 23:44

    This is a tricky question, mostly because you tagged it as “Noob”… It is technically possible, but it does require jumping through some hoops I would not normally recommend to a novice. Attempting through a VM is probably the safest option, but pointing a VM to an entire physical disk isn’t typically something I would recommend, but is likely much safer than doing live partition editing manually and on the fly.

    Open ##4938501

  • @Ephera@lemmy.ml 2026-10-06 01:30

    Just to point it out: Having a USB stick with a Linux ISO laying around can be a lifesaver. Even if you decide to go back to Windows or whatever. Because you can actually boot off of the USB stick into a practically fully functional OS, so without installing, and then access the files on the hard drive, in case your installed operating system bites the dust (so long as the hard drive and filesystem is intact). So yeah, might be worth the invest…

    Open ##4938978

  • @Kr4u7@discuss.tchncs.de 2026-10-06 03:54

    If you are not afraid of the command line, then there is dd for windlws which you can use to write an .iso file to any disk. Command usually is dd if=path\to\iso of=path\to\disk bs=4MB

    Open ##4939743

  • @hexagonwin@lemmy.today 2026-10-06 05:35

    i think i did this long time ago with WSL. there was some way to mount a physical disk’s filesystem.

    Open ##4940734

  • @Sina@beehaw.org 2026-10-06 06:00

    There are several ways, but they are all quite involved. Reading the comments Helix’s comment seems the easiest, given that VirtualBox can really use raw disks, which I have not heard of before. To this I wish to add, if this method works you don’t need to worry about drivers. The linux kernel has all the drivers you are likely to need & initrd is taken care of by all the distro installers, so you just need to directly install from the iso normally & not use an automated installers if VirtualBox has such options. I don’t have USB drives and they cost too much for something i never use. If you care about Linux it’s worth getting a usb drive, $4 gets you a usable drive in most parts of the world. (8GB is enough)

    Open ##4940796

  • You can write the linux iso to the NVMe, boot the NVMe, then write the linux install onto the same NVMe. This requires the linux iso load itself into RAM on boot, which is most of them, but not all.

    Open ##4941462

  • @yuman@programming.dev 2026-10-06 09:04

    yeah. create a 8gb partition on the new drive, format it as fat32. copy the ISO’s contents (not the ISO, its contents) to the 8gb partition. shut down when done. optional, disconnect the windows drive so you don’t fuck it up. power on, press whatever the key is for the boot menu for your UEFI. it should list the installer as a boot option. hit that. final step, equally important. when the GRUB menu appears, press “e” on the menu item and find the linux kernel switches (where it says “quiet splash” etc) and add toram (debian/ubuntu) or rd.live.ram (fedora). this will boot the image to ram. so when you start the installer you can select wipe & use whole disk. suerte!

    Open ##4941852

  • @TrollAccount69@lemmy.ml 2026-10-06 12:22

    github.com/rltvty2/ulli Never used that program before because I have usbs. You could also use wsl

    Open ##4943341

  • @CallMeAl@piefed.zip 2026-10-08 22:55

    I haven’t tried it but that’s what this says it does https://www.q4os.org/dqa014.html

    Open ##4960979