OVH Community, your new community space.

Root Forgot your password :(

26-05-2015, 09:42
Blimey that worked. Previously I was mounting md3, but the method I found didn't include lines 2,3 & 4. So although it appeared to work the root password wasn't changed.

Thank you @alvaroag (is there anywhere to give kudos?)

26-05-2015, 03:23
"sda" is for physical disks. For RAID volumes, the device starts with "md", followed by the volume number, which depends on your partition layout. If unsure, run "cat /proc/mdstat" to see which RAID volumes are available.

26-05-2015, 01:27
I have the same problem. But the workaround above won't work. I think it could be due to GPT on RAID1?

11-05-2015, 11:43
yeap, you need to put the server in rescue mode and overwrite the password. Otherwise, you can also backup your server in rescue mode and reinstall fresh (recommeneded in the scenario where someone may have broken into your server and changed the password).

11-05-2015, 09:02
From the manager, change Netboot to Recovery. Then, reboot the server.Once you get the recovery login, enter via ssh, and run:

mount /dev/sda2 /mnt # This may need change depending on your partition layout
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt /bin/bash
# Type your new password, then again
umount /mnt/dev /mnt/sys /mnt/proc /mnt
That should do it.

11-05-2015, 08:31
Root Forgot your password please help me