grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB failed to install on Fujitsu M10-4


From: John Paul Adrian Glaubitz
Subject: Re: GRUB failed to install on Fujitsu M10-4
Date: Mon, 3 Jun 2019 15:47:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 6/3/19 3:37 PM, Sonnie Hook wrote:
> When installing Debian SPARC 10.0(2019-05-24) on Fujitsu M10-4, everything
> seemed OK except that the GRUB installation reported an EFI warning.

Wait, you didn't say that there was an "EFI warning" when you posted this
to the debian-sparc mailing list. And there shouldn't be one as the machine
uses OpenFirmware plus GPT for the partitions tables.

I forced to install GRUB on /dev/sda, finally the installation finished without 
any error...but failed to boot with "Can't open boot device".
> 
> Then I re-installed the whole OS and before rebooting, I executed a shell and 
> tried to find the real OBP boot path. 
> # chroot /target grub-ofpathname /dev/sda
> grub-ofpathname: error: failed to get canonical path of `/sys/block/sda'.

You need to bind-mount /dev, /proc and /sys into the chroot before
that command works:

# mount -o bind /dev /target/dev
# mount -o bind /proc /target/proc
# mount -o bind /sys /target/sys

> It seemed that there was something wrong with GRUB installation , so I 
> manually executed:
> # chroot /target grub-install  --force-extra-removable --force "/dev/sda"
> Installing for sparc64-ieee1275 platform.
> /proc/devices: fopen failed: No such file or directory
> Unknown device "/dev/sda2": No such device
> Unknown device "/dev/sda1": No such device
> Unknown device "/dev/sda1": No such device
> Unknown device "/dev/sda2": No such device
> Unknown device "/dev/sda1": No such device
> Unknown device "/dev/sda2": No such device
> Unknown device "/dev/sda3": No such device
> Unknown device "/dev/sda2": No such device
> /proc/devices: fopen failed: No such file or directory
> Unknown device "/dev/sda2": No such device
> /proc/devices: fopen failed: No such file or directory
> Unknown device "/dev/sda2": No such device
> /proc/devices: fopen failed: No such file or directory
> Unknown device "/dev/sda2": No such device
> Installation finished. No error reported.

Those above error messages are also a result of the missing bind mounts.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - address@hidden
`. `'   Freie Universitaet Berlin - address@hidden
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



reply via email to

[Prev in Thread] Current Thread [Next in Thread]