install grub from rescue mode

use chroot

warning // lessons learned

we cannot just install grub from the rescue system, we need to install it from within the chrooted system. in case of slackware 15.0 it’s grub 2.06 and we need 2.12. therefore we had to build it within the chroot.

the trouble

while using gentoo admincd (grub 2.12!) against a slackware system w/o chroot

    grub-install: error: failed to get canonical path of `LiveOS_rootfs'.

building within chroot

see (grub-source](grub-source)

resources

https://www.system-rescue.org/disk-partitioning/Repairing-a-damaged-Grub/

https://unix.stackexchange.com/questions/96977/grub-probe-error-failed-to-get-canonical-path-of-cow

https://unix.stackexchange.com/questions/251670/arch-linux-errorfailed-to-get-canonical-path-of-airootfs-grub-to-usb-instal

http://unix.stackexchange.com/questions/414952/is-it-necessary-to-chroot-while-doing-grub-install-in-recovery-mode ==> use chroot


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun