Root Password Reset on ZFS

Nik2016

Renowned Member
Oct 25, 2016
22
1
66
45
My proxmox install was done using the zfs mirror option and now I am unable to locate the original root password for proxmox. I have done some research on whats required for changing root password on zfs (rather then just a normal linux install) and found following:-

https://pve.proxmox.com/wiki/Root_Password_Reset (Method 2)

I've tried to follow whats described in the above but already encountering stumbling block early on. I setup a Proxmox VE 8.3 ISO usb and booted into advanced options > terminal install (debugging). However I have no zpool / zfs commands available and lsmod shows no zfs drivers present in the enviroment. Can anyone advise on what I should do or what I am doing wrong here?

This post below is similar to my own issue:-

https://forum.proxmox.com/threads/resetting-root-password-problem-zfs.133641/

So if I understand correctly once I am able to use a live CD / USB installer that supports zfs I should be able to run

Code:
zpool import -R /mnt <pool>

Mount the pool that the zfs mirror for proxmox lives on and then just normally passwd root and change the root password, correct?
 
When booting a live disk you will need to chroot into the root located on the zfs pool.
But what prevents you from using Method 1 from the first link you mentioned?
 
  • Like
Reactions: Nik2016
It is possible to use method 1 even with zfs setup? Sorry the wording on that page lead me to think method 2 was required for a zfs install. If editing grub with init=/bin/bash works that would be way easier. I'll give this a try tomorrow and see how it goes. Thanks croit.
 
Eventually the system is using systemd-boot instead of GRUB. The menu and the boot entry will look different, but resolution is the same, just add the init=/bin/bash at the end.
When dropped into the shell, change the password and then run exec /sbin/init to continue booting.