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

Talha

Member
Jan 13, 2020
55
0
11
28
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!