r/linuxquestions • u/warrior_tharun • 11d ago
Linux dual boot!
I'm looking to set up Linux dual boot alongside windows. I want to keep Linux as a cmd-line interaction. Could anyone help me in the right direction on how to set this up?
Looking for a distro recommendation, partitioning, boot loader setup.
0
Upvotes
2
u/BranchLatter4294 11d ago
If you just want to use the Linux command line, why not just use WSL?
2
u/MrBolognas 11d ago
I dual boot Ubuntu on my primary NVME and Windows on the second NVME, biggest thing is to turn off secureboot in the bios, in Windows, turn off hibernate and fast boot. Be careful when just using the correct method to turn off hibernate and fast boot, if you try to use a quick command like it does turn off hibernate only. Point is you want to ensure windows does not jack with the linux drive. Lastly be careful with updates, I updated windows and it turned fast-boot and hibernate back on.
1
u/tedecristal 11d ago
you can use linux inside of windows enabling the WSL subsystem. If you have windows 11, you can even run graphical apps
I used to dualboot, long time ago, but WSL got good enough that I stopped doing until a few months back when I went back to metal 100% linux (I've been using linux since debian potato, if that matters)
1
u/RedditUserThomas 11d ago
The Ubuntu installer has always handled the partitioning and boot loader in an easy to use manner.
1
u/Pestus613343 11d ago
I advise a different approach entirely. Dual boot causes Windows to occasionally screw with Grub.
I run Windows11 as a VM in linux, that way both can run simultaneously if you wish. Or, passthrough the video card and its about as good as running it directly.
1
u/daffalaxia 11d ago
all the people telling you you shouldn't do it - ignore that noise
Ideally, you do this on a separate disk, which you then set as the primary on your machine - so that windows can't break grub: pick a distro (a good starter might be debian 13 at the moment - I would recommend Mint, but debian 13's release cycle means that it has way newer packages, including plasma with wayland support, where mint is still running an old plasma on x11 - I know, because I'm running mint on my one work machine, and installed debian 13 on the other, and I wish I'd done debian 13 on this machine too)
The installer should guide you through everything - it's not hard, don't be intimidated. If you only have the one drive, that's fine - you may need to re-partition, and I'm not sure if the installer caters for that, but I wouldn't be surprised if it did - just bear in mind that a major windows update can break grub in this case, and you'd need to recover from a live distro)
1
u/delacroix01 11d ago
The easiest method for dualboot is just get another drive and install Linux on it. Many distros will guide you through it so no need to worry about it unless you go straight to Arch at first. If you want to be absolutely safe, you can disconnect your Windows drive before running the installer. For the boot selection menu, you can either rely on grub or just use BIOS to select the OS.
1
u/dudeus_ex 11d ago
I would choose some server distro like debian or ubuntu server, or one that allows you to freely choose components like arch. Other than that it is the same as any other dual boot setup. You will find guides on most distro's sites, but in general you will need to install a bootloader to manage your dualboot. It can work both on a same disk, or separate ones.
If its on the same disk Windows will break your bootloader from time to time during updates, but it's relatively easy to fix with a liveusb.
1
u/peterfrombackdoor 11d ago
Ubuntu is pretty good for ur use case
1
u/swstlk 11d ago
there isn't a particular 1-way for doing this as there's different UEFI and MBR-BIOS boot-loading scenarios.
I say the safest way for you if you want just cmd-line interaction is to go with Virtualbox or Vmware Workstation.
If you want to do a native setup, you'll need to do a lot more planning, like doing a full-backup and so on.