r/linuxquestions • u/Soli2XLC • 7d ago
planning my first linux dual boot setup, could use some advice
hey everyone,
i'm planning to switch to linux and build a dual boot setup with cachyos and artix linux. this will be my first time setting up something like this, so i'd like to get some advice before messing around with partitions and installations.
my hardware:
- cpu: intel core i5-8600k
- gpu: nvidia gtx 1070 8gb
- ram: 16gb ddr4 (2x8gb)
- storage: 1tb ssd
- monitor: 1080p 120hz
my current plan:
cachyos (600gb)
- kde plasma
- main operating system
- gaming and everyday use
- librewolf, kitty and other daily applications
artix linux (400gb)
- runit
- i3 / mangowm (still deciding)
- waybar
- kitty
- minimal and experimental setup
i'd like to keep both systems relatively clean and have some shared dotfiles for applications like kitty and zsh.
i also only have wifi available, no ethernet connection.
some things i'd like advice on:
- what's the best way to partition my 1tb ssd?
- should i use one shared efi partition for both systems?
- which filesystem would you recommend, ext4 or btrfs?
- is it better to install cachyos first and artix afterwards?
- are there any potential issues with sharing dotfiles between two different distributions?
- anything important i should know about nvidia drivers and i3 / mangowm?
i'm still learning about linux, so i'd appreciate any advice or things i should avoid doing.
thanks!
1
u/knuthf 7d ago
Keep windows, as it is. And say that you have 700Gb free after windows, make two partioned for Linux, both ext4 file systems. 100GB to "Root" and then the rest 600GB to "Home". Install Linux to Root, and own files to Home. Then when you have it all ip and going, copy the old user files from Windows, with the directory structure intact. Then use it.
1
u/oshunluvr 7d ago
what's the best way to partition my 1tb ssd?
should i use one shared efi partition for both systems?
which filesystem would you recommend, ext4 or btrfs?
is it better to install cachyos first and artix afterwards?
are there any potential issues with sharing dotfiles between two different distributions?
anything important i should know about nvidia drivers and i3 / mangowm?
1
u/Apprehensive-Cod699 7d ago
the part i'd look at first is the gtx 1070. nvidia dropped pascal after the 580 driver, and the current arch nvidia packages are the open modules which don't support it. cachyos's hardware detection should sort that out, but on artix you'll want the 580xx legacy driver by hand. one shared efi partition is fine, just make it like 2gb instead of 512mb, if cachyos goes with systemd-boot or limine its kernels sit on that partition
1
u/_Lost-In-The-Weeds_ 7d ago
It is common practice to have a separate /home partition. And when multi booting Linux some people then do what seems logical on the surface, mount that separate /home partition in multiple distributions so they have access to their data no mater what they boot.
But /home is not just your personal files, its also your personalized config, and a config for one distribution is not always valid in another. This can cause hard to troubleshoot issues.
I would not mount the same /home partition in multiple distributions.
I multi boot, in my setup each / includes /home on the same partition/dataset and has independent .config
But I too want access to my data no mater what I boot, so I store my data on independent plain data partitions, both local to my machine and on my file server mounted under /mnt/PoolName/DatasetName and then softlinked in ~/ on each install, it apears like my data is in each install and its smooth to access everything, but I get fine grained control between what is actually part of each independent install vs what is shared between them.
i3 is stable and generally vanilla in most distributions so if anything might go smoothly i3 would be it, but as a general rule it is best to still have redundant configuration for each distribution in a multi boot setup, so manually copy your i3 config into each independently.
1
u/East-Yogurtcloset272 7d ago
I'd give your cachy more space if AntiX is experimental. Games gobble disk. No more than 100gb max total.
I personally prefer my initramfs and Linux kernels in the root filesystem and not in the esp./EFI Makes backing up easier I use refind for my bootloader but the ext4 driver fails to mount the root fs so I use the core ext4 driver as a workaround.
Either way an esp / EFI size of 500mb is more than ample. I personally prefer 100mb
I'd use cachy as your bootloader install and configure os. Leave AntiX as the slave
1
u/mredding 7d ago
Multi-booting is common, but it wasn't my favorite; it's frustrating having to reboot to jump from one environment to the next. I recommend you install either Hyper-V or Virtual Box on your Windows install and host client operating systems therein. You can get MUCH more familiar with your host environments before you make a larger leap to native hosting. I'll talk about that again in a moment...
Your Intel Core i5-8600k does support the VT-x and VT-d/IOMMU instructions sets for hosting type 1 (bare metal) and type 2 (hosted) hypervisors, so boot into your BIOS and make sure those instruction sets are enabled - if they have to be enabled explicitly.
From there, you can stand up, play around in, and tear down these environments however you see fit. I would recommend a minimal install of a Linux OS to begin with; you can always scale a VM up in terms of CPU core count, memory, disk space, and ethernet devices. You can scale them often without having to reboot the VM.
I use Windows hosted VMs at work, and I've used both Virtual Box and Hyper-V, and they carry my compile and test workloads just fine. A type 2 hypervisor is going to cost you an average of 10-30% overall performance - while CPU and memory overhead approaches insignificant, disk and graphics overhead becomes significant. Disk overhead is made up for because you're on an SSD with inherently high IOPS. GPU overhead can render gaming impractical - I don't use my work type 2 hypervisor for this, so I can't really say.
What you SHOULD do is use AI to assist you to tune both your host and your VMs, it's very good for that if you are interactive with it. I often just use Google AI. The more context you give it about what you're running, the better it can do. Be specific about software names and version numbers. Run commands and give it the output - I've even passed it screenshots when I couldn't copy/paste text. Work with it as though it were your partner and advisor. You can also ask it questions and advice.
The biggest thing to consider is that your VMs entire filesystem will exist as a file on the host filesystem; Since you have an ssd, you want the AI to know this and ask it to help you minimize unnecessary writing as much as possible. You DON'T need disk journaling, for example, because that's going to be performed by the host filesystem. You should ask about vm.swappiness and setting that to a low value, keeping more memory IN memory, and using swap space when necessary.
Benchmark and feed it back to the AI.
If you find the overhead is killing you, if you want to game and the graphics just ain't cutting it, THEN go to multi-boot, as it's just about your only other option. This would be a reason to, as it will grant exclusive control over the graphics hardware for that. You will still want to consult with the AI to assist you in tuning this system.
Another step you could take is run one Linux as your principle OS, and you can run a type 2 hypervisor on that instead. Just replace Windows with CatchyOS, for example. You can then host Windows as a VM if you really wanted to (google how to pass SLIC or MSDM to the VM so it picks up the OEM license; Windows 10/11 run unlicensed, but with restrictions). Your secondary Linux would also be a VM, etc. KVM and QEMU are two popular choices. QEMU can straight-up emulate other CPU architectures, if you ever wanted to run some historic computing locally.
I've got something else for you to consider - hosting a single home directory for your various Linux distros is possible, but not recommended. The biggest problem are the various config files - they tend to be OS specific, and don't play well across different environments.
INSTEAD, you could mount a common data partition in your different environments - mounted to
/home/me/share. With a type 2 hypervisor, you can mount one folder across multiple VMs. Reading is free, but writing comes with lock contention and a performance penalty. If this is going to be a performance problem (measure first), then you'll want to instead mount a shared drive via SMB/NFS, so that the share service can queue the reads and writes and handle the contention.And if you want to GET SPICY AND WEIRD, you can use either MergerFS or OverlayFS to blend your local home directory with an NFS share. In this way, you have local configs, global common data, and you don't have to think about the difference in your environment. You will need to specify rules as to what files go where - locally or remotely; something like an SQL engine lock file does not play well with NFS, changes to your local config stay local, etc.
And you can set all this up on Windows with Virtual Box, and you can fuck it all up, and you and try again, and you can do it without excessive rebooting or instability of the host. You have an entire homelab in your laptop if you want it.
A type 1 hypervisor will cost you 5-10% performance overhead, but you're not in a position to run one since you're WiFi only, and type 1 hypervisors don't bridge WiFi networks to their VMs; that's the biggest no-go with this one. I run Proxmox on my workstation, and it allows me to assign exclusive control of hardware to VMs, which is something very limited in a type 2 hypervisor. So I run a desktop with exclusive access to the GPU, several CPU cores, and an entire USB bus, and the hypervisor really just sits around it. That means full hardware performance with no overhead, but that also means there's no sharing of that hardware with other VMs.
You could always host Proxmox in your type 2 hypervisor, though... Sure, nesting is going to eat away at performance, but if you're homelabing it, the point is to run experiment itself, and play with Proxmox without having dedicated hardware for it.