this post was submitted on 29 Feb 2024
55 points (82.4% liked)

Linux

48074 readers
792 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have a Lenovo Yoga running Windows 10 on a 1TB SSD and at some point will probably have to upgrade it to Windows 11. I use it for school and have to keep Windows on it for now because of what I'm currently doing. I want to start getting into Linux in hopes of making the switch sometime down the line. Is partitioning the disk and dual booting Windows/Linux a thing and is it possible/easy to do? If so, what distro would anyone recommend? (I've heard good things about Mint). Back in the day I had gotten bored one night, installed Ubuntu on an external drive and played around with it a very tiny bit before forgetting about it, but that's the extent of my Linux knowledge, so kindly keep explanations ELI5 :)

Edit: Thank you everyone! You've given me lots of good advice and knowledge, some terms to Google, and some good places to start. I appreciate it! Looking forward to joining the wonderful world of Linux!

all 50 comments
sorted by: hot top controversial new old
[–] [email protected] 22 points 8 months ago (2 children)

Duel booting has been a thing for as I have been using Linux, say 2004ish, and it has only gotten easier over the last 20 years.

Some things to watch out for though. First, make sure that you have sufficient free space on your drive before beginning, and make sure that you have backups in case something goes sideways. Good practice anyways.

Second, Windows likes to hijack the bootloader making it difficult to boot into Linux. I would make sure that Windows is installed first and have a live linux disk/jumpdrive available in case Windows decides to hijack the boot loader at a later date. That has only happened to me once, and wasn't difficult to fix, but it was a pain in the butt.

As for which distro, dealer's choice. I don't think that there is a bad distro out there currently. Currently, I'm using NixOS but I think highly of Ubuntu, Fedora and all of their derivatives. Really, it's whatever boats your float.

[–] [email protected] 16 points 8 months ago (1 children)

Important note: Shrink the Windows partition from within Windows!

When I did it in Linux Mint during install, Windows did not recognize those changes and thought its partition is still as big as it used to. Then soon I was hit with "Repairing drive C:" which screwed up the Linux Mint install (not the bootloader).

[–] [email protected] 1 points 8 months ago

it's probably caused by fast shutdown

[–] [email protected] 20 points 8 months ago

Brother, I've been dual-booting Windows and Linux since 2001. Of course you can do it.

Make sure you install windows FIRST. And then, Linux. Because each OS has its own bootloader and Windows doesn't recognize Linux, but Linux recognizes Windows.

[–] [email protected] 14 points 8 months ago* (last edited 8 months ago) (1 children)

Honestly, I always HATED dual-booting off one drive. It's infuriating and Windows can and will fuck your boot loader. I always found it so much easier to just have two disks and select which one I wanted to boot from the quick-post boot menu, or hopefully have a grub that matches the windows drive. That way both disks stay agnostic of the boot partitions and partition types. When I was a runt in college I had a laptop with a drive tray back when those were a thing. Now I just run Windows in QEMU on my laptops.

[–] [email protected] 2 points 8 months ago (1 children)

Yep. Get a second drive for Windows. Far much less a hassle.

[–] [email protected] 2 points 8 months ago

Even with separate drives, the Windows 8 -> Windows 10 update wiped all the GPT drives in my system

[–] [email protected] 13 points 8 months ago

I'm going to go against the grain a bit and suggest trying Linux in a virtual machine instead of dual booting.

In case you haven't heard of them, virtual machines are like a computer inside your computer. You can set up as many as you like, as long as you have the space, and if they go wrong, they won't affect the rest of your computer. You can set them up to share a folder with Windows for accessing your files.

The reason I'm suggesting a virtual machine is because you use your computer for school. Linux is very user friendly these days, and pretty easy to set up, but this seems to be something that you're new to, so you won't know how to fix any problems that come up.

If you've got school work due and something goes wrong, you don't want to be fixing the computer instead of doing your work.

Once you've got some experience, then look at dual booting.

P.S. Mint is a great choice :)

[–] [email protected] 9 points 8 months ago

A dual boot system is not a big problem as long as you boot in EFI mode and use GPT partitions. I have been running a dual boot system (Windows 10 and Arch Linux) for years without any problems.

You should allocate around 500 MB for the EFI partition. This allows you to install Windows and a Linux distribution and still have reserves if you want to install additional Linux kernels, for example.

If you want to change partitions, first make a data backup on another data medium. Because something can always go wrong. Even if it's just a power failure.

[–] [email protected] 6 points 8 months ago (1 children)

I do this every day and the only problems I have is that it throws off Windows' system clock (requiring a manual re-sync) and I have to re-pair my bluetooth headphones every time

[–] [email protected] 8 points 8 months ago* (last edited 8 months ago) (1 children)
[–] [email protected] 3 points 8 months ago

Nice to know about the clock fix, I'll give that a try. I've actually done the bluetooth pairing method before but the problem is it's a pretty fragile fix - sometimes it just stops working and then I've got to go through the whole process again. Easier to just re-pair whenever I switch OSes

[–] [email protected] 6 points 8 months ago* (last edited 8 months ago) (1 children)

Yes, it's super easy to do as well. Most distro installers give you the option to automatically install for dual-boot without any manual partitioning.

Definitely try Mint, I was on it for years and it is very thoughtfully designed for stability and ease if use.

The hardest part will be getting the liveUSB made for the Linux ISO. You can find some simple tools like Balena Etcher that make it easy though.

[–] [email protected] 3 points 8 months ago (2 children)

I tried this with Mint and broke my Windows partition somehow.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

That's a bummer, sorry man. That is super rare though, I've never heard of that happening to anyone else in my 10+ years of Linux life. Don't let it keep you from trying it again. I guess that is a testimony to the importance of backups, especially when working with partitions.

OP, the most trouble I've ever heard of or experienced myself was some GRUB issues, which are just a matter of the bootloader recognizing that there is a windows or Linux partition alongside whatever is being booted up. There are a ton of tutorials on how to address that type of issue though, it's usually a matter of one or two commands in a terminal or command prompt.

[–] [email protected] 1 points 8 months ago

Same here. It somehow broke my BIOS and I couldn't even force it to boot off my windows install flash drive!

[–] [email protected] 5 points 8 months ago (3 children)

5 years ago I would've said dual booting is a great answer. Now days it is much simpler to run Windows in a Linux VM. You can install Gnome boxes or Virtual manager and then create a VM. (No Virtual box for performance reasons)

Keep in mind you will need to install the virtio drivers from the Fedora project for best performance and guest features like screen resizing and copy and paste.

[–] [email protected] 14 points 8 months ago (1 children)

Thats a good solution only if you:

  1. Don't use BS software that refuses to run in a VM.
  2. Don't need proper graphical acceleration.

Depending on what OP need on windows this could be a problem.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

From a graphics perspective it runs pretty smooth once you install the virtio drivers. Unless your trying to play games you are fine. As far as software that doesn't work in a VM that is a fairly limited edge case. Maybe test taking software won't work but that's pretty obscure.

Maybe someone somewhere has a edge case for for most people Linux is fine by itself and for the few people who need legacy software a Windows VM is also fine.

[–] [email protected] 2 points 8 months ago (1 children)

For most things Windows on a VM under Linux is unironically faster than native Windows.

I have an edge case that works better on bare metal and I fucking hate how Linux messes with the system clock every time.

[–] [email protected] 1 points 8 months ago

You can configure it not to

[–] [email protected] 1 points 8 months ago (1 children)

I really like Gnome Boxes but they're no 3d acceleration for Windows installs yet, right?

[–] [email protected] 2 points 8 months ago

Boxes and virtual manager are frontends for libvirtd. With that being said, boxes is way more limited as it tried to work with little hassle. Boxes VMs run as the user so networking options are limited. For 3D acceleration you need to manually edit the config file. Just running windows with the virtio drivers in boxes works fine for me.

Long story short, if you want more advanced features like vfio and custom VM configurations use the command line or virtual manager.

[–] [email protected] 5 points 8 months ago (1 children)

It's very easy if Windows was there first. If you install it after Linux, they'll hijack the bootloader and you have to restore it before you can boot back into Linux. If Windows is already installed, Linux will install a custom grub (bootloader front-end) allowing you to choose which OS to boot by default, or to choose on each boot.

I'd suggest to update from Win 10 to 11 before you install Linux, you never know what the update does.

As for the Linux flavor, my favorite is Xubuntu, a very lightweight variant of Ubuntu using the xfce window manager, which is lightning fast. I've tried many, many variants and stuck with it for performance and stability.

[–] [email protected] 3 points 8 months ago

Whichever order you install the OSes in, they will all fight over who gets to boot first. Multiple installs of Ubuntu will even fight with each other. It’s manageable, but annoying.

[–] [email protected] 4 points 8 months ago

Dualbooting is possible and easy: just gotta shrink the Windows partition and install Linux next to it. Make sure to not format the whole thing by mistake, though. A lot of Linux installers want to format the disk by default, so you have to pick manual mode and make sure to shrink (not delete and re-create!) the windows partition.

As for its usefulness, however... Switching the OS is incredibly annoying. Every time you want to do that you have to shut down the system completely and boot it back up. That means you have to stop everything you're doing, save all the progress, and then try to get back to speed 2 minutes later. After a while the constant rebooting gets really old.

Furthermore, Linux a completely different system that shares only some surface level things with Windows. Switching to it basically means re-learning how to use a computer almost from scratch, which is, also, incredibly frustrating.

The two things combined very quickly turn into a temptation to just keep using the more familiar system. (Been there, done that.)

I think I'll have to agree with people who propose Virtual Machines as a solution.

Running Linux in a VM on Windows would let you play around with it, tinker a little and see what software is and isn't available on it. From there you'll be able to decide if you're even willing to dedicate more time and effort to learning it.

If you decide to continue, you can dual boot Windows and Linux. But not to be able to switch between the two, but to be able to back out of the experiment.

Instead, the roles of the OSes could be reversed: a second copy of Windows could be install in a VM, which, in turn, would run on Linux.

That way, you'd still have a way to run some more picky Windows software (that is, software that refuses to work in Wine) without actually booting into Windows.

This approach would maximize exposure to Linux, while still allowing to back out of the experiment at any moment.

[–] [email protected] 3 points 8 months ago

Yep, I dual boot on my laptop so that I can run certain programs for my schoolwork as well. I use Refind as my boot manager so that I can easily select one or the other on startup.

[–] [email protected] 3 points 8 months ago

To add to what others have said, I'd recommend installing Windows first, then Linux. Windows tends to assume it's the only OS that exists, so if there's anything else on the boot sector (eg. your fresh new Linux install), it'll just overwrite it without even checking lol.

[–] [email protected] 3 points 8 months ago (2 children)

First if all, welcome to Linux. I also found it in my high school/college years and am so glad I did. Things will be weird. I remember thinking "what kind of Fisher Price OS is this?" because Ubuntu was so simple looking back then and I was used to the unnecessary clutter of Windows. There is so much to explore, but I think you are on a good path with Mint. I have also run Mint for a few years and love some of the things it does.

A helpful note: If you plan on sharing files between the two OSes, be aware that Windows won't typically access a Linux file system like ext4 or btrfs and Linux can handle NTFS (windows) in a lot of cases, but if you have bitlocker running you may have additional hurdles.

I highly recommend getting a big external drive ans backing up regularly (like at least once a week). At some point you will screw up and be glad you did it. I only overwrote a disk partition on accident once, and I recovered the data, but I also learned my lesson the hard way. Don't be like me!

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

All the more reason to put your windows personal folder and /home folders on a separate partition. Windows IIRC doesn’t enforce you storing applications in a particular location, so just make your OS install small (you can resize it later).

[–] [email protected] 1 points 8 months ago

Thanks! I've been interested in Linux for awhile now. I don't plan on sharing files between the two OSes, and I'm religious about my backups. If I don't have at least 3 or 4 backups I don't consider my data backed up :)

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago)

Dual boot exists for a long time. You just have to make sure your drive is partitioned with the GPT table and not the MBR one

[–] [email protected] 2 points 8 months ago

I agree with the others that testing in a VM (Virtual Machine) first is probably a good idea. Keep in mind that because of missing 3D acceleration inside a VM things like desktop animations might not work.

As for distros, I'd recommend Mint or Fedora. I personally use Fedora.

What's also important is the desktop environment you choose. The most popular ones are GNOME and KDE Plasma. GNOME is closer to MacOS than Windows and is made to just work while KDE Plasma has a layout similar to Windows out of the box but is very customizable and has a lot of options. Ubuntu uses GNOME but they make quite a few changes to it. Fedora uses GNOME by default but there's also a KDE Plasma version, I think. Mint doesn't have these 2 by default, you can always install them if you want to afterwards tho. The 3 options Mint gives you are also more Windows-like but I haven't tried them myself, so I can't tell you much about them. A VM would give you the ability to just install them, try them out and delete them afterwards. I personally use GNOME btw.

[–] [email protected] 2 points 8 months ago (1 children)

dual booting

Where did you learn this phrase?

[–] [email protected] 2 points 8 months ago (1 children)

I have no idea. I've known it for years. All my computer knowledge is self taught so random things I'm fairly knowledgeable on and then there's things that are common knowledge I've never heard of. I'm doing my best out here! I was a sheltered kid who grew up into an adult that doesn't know anyone tech savvy!

[–] [email protected] 2 points 8 months ago

I did something slightly different. I dual boot windows and linux. But each one is on a different hard drive. I have two SSDs that each one is dedicated to. Makes things easier.

[–] [email protected] 1 points 8 months ago
[–] [email protected] -3 points 8 months ago (1 children)

It is very difficult for a person who is too lazy to google for an answer. I don't recommend.

[–] [email protected] 1 points 8 months ago

I did google it, and found a bunch of articles about dual booting with windows 7. I didn't know if it was still possible or if it would be smart to try for someone with no experience with Linux, so I thought I'd come to a sub where there are tons of people who use Linux daily and could give me some advice about whether I should try it or not. Thanks for the input :)