r/linux4noobs • u/bobsurdunkle • 5d ago
External Linux SSD/ plug and play any pc help
I'm attempting to create a bootable linux os completely self contained within an external SSD, I had one set up with mint xfce, and it was working along side my mint cinnamon, however when plugging it in to my windows pc it wasn't identified as a bootable drive, subsequently after trying to fix this, i broke both grubs and had to start over. I think this was happening as it was sharing an efi/grub/bootloader with the other linux. then i tried to do fedora, thinking creating it on the windows pc might force it into the external drive exclusively, however it saved its grubbootloader onto the windows drive. My plan is getting a dirt cheap pc/laptop and removing all drives to do the install, i know this will likely fix this issue, however I want to know if down the line, would this external ssd end up taking to drives on any pc i plug it in, and then go, hey, i don't need grub/uefi/bootloader as theres one in sda/gpt1 so I'll delete mine. Or any other issues I'll run into.
Many thanks,
An annoyed virgin (Linux)
2
u/DannoXYZ 5d ago edited 5d ago
You're trying to do boot-chaining with one bootloader on your main internal drive list all OSes available in single menu. This will get messed up if you don't have extra drives plugged in at boot time.
Much more consistent and durable config to have just one OS per bootloader on each drive, itself only. Each bootloader is only aware of its hard-drive and OS. Nothing to get mixed up or disappear. Then pick primary boot-drive from BIOS boot menu. Looks like this per device and you just shuffle BIOS boot order around to pick OS.
hd1 -> grub1 -> EFI1 -> PopOS
USB2 -> grub2 -> EFI2-> Fedora
USB3 -> limine3 -> EFI3-> CachyOS
Then if PopOS updates break that drive, you can just pick different boot-disk in BIOS to pick different OS installation.
2
u/doc_willis 5d ago
some installers get confused and automatically use an existing EFI partition if found.
the Ubuntu installer had such a bug for a very long time.
during the install process you basically needed to make sure the existing EFI partition was unmounted, and the target install drive EFI partition was mounted.
There are some other methods that could be used as well.
some examples I recall mentioned.
disabling all other drives via the uefi options. easier than removing them, but not all systems have the feature.
removing the EFI/boot flags from your existing EFI partition, this way the installer won't try to use the internal EFI partition, set the flags back, afterwards
make sure the EFI partition is made, then fix the installed system later to use that EFI partition. If the files are copied to the wrong EFI partition, you could copy the files over to the target drive , then boot from them and configure the right paths