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
Description: PGP signature