Recover broken bootloader

202 views
Skip to first unread message

lok...@gmail.com

unread,
Oct 30, 2017, 11:23:39 PM10/30/17
to qubes-users
My laptop has started to fail to boot my 4.0rc2 installation. This started after doing a qubes-dom0-update, but I'm pretty sure that I had rebooted the machine successfully at least once since then.

The computer has now gone into a bootloop, and fails to display the GRUB screen. I can only assume that the bootloader is crashing. However, nothing is displayed on the screen.

Is there a recommended procedure to reinstall GRUB when booting from the installation media?

Regards,
Elias

Marek Marczykowski-Górecki

unread,
Oct 31, 2017, 5:28:48 PM10/31/17
to lok...@gmail.com, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Standard things should work:
1. Boot from installation media (rescue mode)
2. Agree to mount the system
3. Chroot into /mnt/sysimage (chroot /mnt/sysimage)
4. If /dev is empty, mount it with: mount -t devtmpfs none /dev
5. Execute: grub2-install /dev/sda (or other disk, depending on your
configuration)

Then, exit from chroot and reboot the system.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJZ9wv1AAoJENuP0xzK19csWWAH/j190OmGcCr9LcFy5kpm0pZH
vvfIGrSm8MsydbhnRv5tCuuhCmBpLD71siC5fxcI63E/bon1VDIZFd7Glc0I6Z9B
+Uvwi1pMtc+i38ixfa9UUDmhenjQ5zZRAxNQwvCDVsNxFZBiAdWvk1FdtSqKsEU9
SGKDxO81HgsL84JD0JzzCn4iCFBzcwTEJrnJHmrb+7KteevynFNMAGRIcoXXCNhH
cmuTB6QoRC5b5Kvx5NizKjUMfPehmfdik0FQVy1Mi3O9BwIgweNnUDEQ7mbjH6JR
seKuH2VYa/7DjgAv05nmjv8DjalDlhbimc5CkKlLwtac8NmFQUdeiM88no2lpaE=
=5yqg
-----END PGP SIGNATURE-----

barbud...@gmail.com

unread,
Nov 29, 2017, 8:46:24 PM11/29/17
to qubes-users
Was having a similar problem. I have boot installed in a separate usb and after following the process of chroot... grub2 install and rebooting it ask me for the passphrase and all end up with a grub> shell with the system not booting. There is a way to clone my boot usb to another usb or to build a new one? or better reinstall. Thanks guys.

barbud...@gmail.com

unread,
Nov 30, 2017, 5:39:30 PM11/30/17
to qubes-users

>
> Was having a similar problem. I have boot installed in a separate usb and after following the process of chroot... grub2 install and rebooting it ask me for the passphrase and all end up with a grub> shell with the system not booting. There is a way to clone my boot usb to another usb or to build a new one? or better reinstall. Thanks guys.

Solved, was able to clone the boot usb before it broke definitely using:
dd if=boot.img of=/dev/sd(letter new boot USB) conv=notrunc

been boot.img the image of the old usb stick where I installed the boot partition when I installed Qubes. Without the conv=notrunc it didn't work, just if someone face a similar problem. Like I said in the previous message the chroot - grub-install process didn't work for me, maybe because I use FDE and been the boot partition in a separate USB.

Reply all
Reply to author
Forward
0 new messages