I'm trying to reset password to root account on Slackware server (with Intel Atom on Intel motherboard and two HDDs). There is software RAID set up (devices mounted during boot: md0 – /, md1 – /usr, md2 – /var, md3 – /tmp, md4 – /home).
What I tried (with LILO boot options):
-
linux single
: normal login prompt doesn't let me in without root password -
linux init=/bin/bash
(with or without `rw' – no difference): I got prompt as user (none) – no access to passwd. After that I tried mounting the drives:mount /dev/md0 /mnt/sys mount /dev/md1 /mnt/sys/usr mount /dev/md2 /mnt/sys/var
System let me use passwd and it looked as change was successful. After reboot I still couldn't log in.
Effect was the same when I tried deleting the password in /etc/shadow. -
booting from live cd/usb (for chroot/passwd): System boots straight to the local system (I set in bios to boot from cd and/or usb drive). This seems to be the simplest option, if there is some way to make this system boot as it is set up in BIOS.
Any sugestions how can I proceed?
Best Answer
After changing BIOS option to treat removable drives as fixed size I was able to boot from usb (seems it's a known problem with Intel D945GCLF board - http://ubuntuforums.org/showthread.php?t=1113472) and resync raid drives (raid1 array was working with only one disk).
I still couldn't log into root account (blanking/changing password had no effect, I didn't find where/how it's locked), but I managed to reset password and log with diffrent user with enough priviledge to su into root prompt.