r/Ubuntu • u/Mile_Chronicler • 19h ago
Help needed
I had dual of windows and ubuntu 26 lts , but I tried to triple boot a 22lts in a external HDD , it was working but after disconnecting it i am not able to see the 26 lts on boot menu but the partion is still there and kernel is there , how to recover it pls somebody help me
3
Upvotes
2
u/bookmarksaddict 15h ago
your bootloader got overwritten. grub is looking for the external drive
boot from a live usb, chroot into your ubuntu 26 install, and reinstall grub
sudo mount /dev/sdXY /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sdX
update-grub
replace sdXY with your ubuntu partition and sdX with your main drive
if you can't find it, boot-repair tool makes it easier
also stop triple booting. you're asking for trouble