cannot create /boot/grub/grub.cfg.new "directory nonexistent"

Talha

Well-Known Member
Jan 13, 2020
57
0
46
30
Hi,
My server won't boot due to a problem. When I do update-grub I get the following error. I entered every command in "Recover From Grub Failure"


1661449431517.png
 
you appear to have done a bind mount on /dev and /run, but not on /boot so there is not /boot.
Are you following a guide in your steps? If not - you should pick one.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
I entered the commands by looking at the page here https://pve.proxmox.com/wiki/Recover_From_Grub_Failure

Code:
sudo vgscan
sudo vgchange -ay
sudo mkdir /media/RESCUE
sudo mount /dev/pve/root /media/RESCUE/
sudo mount /dev/nvme0n1p2 /media/RESCUE/boot
sudo mount -t proc proc /media/RESCUE/proc
sudo mount -t sysfs sys /media/RESCUE/sys
sudo mount -o bind /dev /media/RESCUE/dev
sudo mount -o bind /run /media/RESCUE/run
 
Don't install GRUB on a partition like /dev/nvme0n1p2 (or /dev/sda2); use grub-install /dev/nvme0n1 and it will use the less than 1MB between the partition table and the partitions, as usual.