The Linux mint installer has an option built-in to create a dualboot. Just follow their guide and be sure to select “install alongside windows 10” at step 5.
Linux
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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Following the guide as i write this :)
If the laptop supports dual drives (not unheard of but not the norm) it's way safer to dual boot from different physical drives.
Whatever OS you choose make sure they have a guide for dual-booting. Any Linux OS should be capable of dual-boot but not all will support that configuration equally.
As a failsafe I would also make a rescue USB, especially SystemRescue because of the findroot option.
I dual booted a machine and I had to even unplug my windows drive to get it to install a Linux distro on the other drive. Windows really does not like playing nice with dual boot systems so it is always best to keep Windows on its own drive.
I'd really like to not open up the device and mess with it, kinda need it for use soon, so i cant afford the time.
Also, i agree, but just disabling the ability to boot through windows should be enough for now, by the time I'd need more control, i can safely say the old files aren't needed, and can ditch the windows partition.
Make sure to disable Windows hybrid sleep. If your system isn't shutdown properly and you access the Windows partition from another system that can destroy data.
If you just want to keep the data on the Windows partition and usually don't need to run Windows, I'd remove the Windows drive and keep it somewhere safe, and get another SSD for Linux. That way, the two systems are completely separate and can do nothing to each other.
Swap is mostly a crutch for too little RAM, if the system doesn't have enough the best solution would be an upgrade. If that's not possible, consider zram-swap, or if you have to, swap to an SSD (that will reduce its lifespan, though maybe not in a relevant manner). If you swap to an old HDD you won't have much fun using the system.
Hybrid sleep was luckily already disabled, and the laptop has 8GB ram so it should be fine.
Hey OP, how did the installation went?
Swimmingly :)
The laptop is way faster and apparently installing clang is super simple, so developing on linux is expected to go smooth.
I'm going to go with what one of the commenters said and disable the windows booting option and install an NTFS reading program to reach the files in that partition.
I'm very glad i did this, it was planned for months and now I'm very excited :D
I'm really glad to hear that! Happy Linuxing :)
Had a linux moment yesterday, piped "clang --help" into grep to find something, it wasn't there but the piping itself was awesome.
Don't have anybody else to tell lol
Thanks for telling me lol. I remember sharing your enthusiasm when I started.
If you don't mind me sharing, here are some tools I use the most in the console:
- htop: resource monitoring and process killing. Mint has a GUI alternative
- btop: better resource monitoring, but worse process killing than htop.
- lazygit: amazing interface for git. Seems hard to get started, but IMO, not at all. There are GUI alternatived.
- tmux: multiple consoles and console manager. A bit hard to get started.
- nano: text editor. Reeaaaallly simple to use, prefer it over emacs and vi/vim.
- grep: you already know this one.
- cronjobs/crontab: allows you to run periodical commands. Say, a cleanup script all days at 7:08 AM.
Also, some GUI programs I love:
- KDE Connect: device pairing with your cellphone and PC. Includes remote mouse input, multimedia control and file sharing.
- Steam: Almost all the games I play on Steam run flawlessly on Linux.
- Stellarium: astronomy/planetary app.
Pick your poison lol. If you don't mind, we can start talking via ptivate message.
Saved for late :^)
If it isn't for professional reasons you absolutely can't avoid, I would switch wholesale. As a once famous song said "Freedom isn't free. It costs folks like you and me. Andif you don't put in your buck o five who will?"
It's not for professional reasons, it's all personal, plus studies, I'm not switching wholesale because i might need to access the old files (extremely unlikely, but I don't want to make decisions based on that), and the laptop has enough stirage for me to be happy with the partition i made, which is ~200GB
I can appreciate that. Especially if the files in question are of sentimental value.
I would suggest transferring your files to a new drive anyway because of bit rot.
Being the typical helpful (pushy and self-important) Linux user, I might add there is no reason you can´t transfer them to Linux 😜
I dual boot for two years, because I need a special software for work every couple of months. I mounted my old windows drive in Linux and soft linked it from my Linux home directory. So if I go to home > documents I see my new documents, plus there is a "documents archive" folder, that takes me to my windows drive with it's older documents. I added these soft links to my music, pictures as well. This works great.
I never experienced any problems with windows destroying my boot options. I'm not an expert, but managed to setup GRUP to instantly boot Linux (Mint). If I want windows, I need to push the boot menu key (F11) and actively select it. Otherwise I don't even notice it's even there.
A couple of days ago I setted up my pc with dual boot; I recommend to install Windows first and then install the distro you want with a swap partition of at least 16Gb and on the linux install options choose GRUB as bootloader
Thanks, a few questions, what is a swap partition, and why is it needed?
Also i have a ton of free storage so the linux install will probably have over 200gb in its partition
A swap partition is akin to the page file on Windows. The kernel will use it to move memory pages it doesn't anticipate using in the near future to it so it can use that RAM for other things. It will also use it in a pinch when there isn't enough RAM on the system. It isn't strictly necessary, but it can prevent programs from crashing at a huge performance penalty. It is necessary if you want to use sleep or hibernate or whatever it's called when it is powered off physically but resumes what you were doing instead of booting when you power it back on. That takes as much swap as you have RAM at minimum. If you want that, a good rule of thumb is 1.5 times physical RAM.
I have servers I administer for my job that have over 100GB of RAM with very little swap, like 4GB. The applications and machine are tuned and sized so the physical RAM is at ~85% and swap is barely used. The swap is mainly for non application stuff like IDS agent, backup agent, monitoring agent, etc.
If swap becomes a problem, you can adjust the kernel vm.swappiness parameter as needed. It might take some trial and error to get it right.
Source: I've been working with Linux professionally for almost 20 years now.
@BlackRoseAmongThorns @daisyKutter Swap is a place on disk that gets used as a slow, temporary place to put memory when your RAM is full. Windows uses a swap file on an existing partition, while Linux generally uses a dedicated partition instead (although you can use a swap file if you really want to).
Appropriate sizes for the swap partition are hotly debated. Twice the size of your RAM if you have a small amount, or the same size as your RAM if you have lots is a good approximation.
I did that once and it wasn't a nice experience. Windows will always find ways to screw things up and you'll constantly be dealing with their shitfuckery. Outside of gaming there aren't really many reasons to stick with Windows and even gaming works great except on titles where it is explicitly sabotaged by the publishers. If you're dealing with an older laptop, this likely isn't a consideration anyway. If you're unsure whether Linux is for you, my advice would be to install it in a VM first and see if it works for you. Chances are, you won't miss Windows at all.
These days with UEFI it's much less likely to break things. Worse case though you just boot from a LIVE USB boot, chroot in and rerun grub/your bootloader installer. Often even if windows puts its own bootloader first, you can choose your bootloader from the bios boot menu and just rerun the bootloader installer.
It used to be a lot worse.
Windows is the old OS i have a reason to keep, otherwise it would be all linux.
You probably know most of it so just some advice: Don't format the Partition table (MBR to GPT etc.) on the disk whose data you wish to keep.
Shrinking a partition or moving it carries a small risk of data loss and will take significantly longer than creating a new partition (since data needs to be cut and pasted from one area of the disk to another). If your old laptop has an empty slot for another SSD or NVME drive you can plug that in, and still dualboot and having the new drive Linux only.
Also to deal with the occasional Windows cockups, just carry a boot-repair USB, the auto repair has fixed the Windows issue for me 90% of the time (the other times are usually boot order priority or other BIOS setting)
I haven’t done this recently enough to guide you on the details, but step zero is to decide whether you are certain you want to dual boot or not. It adds a lot of complexity and brittleness that is best avoided if at all possible.
- Try to find Linux compatible replacements for the software you need.
- if that doesn’t exist, see if you can run it on Linux with wine.
- If that isn’t possible, consider running windows inside a virtual machine on Linux.
- If you do want honest, bare-metal windows then using two different physical drives will be easier and more reliable. Ideally your laptop has room for two drives, otherwise you can dangle a USB SSD (not a flash drive). Windows won’t install to a USB drive but Linux doesn’t care.
Yeah for anything except some games, wine/lutris or a virtual machine will work wonders. Not having to reboot is much nicer. You can also consider booting windows off a fast usb stick or usb ssd.
For me personally, having to reboot is part of why I like my dual boot. I have adhd, so it's good to keep gaming entirely separate from anything productive.
Thats a good point tbh. Nice brain hack
Now if only it kept me away from the Wikipedia rabbit hole haha
Something kinda funny, installing clang is extremely simple, and gcc was preinstalled, so i already got a C development environment on vs code :)
Maybe I'll try getting a different code editor, to simplify things even more, it'll take a while though, for now vs code should be fine
I'm going to use it for software development as im studying software engineering in uni, so probably not much else, and windows is the old OS of said device, so i just need to limit the windows partition and make a new linux one
Your best option by far is to overwrite windows completely. For most software development Linux is way better anyway.
My advice: Don't setup dual boot.
Instead, setup Virtualbox in your Linux instance, and install Windows in a VM. You'll have access to a windows "crutch", without having to leave Linux to use it.