Score:0

Reinstalling GRUB after moving partitions on drive

al flag

I was resizing my Linux (Ubuntu) partition from LiveCD (USB) with gparted, and so I had moved EFI partition too. Now my EFI partition name is dev/sda2, and file system partition name is dev/sda3, they are both on sda device. Gparted is printing the next info about EFI partition: Error message from gparted

After this I was trying to reinstall GRUB by this guide, but the first way makes no effect.

Also I tried the second way from this tutorial using boot-repair, but I get this errors:

  • Please enable a repository containing the [linux-generic] packages in the software sources of unknown Linux distribution (sda3). Then try again.
  • Please enable a repository containing the [grub-efi] packages in the software sources of unknown Linux distribution (sda3). Then try again.

The problem is I have no access to sda3 because I can't run my OS without GRUB.

Also I was trying to follow this guide, but after chroot command execution error is printed:
failed to run command '/bin/bash': no such file or directory.

I can't resolve any of these problems while trying reinstall GRUB, so I wish you can help me.

oldfred avatar
cn flag
From Ubuntu live installer you can try running dosfsck. `man dosfsck` and `sudo fsck.vfat -t -a /dev/sdXY` # where X is drive and Y is partition. Make sure you have only one ESP and make sure the /etc/fstab in your install has new UUID of your new ESP. And with Boot-Repair make sure Internet is working.
I sit in a Tesla and translated this thread with Ai:

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.