ovh / ovh/docs

Repair proxmox7 grub after apt upgrade

Open
#3,578 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
273
Forks
391
Avg merge
1m
Merged PRs (30d)
1

Description

I'm using the proxmox7 template on my dedicated server.
The first thing I did after install is apt update && apt upgrade, this resulted in an error with grub-pc unable to write on /dev/md

The support directed me to this guide, and it was helpful, but not quite enough. What worked for me was :

--- boot en mode rescue64-pro ----

root@rescue:~# mount /dev/md126 /mnt
root@rescue:~# mount /dev/md125 /mnt/boot
root@rescue:~# mount -o bind /proc /mnt/proc
root@rescue:~# mount -o bind /sys /mnt/sys
root@rescue:~# mount -o bind /dev /mnt/dev
root@rescue:~# chroot /mnt /bin/bash
root@rescue:/# mount /dev/sda1 /boot/efi
root@rescue:/# grub-install --efi-directory=/boot/efi/
root@rescue:/# umount /boot/efi     
root@rescue:/# mount /dev/sdb1 /boot/efi
root@rescue:/# grub-install --efi-directory=/boot/efi/
root@rescue:/# reboot

---- boot sur hd -----

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the existing guide referenced by support and compare it with the rescue64-pro and hard-drive recovery commands documented here. Confirm that the documentation explains recovery after an apt upgrade for proxmox7 systems using /dev/md and both EFI partitions; done means a reader can follow the guide without the missing steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
documentation, operating-systems
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.