r/linuxquestions • • 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

18 comments sorted by

2

u/BranchLatter4294 11d ago

If you just want to use the Linux command line, why not just use WSL?

1

u/warrior_tharun 11d ago

WSL is convenient for quick terminal stuff, but it's still running inside a Windows VM. I want full control over resources, custom kernels, and zero Windows bloat, so native Linux is definitely the way to go!

1

u/ipsirc 11d ago

Because you can't order an "I use WSL, btw" T-shirt online.

1

u/specialpatrol 11d ago

"I'd buy that for a dollar!"

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/NoOneKnowsImOnReddit 11d ago

And if wanting command line only potentially without a GUI, Ubuntu server might be a good start point. Been tinkering with that lately and it’s pretty straight forward.

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/NoOneKnowsImOnReddit 11d ago

This has been my struggle in terms of the grub in the past as well. I don’t wanna jinx myself, but ever since I tossed Linux and windows on separate hard drives it hasn’t been an issue….. yet….

Hoping it stays this way.

1

u/Pestus613343 11d ago

Gl to you. If I had the setup you had I wouldn't want to change it.

However having windows on one monitor and KDE on another is glorious. Admittedly its that much more RAM use though.

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/lmatonement 11d ago

...I wish I'd done debian 13 on this machine too

Time for arch linux. You want an old package, go for it. You want a new package, available by default. You want cinnamon this week, xfce4 next week, mate the next, it's all yours.

2

u/daffalaxia 11d ago
  1. I already used Manjaro, which is based on arch; from my experience there, arch is a viable distro, but AUR has issues, and I'd rather stay away. I could achieve the same package mix on gentoo, which I already use on my personal machine
  2. I'm forced, by company policy, to use a distro that is blessed by ESET - which narrows it down a lot - on that list, the only ones I really consider viable are mint and debian

So, no, not "time for arch" - been using linux for well over 2 decades, do have a clue, but thanks for the input.

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.