Operating System - HP-UX
1833268 Members
2883 Online
110051 Solutions
New Discussion

Re: boots straight to single user mode

 
michael nimmons
Occasional Contributor

boots straight to single user mode

i have a hp j6000 and the problem started when it would not let you log into any account and on the sysadmin account is said can not access the home directory, then it froze so i turned the power off and back on again. so now when it boots it gives two warning messages first one is something like there is not enough space for the crash dump and the other is the /etc/inittab file is corrupt and then it initiates single user and ask for log in name. after logging in i tried to run the fsck -y command but it says there is not such command i also tried fsck just to check but there was nothing.
3 REPLIES 3
Muthukumar_5
Honored Contributor

Re: boots straight to single user mode

May be PATH variable is empty.

Execute as /sbin/fsck.

hth.
Easy to suggest when don't know about the problem!
Robert-Jan Goossens
Honored Contributor

Re: boots straight to single user mode

fsck is in /usr/sbin and /sbin

/usr is not mounted in single user mode, two options. mount /usr or use /sbin/fsck.

about the corrupted inittab, if you have a good backup, copy the inittab to inittab.org.
# mv /etc/inittab /etc/inittab.org
# mount /usr
# cp /usr/newconfig/etc/inittab /etc/inittab

# shutdown -r -y now
restore a good inittab from your backup.

Hope this helps,
Robert-Jan
AwadheshPandey
Honored Contributor

Re: boots straight to single user mode

use /sbin/fsck,
mount -a
mv inittab inittab.old (or compare ur inittab with other server's inittab for any wrong entry)
copy inittab file from backup

Awadhesh
It's kind of fun to do the impossible