Hi David,
David Lecompte <[email protected]> writes: > Hi Guix, > > I have a laptop with 2 disks, Guix is installed on the second one, using the > ESP on the first disk (this is how the 1.4.0 installer did it > automatically). > > I accidentally overwrote the ESP while installing a system on the first > disk, and now when I select Guix in the EFI menu, it can't start Guix. > > Is there a way to start my installed Guix and restore it to a state so that > I can boot from the EFI menu? There is a way, it involves running Guix command, you can either run it from being booted within a different distribution or from the installation iso. Basically you need to mount your disks under /mnt (or other location of your choosing) in the same way you have them normally, ie. / mounts to /mnt, /boot mounts to /mnt/boot... Then you reconfigure from within a chroot. See here for detailed instructions https://guix.gnu.org/manual/devel/en/html_node/Chrooting-into-an-existing-system.html If you really didn't want to use any of those options, but wanted to boot into the installed Guix, it could be possible as well, but would be harder to do. You would need a bootloader like Grub and boot manually from within it. You probably better collect the paths from /run/current-system. For the boot you would use commands like this ``` linux /var/guix/profiles/system/kernel/bzImage root=guix-root gnu.system=/var/guix/profiles/system gnu.load=/var/guix/profiles/system/boot modprobe.blacklist=usbmouse,usbkbd initrd /var/guix/profiles/system/initrd ``` You might have to get realpaths of the files, I am not sure these symlinks will work. You can do that from the other system you have installed. Specifically `realpath file-here` on those files. Rutherther
