[bug #67134] Backup GTP table should be used when primary is corrupted
Alice <[email protected]> Sat, 17 May 2025 04:46:59 -0400 (EDT)
| Newsgroups | gmane.comp.boot-loaders.grub.bugs |
|---|---|
| Message-ID | <[email protected]> |
URL:
<https://savannah.gnu.org/bugs/?67134>
Summary: Backup GTP table should be used when primary is
corrupted
Group: GNU GRUB
Submitter: nonbin
Submitted: Sat 17 May 2025 08:46:50 AM GMT
Category: Disk & Partition
Severity: Major
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Release:
Reproducibility: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 17 May 2025 08:46:50 AM GMT By: Alice <nonbin>
I have NixOS with GRUB 2.12, I installed Windows on a separate partition,
which corrupted the main GPT table.
I was dumped to the grub shell (I don't think it was rescue mode) and "ls"
showed only hd0 with no partitions. I then booted a live USB to diagnose, and
running fdisk gave me the message: "The backup GPT table is corrupt, but the
primary appears OK, so that will be used." I copied the backup table and
everything went back to normal.
My suggestions for improving this type of issue:
- show a message explaining why we have fallen back to shell or rescue (in all
cases)
- boot using the backup table after a confirmation
- add a shell and rescue command to use the backup table
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67134>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaChNAwAKCRCqLAuaBUf3 Tjg7AQC/C+lG9m1XY5/3hQvmkzs/gNfXhpQMkoh3iWrOB0i6dwEAqpPlSwTGtPcG j/SugUOuNMlgYpfudkhWdCOVOBackAw= =amLM -----END PGP SIGNATURE-----