I am trying to reset root password on Gentoo box (that I did not setup). I tried adding
Code: Select all
real_init=singleCode: Select all
Give root password for maintenance (or type Control-D to continue):real_init=/bin/bash (/bin/sh is a symlink to /bin/bash), real_init=/bin/bb and real_init=/bin/busybox (these are the only shells I see in /bin), but this just is ignored and system starts with runlevel 3. I also tried init=, but this is simply ignored.
I tried to boot from LiveCD (minimal CD), but any attempt to
Code: Select all
chroot /mnt/gentoo /bin/bashCode: Select all
chroot: cannot run command '/bin/bash': No such file or directorymount: unknown filesystem type 'linux_raid_member'
message, also fdisk shows /dev/sd[ab] all different sizes and type 83 Linux instead of expected fd raid autodetect. When the system boots, I do see messages about RAID (with some complains about degradation; I'll address these once I can get root access).
As I see it, I have a couple of options left (unless some kind soul here will help me to get it boot single w/out root password
- Try to mount RAID in live CD and edit /etc/passwd
- Try to copy all custom PHP/shell script code and Postgres database (backups? What backups?
) using user-level account, reinstall Gentoo, recreate custom software




