Cannot boot in single-user mode


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot boot in single-user mode
# 15  
Old 05-01-2009
Quote:
Originally Posted by System Shock
Ok, I'm stumped Smilie

Have you checked your inittab file? Do you have another box that's working normally, so you can compare the inittabs?
I compared inittab with another working system and they are identical...
# 16  
Old 05-01-2009
Quote:
Originally Posted by sbk1972
IVe had a similar problem. ITs where the home directory of the root user has been altered and relocated to a drive that is mounted in multiuser mode.

Dont get me wrong, I never configured this rubbish, but I noticed it on a server the other day when I tried to boot -s myself. The previous sa wally had pointed root to /u01/, so single user mode wouldnt work, and went straight to multiuser mode.

Check the root entry in /etc/passwd. Make sure the home directory is / and if the shell has been changed, makes sure its /sbin/sh Ive seen it where ksh has been the choice of shell, but located on a different mount, mounted at multi user mode.

Give that ago.

SBK
This is how it looks like:

# cat /etc/passwd
root:x:0:1:Super-User:/:/bin/ksh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:

Do you think it is worth changing ksh to sh?
# 17  
Old 05-01-2009
Quote:
Originally Posted by StarSol
This is how it looks like:

# cat /etc/passwd
root:x:0:1:Super-User:/:/bin/ksh

Do you think it is worth changing ksh to sh?
ALWAYS keep root's shell as /sbin/sh. Call ksh or whatever shell you want to use after su'ing to root.

Show us what you've got in /etc/vfstab, I think sbk1972 makes a great point.
# 18  
Old 05-01-2009
Quote:
Originally Posted by seg
ALWAYS keep root's shell as /sbin/sh. Call ksh or whatever shell you want to use after su'ing to root.

Show us what you've got in /etc/vfstab, I think sbk1972 makes a great point.
This is what it shows:

# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes logging
#/dev/dsk/c2t0d0s0 /dev/rdsk/c2t0d0s0 /oracle ufs 1 yes logging
#/dev/dsk/c2t0d0s0 /dev/rdsk/c2t0d0s0 /shared_disk/oracrs ufs 1 yes logging
#/dev/dsk/c2t0d0s1 /dev/rdsk/c2t0d0s1 /shared_disk/oradata ufs 1 yes logging
#/dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0s2 /shared_disk/flash_recovery_area ufs 1 yes logging
fd - /dev/fd fd - no -
/proc - /proc proc - no -
#/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging
#/dev/dsk/c1t0d0s1 - - swap - no -
#/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 1 yes logging
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging
/dev/md/dsk/d2 /dev/md/rdsk/d2 /export/home ufs 2 yes logging
swap - /tmp tmpfs - yes -

I will change to /sbin/ksh and give it a try...
# 19  
Old 05-01-2009
Quote:
Originally Posted by StarSol
I will change to /sbin/ksh and give it a try...
No!! Don't use /sbin/ksh!
Use /sbin/sh


your vfstab looks OK but it makes me suspicious. Please post the output of `df` while in multi-user mode.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Single user mode

Dear All I am trying to install my os as : ok>boot cdrom - install but receiving the following : "IDprom checksum error getexecname() failed /sbin/rcS /etc/vfstab cannot create INIT:failed write utmpx enrty INIT:single user mode INIT:execle of /etc/sulogin failed Enter run level" Can you... (6 Replies)
Discussion started by: hadimotamedi
6 Replies

2. Solaris

Boot on single user mode with net services

Hi everybody, I'm running soalris 10, and I would like to know if it posible to boot on single user mode(init s), and then set up (may be manually or not) all the networks services, did someone try this before?? Tks (4 Replies)
Discussion started by: jespada
4 Replies

3. UNIX for Dummies Questions & Answers

single user mode - user accounts passwords

hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies

4. UNIX for Dummies Questions & Answers

how to Single user mode?

How to enter single user mode when UNIX/LINUX system is starting? (1 Reply)
Discussion started by: gkreddy
1 Replies

5. UNIX for Dummies Questions & Answers

How to boot in single user mode

My machine is a HP-UX 11iV2. I want to boot it in the single user mode. Any ideas? Regards (7 Replies)
Discussion started by: sube
7 Replies

6. AIX

Boot in Single-Mode

Hi All, I have AIX 5.1 & I forgot the root password. I find out the solution is to boot in single-mode and remove the root password from the /etc/passwd file. My question is how to boot in single-mode? Also is there any password required when booting in this mode? (9 Replies)
Discussion started by: aldowsary
9 Replies

7. UNIX for Advanced & Expert Users

single user mode

How to diable the single user mode.. what i want is dat my users are unable to boot in single user mode via GRUB.. (1 Reply)
Discussion started by: ankit.jss
1 Replies

8. UNIX for Advanced & Expert Users

single user mode

Is there another way of switching to single user mode except by typing /usr/sbin/shutdown 0 ??? :rolleyes: (5 Replies)
Discussion started by: kekanap
5 Replies

9. UNIX for Dummies Questions & Answers

single-user mode

how do you boot into single user mode? RedHat 7.1 Caldera 2.4 (2 Replies)
Discussion started by: zorro81
2 Replies

10. UNIX for Dummies Questions & Answers

single user mode

Hi all, why "vi" acts differently is single user mode? Does anyone help ? I am using "x" to delete and it keeps messing up. Please help Thanks (2 Replies)
Discussion started by: guest100
2 Replies
Login or Register to Ask a Question