[SOLVED] HELP fixing boot

Exio

Member
Mar 30, 2022
52
7
13
Hi,

i followed this comment https://forum.proxmox.com/threads/p...gh-cannot-change-initramfs.126627/post-631013 to fix my GPU passthrough, the lasts steps of "proxmox-boot-tool" not worked for me and now my PVE (8) is not booting.

The commands i have followed was this ones:

:~# proxmox-boot-tool status

To check which partition is /boot with vfat format:

:~# lsblk -o +FSTYPE

To initialize ESP sync first unmount boot partition:

:~# umount /boot/efi

Then link the vfat partiton with proxmox-boot-tool:

:~# proxmox-boot-tool init /dev/XXXXXXXX where XXXXXXXX is the name of vfat partiton from lsblk +FSYSTEM

Then:

:~# mount -a

Then to update modules:

:~# update-initramfs -u -k all

1731228297864.png

I think is obvious that i have changed the boot configuration, my fault, but, how can i fix it?

A curious thing is that if I uninstall the graphics card, I have an image, but if I leave it on, no screen appears, no grub, no bios, etc.

I need to test the graphic card asap so i will be glad if someone could help me as fast as possible. Thanks in advance.

EDIT 1: Googling, i have this new information, in case it will be helpful:
1731233988681.png

SOLUTION: https://forum.proxmox.com/threads/help-fixing-boot.157203/post-719905
 
Last edited:
Im able to use the “rescue boot” option from a PVE 8.2 live USB and fully use the console of my PVE server, i just need to know the commands to fix the boot, to fix it and to not use the live USB…
 
Im able to use the “rescue boot” option from a PVE 8.2 live USB and fully use the console of my PVE server, i just need to know the commands to fix the boot, to fix it and to not use the live USB…
It's not really clear to me what you changed that might have broken the boot. Since you can login to your Proxmox host (using the rescue boot) maybe undo your changes and run update-initramfs -u (which also runs proxmox-boot-tool refresh) again?
 
It's not really clear to me what you changed that might have broken the boot. Since you can login to your Proxmox host (using the rescue boot) maybe undo your changes and run update-initramfs -u (which also runs proxmox-boot-tool refresh) again?
First of all thanks so much for your reply, I'm a little desperate with the subject.

Im not able to unde the changes just because i dont know how it was before the change i did, when i ran this command "proxmox-boot-tool init /dev/XXXXXXXX where XXXXXXXX is the name of vfat partiton from lsblk +FSYSTEM" (and the following ones) the vfat partition was /dev/sda2 so i ran proxmox-boot-tool init /dev/sda2. As i said, i dont know what was there before the change. I have looked for some info of what is the default thing in here but i have found nothing.

The command update-initramfs -u throws me this:

Code:
root@proxmox:~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.8.12-3-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No root= parameter in /etc/kernel/cmdline found!
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1

The proxmox-boot-tool refresh command throws me this:

Code:
root@proxmox:~# proxmox-boot-tool refresh
Running hook script 'proxmox-auto-removal'..
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No root= parameter in /etc/kernel/cmdline found!
root@proxmox:~#


/etc/kernel/cmdline just contains this:

1731401839829.png

Thanks again.
 
Last edited:
/etc/kernel/cmdline just contains this:

View attachment 77559
That's wrong and it looks like you replace the line that was there instead of adding to it. This explains your boot problems and the error messages from proxmox-boot-tool.
I don't know what that line looked like before. If you installed Proxmox on ZFS then it should be something like root=ZFS=rpool/ROOT/pve-1 boot=zfs .
Do you have a backup of that file? Maybe someone else here knows what it should look like with LVM/ext4?
 
Last edited:
That's wrong and it looks like you replace the line that was there instead of adding to it. This explains your boot problems and the error messages from proxmox-boot-tool.
I don't know what that line looked like before. If you installed Proxmox on ZFS then it should be something like root=ZFS=rpool/ROOT/pve-1 boot=zfs .
Do you have a backup of that file? Maybe someone else here knows what it should look like with LVM/ext4?
Maybe i am in LVM/ext4?

Code:
root@proxmox:~# df -PHT
Filesystem              Type      Size  Used Avail Use% Mounted on
udev                    devtmpfs   34G     0   34G   0% /dev
tmpfs                   tmpfs     6.8G   13M  6.8G   1% /run
/dev/mapper/pve-root    ext4      590G  106G  454G  19% /
tmpfs                   tmpfs      34G   48M   34G   1% /dev/shm
tmpfs                   tmpfs     5.3M     0  5.3M   0% /run/lock
/dev/nvme0n1p1          ext4      492G  204G  263G  44% /mnt/pve/NVME-M2
/dev/mapper/pve-backups ext4       18G   25k   17G   1% /var/lib/pve-backups
/dev/fuse               fuse      135M   37k  135M   1% /etc/pve
tmpfs                   tmpfs     6.8G     0  6.8G   0% /run/user/0
root@proxmox:~#

I dont have any backup of that file... i dont even know if it did ever exists before
It's also possible that the file was not there before your changes. Try deleting it: rm /etc/kernel/cmdline.
Ok, i will try it too

EDIT: I have to be on LVM/ext4 update-iniramfs -u keeps throwing the same output

EDIT 2: Seems like deleting the file works:

Code:
root@proxmox:~# rm /etc/kernel/cmdline
root@proxmox:~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.8.12-3-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/4B60-3E92
        Copying kernel 6.5.13-6-pve
        Copying kernel 6.8.12-2-pve
        Copying kernel 6.8.12-3-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.12-3-pve
Found initrd image: /boot/initrd.img-6.8.12-3-pve
Found linux image: /boot/vmlinuz-6.8.12-2-pve
Found initrd image: /boot/initrd.img-6.8.12-2-pve
Found linux image: /boot/vmlinuz-6.5.13-6-pve
Found initrd image: /boot/initrd.img-6.5.13-6-pve
done
root@proxmox:~#

I will reboot without USB live CD and comment the result
 
Last edited:
Maybe i am in LVM/ext4?

Code:
root@proxmox:~# df -PHT
Filesystem              Type      Size  Used Avail Use% Mounted on
udev                    devtmpfs   34G     0   34G   0% /dev
tmpfs                   tmpfs     6.8G   13M  6.8G   1% /run
/dev/mapper/pve-root    ext4      590G  106G  454G  19% /
tmpfs                   tmpfs      34G   48M   34G   1% /dev/shm
tmpfs                   tmpfs     5.3M     0  5.3M   0% /run/lock
/dev/nvme0n1p1          ext4      492G  204G  263G  44% /mnt/pve/NVME-M2
/dev/mapper/pve-backups ext4       18G   25k   17G   1% /var/lib/pve-backups
/dev/fuse               fuse      135M   37k  135M   1% /etc/pve
tmpfs                   tmpfs     6.8G     0  6.8G   0% /run/user/0
root@proxmox:~#

I dont have any backup of that file... i dont even know if it did ever exists before

Ok, i will try it too

EDIT: I have to be on LVM/ext4 update-iniramfs -u keeps throwing the same output

EDIT 2: Seems like deleting the file works:

Code:
root@proxmox:~# rm /etc/kernel/cmdline
root@proxmox:~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.8.12-3-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/4B60-3E92
        Copying kernel 6.5.13-6-pve
        Copying kernel 6.8.12-2-pve
        Copying kernel 6.8.12-3-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.12-3-pve
Found initrd image: /boot/initrd.img-6.8.12-3-pve
Found linux image: /boot/vmlinuz-6.8.12-2-pve
Found initrd image: /boot/initrd.img-6.8.12-2-pve
Found linux image: /boot/vmlinuz-6.5.13-6-pve
Found initrd image: /boot/initrd.img-6.5.13-6-pve
done
root@proxmox:~#

I will reboot without USB live CD and comment the result
Solved.

I dont remember to create that file on /etc/kernel/cmdline, seems like proxmox-boot-tool did it automatically running that command.

The solution to this problem then is deleting that file of /etc/kernel/cmdline

Thanks a lot for your help, I would never have thought that deleting a file could be the solution in this case.
 
Last edited:

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!