I have 3 Linux-Distros installed on a SSD (Ubuntu, Parrot, Kali). There are all separated from each other, meaning they don't share a
/home
partition or anything like that. I also have no swap partitions.
I had this idea of a portable drive (in my case a SSD) containing a couple of distros that I could carry around and simply plug into any computer and start working from there. The grub used for this SSD is managed from Ubuntu.
Now the problem I have is that all the computers with whom I worked so fare also had other SSD's plugged into them as well. So the existing Grub entries were invalid every time I switched devices, because sometimes my SSD was mounted to /dev/sda/, sometimes to /dev/sdb/ etc. The only entry that was always working was of course the Ubuntu one. Additionally, most of the time when this happened I could still select on the other boot entries, but then I would be prompted to the initramfs rescue console, informing me that my memory was corrupt somwhow. I would then fix the issue by executing -y
and the I would be able to boot into the OS. Obviously my memory was neither corrupt nor would this fix the problem as it again wont let me boot into it using another device without doing that initramfs console thing.
My question now is, is it possible to create like "permanent" grub entries that work regardless on where the SSD is mounted on? For example using uuid's that - as far as I know - always should stay the same.
---
(I even tried to install a grub for each linux distro separately so I could go into boot-options and simply select the grub from each one. But despite of those EFI files existing on the EFI partition, my primary computer doesn't recognize them (except Ubuntu). However my second computer does. Maybe because the second one created them? I don't know and I am certain that there is a better solution to this than having n grubs installed at one place.)
Asked by Pascal Vallaster
(1 rep)
Apr 30, 2024, 05:19 PM
Last activity: May 8, 2024, 06:44 PM
Last activity: May 8, 2024, 06:44 PM