[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 16:32:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/3/19 4:18 PM, Sonnie Hook wrote:
> 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:
> /address@hidden/address@hidden/address@hidden/address@hidden/address@hidden/address@hidden,0
> And... still can't open boot device :(
The best would be to ask Eric Snowberg from Oracle for advise. He has the most
insight.
Adrian
> John Paul Adrian Glaubitz <address@hidden <mailto:address@hidden>>
> 于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 - address@hidden <mailto:address@hidden>
> `. `' Freie Universitaet Berlin - address@hidden <mailto:address@hidden>
> `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
>
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - address@hidden
`. `' Freie Universitaet Berlin - address@hidden
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913