You are right. In the past few mails, the messages I pasted were all from
rescue mode until I re-installed the whole OS tonight.
Besides, after bind-mount those directories, those "Unknown device" errors
disappeared. Manual installation of GRUB succeeded.
`grub-ofpathname /dev/sda` output: /pci@8000/pci@4/pci@0/pci@0/scsi@0
/disk@w0,0
And... still can't open boot device :(

John Paul Adrian Glaubitz <[email protected]> 于2019年6月3日周一
下午9:47写道:

> 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 - [email protected]
> `. `'   Freie Universitaet Berlin - [email protected]
>   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to