Score:0

How to remove external disk

in flag

I first installed Ubuntu on an external drive to get familiar with it before moving it to the internal drive. So far so good but now that I moved Ubuntu on the internal drive, I cannot remove the external drive. Sounds like the EFI of the external drive is the one that is used instead of the one from the internal drive.

I tried to use boot-repair but boot-repair thinks I dont have an EFI partition on the internal drive. It is asking me to create one with the ESP and BOOT flag on. It is already there.

On the internal drive, I have Windows 10 and Ubuntu. They both runs properly and are accessed by GRUB.

How can I fix this?

David avatar
cn flag
If it was me I would re install without the external drive attached.
Guytas avatar
in flag
reinstall Ubuntu? And then what? copy back my disk image over this new installation?
kyodake avatar
ye flag
If the system works without the external disk connected. Disconnect the external hard drive. Reinstall Grub on Ubuntu, selecting the internal disk as the installation site.
oldfred avatar
cn flag
Check your fstab? It may have wrong UUID for ESP? Or check UEFI and partUUID of UEFI boot entry. `cat /etc/fstab` & `sudo efibootmgr -v` and `lsblk -f -o +PARTUUID` UEFI uses GUID aka partuuid
Guytas avatar
in flag
Thanks kyodake. But I did reinstalled Grub several time already.
Guytas avatar
in flag
@oldfred that sounds like a good idea. But I might not know enough to handle this completly by myself. I see that in fstab, there are several lines now with the UUID (some very long numbers, others only 2 groups of 4 digits)(this is since I ran boot-repair several times). Also, efibootmgr shows several entries that are no longer use.
oldfred avatar
cn flag
Post link to summary report as it runs all those commands as part of report. Just post link to pastebin site it gives.You can remove obsolete UEFI entries with efibootmgr. see `man efibootmgr` and -b XXXX -B parameters. https://askubuntu.com/questions/1198221/cloning-ssd-also-cloned-boot-options/1198228#1198228
Guytas avatar
in flag
I think this is what you requested:https://pastebin.com/acL2MzVQ
Guytas avatar
in flag
The UUID in the fstab was related to the external drive. I replaced it with the one from the internal drive. It made no difference. It's almost like if that file was not looked
Score:0
in flag

For information only... I finally ended up by re-installing Ubuntu on the local drive, while the external drive was unpluged. Now it is working.

I wish I could boot-repaired it. I started re-installing every software from scratch. At least now, it is working like a charm!

Nmath avatar
ng flag
The question should probably be closed since reinstalling Ubuntu is generally not a helpful answer. Glad to hear that the problem is resolved though.
Guytas avatar
in flag
You’re completely right Nmath. By « closing it » you mean delete? I can delete it but i get a message that i should not do that... i wish i had find better solution but...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.