I have a dedicated server that i've just setup at Hetzner. I've done the stupid thing of not changing the temp password they give you and disconnected from the SSH session. They don't send nor store this password so it's lost.
I need to reset it.
I'm on a 64-bit Ubuntu install and with a software raid. I reboot into the rescue routine and run the following;
ls /dev/md*
Which displays the 4 partitions of md0, md1, md2, md3
I then mount the boot drive with mount /dev/md2 /mnt. I prepare and try to switch into chroot with the following commands.
chroot-prepare /mnt
chroot /mnt
With the last command i get the output of: mkdir: cannot create directory ‘/mnt/run/lock’: File exists
I then change the password with passwd root. This all accepts the commands, i reboot and the password still doesn't work.