grub-install problem

Bob ubuntu-qygzanxc at listemail.net
Fri Mar 8 23:59:59 UTC 2019


** Reply to message from Tom H <tomh0665 at gmail.com> on Sat, 9 Mar 2019 00:21:38
+0100

> On Fri, Mar 8, 2019 at 11:57 PM Bob <ubuntu-qygzanxc at listemail.net> wrote:
> >
> > I have two partitions with Ubuntu installed on my computer. SDA3 is
> > my normal system, SAD7 is a test system. Whenever I update the test
> > partition if grub is also updated I need to run "grub-install
> > --force" on my normal system, SDA3, to get it to be the defaupt boot
> > partition.
> >
> > Today after updating SDA7 it updated grub so SDA7 was the default
> > boot partition. I booted SDA3 and ran "grub-install --force" which
> > did not work see the following.
> >
> > robert at MARS:~$ grub-install --force
> > Installing for x86_64-efi platform.
> > grub-install: warning: disk does not exist, so falling back to partition device
> > /dev/sda1.
> > grub-install: warning: disk does not exist, so falling back to partition device
> > /dev/sda1.
> > grub-install: warning: disk does not exist, so falling back to partition device
> > /dev/sda1.
> > grub-install: error: disk `hostdisk//dev/sda1' not found.
> > robert at MARS:~$
> >
> > I then tried just "grub-install" which normally does nothing because
> > grub is at the latest level and got the same error messages. I do
> > not understand why grub is checking SDA1 because it is the EFI
> > partition. The bios_grub partition is SDA2.
> 
> 1) You're running "grub-install" as non-root

How stupid of me to forget something that basic.


> 2) Don't use "--force"

In the past I had to use --force because it would not rewrite grub without it.

-- 
Robert Blair


In my many years I have come to a conclusion that one useless man is a shame, two is a law firm and three or more is a congress. -- John Adams




More information about the ubuntu-users mailing list