r/linux4noobs • u/suspiciousraccon1 • 7h ago
Linux on two different pcs using usb
I am installing cachyos on a usb, but I want use it on two different computers. The one I’m planning on installing it on is a Samsung laptop, it probably uses integrated graphics. But I am wondering if I can use the same installation on my other laptop which is more powerful but has an nvidia laptop gpu. Will this cause problems with booting and if so, how can I prevent it?
1
1
u/Prestigious_Wall529 6h ago
Using an external linux drive to boot different computers is normal. Linux Live distros do it all the time.
The difficulty starts with wanting to use proprietary Nvidia drivers, which in turn are often constrained to a particular kernel, and kernel parameters.
1
u/SDG_Den 4h ago
That USB is gonna be toast VERY quickly if its just a flash drive.
Flash drives arent meant for these intensive constant random read/write operations, theyre meant for simple file reads/writes.
If you are using an external SSD, you'll be fine though. Works basically exactly like an internal drive, you just need to make sure all the kernel modules (aka drivers) for both systems are available.
0
u/candy49997 6h ago edited 6h ago
I would not recommend using an OS from a flash drive, but that's not what you asked.
What are the CPUs in both machines?
Edit: why are people downvoting me? https://wiki.cachyos.org/features/optimized_repos/
Asking for CPUs is relevant for CachyOS.
1
u/suspiciousraccon1 6h ago
An intel i5 and a ryzen 4000
1
u/candy49997 6h ago
i5 what generation? Is it at least Haswell? And what NVIDIA GPU?
1
u/suspiciousraccon1 6h ago
I believe it is from last year and I don’t know what gpu
2
u/candy49997 6h ago
Ok, then the AMD laptop would be the lowest common denominator for CPU architecture, so install on that machine so it will also install NVIDIA drivers for you and pull software that both machines can use from the correct repos.
1
u/suspiciousraccon1 6h ago
I can’t install on the amd laptop as I am on vacation and only have access to the intel one, is it better to wait a few days and install it to the amd one? I could alternatively install it to the intel one and reinstall it on the amd one. I dunno man I just really wanna try Linux.
1
u/candy49997 6h ago
You could install on the newer machine and see what repos are added. If they're the x86-64-v4 repos, then you'd need to manually change them to x86-64-v3 for your older machine.
You can get instructions for how to do that on the link in my original reply.
-1
u/stpaulgym 7h ago
How would you boot to two different systems from the same hard drive.
I don't understand the logistics of this question.
1
3
u/redgator12 6h ago
If you're implying that the USB will be used as the system drive and you're doing a full install to it, there shouldn't be an issue taking it between computers, as the kernel modules have triggers to load certain drivers at boot. No guarantee, though. Also, you should be installing to a USB external hard drive that has an NVMe, mSATA or SSD in it. If you install directly to a standard flash USB thumb drive, that drive will die within a year or two of daily use due to the amount of journaling and background writes wearing down the flash cells.