* How to rescue guix system from failed grub install
@ 2019-07-11 2:17 ndre
0 siblings, 0 replies; only message in thread
From: ndre @ 2019-07-11 2:17 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]
Hello Guix and Freax!
Two days back I've upgraded my guix system using the common 'guix pull
&& guix reconfigure' routine and after rebooting I couldn't boot any
system generations. Grub was able to unlock and mount my cryptodisk
just fine, but after that when I did try to boot any generation, grub
would error out and show the following messages:
error: can't find command 'search'
error: can't find command 'linux'
error: can't find command 'initrd'
Press any key to continue...
Another issue that I noticed was that grub's resolution was lower than
before. Trying to insmod the missing commands gave out the following
errors:
linux - error: ELF header smaller than expected
initrd - error: file /boot/grub/i386-pc/initrd.mod not found
Moreover, some other commands such as lsmod were missing as well.
With the help of quiliro and nckx, I was able to rescue the system
using the grub from guix installer image and since I didn't find
instructions elsewhere, I'll document here what I did so others can
benefit.
1. Boot guix installer image;
2. Press 'c' to get to grub's command line;
3. type 'insmod luks'; # skip this and the next if disk is not
# encrypted
4. type 'cryptomount -a'; # should mount (crypto0)
# change crypto0 for hd1 if unencrypted
5. type 'configfile (crypto0)/boot/grub/grub.cfg'.
With the above I was able to boot the system and reconfigure it again
without issues this time. Since it worked the second time without a
new pull, it seems I may have a faulty untrustworthy hard disk and
the issue is probably not related to any bug/regressions.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 841 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-11 2:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-11 2:17 How to rescue guix system from failed grub install ndre
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.