×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Server will not boot without running fsck

Server will not boot without running fsck

Server will not boot without running fsck

(OP)
HI,

I am having quite a bit of trouble with a server running Solaris 8. I was in the process of recovering the root password (long story) using vi editor and the /a/etc/shadow file. The steps I had failed, no big deal, the server was running fine with out it so I decided to call it quits for now and just bring the server back up. While booting it found errors in the file system and prompted "enter root password to enter maintenance mode, or press ctrl-d to continue booting normally." As I do not have the root password I pressed ctrl-d, the server responded with the finger and asked me to run fsck again. Is there any way around it? I am sure that the setup allows only root permissions to run fsck. I am pretty inexperienced when it comes to Unix and Solaris systems, any advice at all would be helpful.

Thanks,
Matt

RE: Server will not boot without running fsck

You're going to have to reset the root password.

RE: Server will not boot without running fsck

Well you can boot from CDRom and mount the disk and fsck and or boot CDRom and reset the root password and fsck ....

If it helps here is a basic root recovery process ....

CODE --> Unix_ROOT_Reset



Load the Solaris cdrom

Take the machine down to the PROM level -
# init 0 (or halt)

When it comes down to the OK prompt -
OK boot cdrom -s

When it is back up -
# mount /dev/dsk/c0t0d0s0 /a (your root device/partition)
# fsck /dev/dsk/c0t0d0s0 (optional, if you can't mount disk)
# cd /a/etc
# TERM=vt100;export TERM
# vi shadow and remove second field on root line

The root line should look like -
root::12345:::::: (it must start root:: the other values are not important)

wq! (or x!)
init 6 (or reboot)


IHTH

Laurie.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close