Difference between revisions of "Reset Proxmox Root Password via GRUB"
(7 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
=== 2. Interrupt the GRUB Bootloader === | === 2. Interrupt the GRUB Bootloader === | ||
When the GRUB menu appears, quickly press | When the GRUB menu appears, quickly press ''' 'e' ''' to edit the default boot entry. | ||
=== 3. Modify the Boot Parameters === | === 3. Modify the Boot Parameters === | ||
Locate the line starting with | Locate the line starting with linux (e.g., linux /boot/vmlinuz...). | ||
At the end of this line, append: | At the end of this line, append: | ||
< | <pre> | ||
init=/bin/bash | init=/bin/bash | ||
</ | </pre> | ||
Example full line (for reference): | Example full line (for reference): | ||
< | <pre> | ||
linux /boot/vmlinuz-5.x... root=ZFS=rpool/ROOT/pve-1 ro quiet splash init=/bin/bash | linux /boot/vmlinuz-5.x... root=ZFS=rpool/ROOT/pve-1 ro quiet splash init=/bin/bash | ||
</ | </pre> | ||
=== 4. Boot with Modified Settings === | === 4. Boot with Modified Settings === | ||
Press | Press '''Ctrl + X''' or '''F10''' to boot with the modified parameters. | ||
=== 5. Remount Root Filesystem as Read/Write === | === 5. Remount Root Filesystem as Read/Write === | ||
Once you are at the shell prompt (e.g., | Once you are at the shell prompt (e.g., bash-5.1#), run: | ||
< | <pre> | ||
mount -o remount,rw / | mount -o remount,rw / | ||
</ | </pre> | ||
=== 6. Reset the Root Password === | === 6. Reset the Root Password === | ||
Line 55: | Line 55: | ||
Try to execute: | Try to execute: | ||
< | <pre> | ||
exec /sbin/init | exec /sbin/init | ||
</ | </pre> | ||
If that does not work, force reboot using: | If that does not work, force reboot using: | ||
< | <pre> | ||
reboot -f | reboot -f | ||
</ | </pre> | ||
=== 8. Login with New Password === | === 8. Login with New Password === | ||
After reboot, you should now be able to log in as | After reboot, you should now be able to log in as '''root''' | ||
[[Main Page|Home]] > [[Debian]] > [[Proxmox virtual environment]] > [[Reset Proxmox Root Password via GRUB]] | [[Main Page|Home]] > [[Debian]] > [[Proxmox virtual environment]] > [[Reset Proxmox Root Password via GRUB]] |
Latest revision as of 10:55, 5 June 2025
Home > Debian > Proxmox virtual environment > Reset Proxmox Root Password via GRUB
Reset Proxmox Root Password via GRUB
1. Reboot the Proxmox Server
Restart the server from the terminal or via remote management.
2. Interrupt the GRUB Bootloader
When the GRUB menu appears, quickly press 'e' to edit the default boot entry.
3. Modify the Boot Parameters
Locate the line starting with linux (e.g., linux /boot/vmlinuz...).
At the end of this line, append:
init=/bin/bash
Example full line (for reference):
linux /boot/vmlinuz-5.x... root=ZFS=rpool/ROOT/pve-1 ro quiet splash init=/bin/bash
4. Boot with Modified Settings
Press Ctrl + X or F10 to boot with the modified parameters.
5. Remount Root Filesystem as Read/Write
Once you are at the shell prompt (e.g., bash-5.1#), run:
mount -o remount,rw /
6. Reset the Root Password
Execute the following command:
passwd
Enter and confirm the new root password when prompted.
7. Reboot the System
Try to execute:
exec /sbin/init
If that does not work, force reboot using:
reboot -f
8. Login with New Password
After reboot, you should now be able to log in as root
Home > Debian > Proxmox virtual environment > Reset Proxmox Root Password via GRUB