Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNIX errors

Status
Not open for further replies.

EchoSpark

MIS
May 28, 2003
97
NG
Hello, I am a newbie, i have a voice server running on UNIX, it restarted and i got the following message

INIT: Cannot create /var/adm/utmp or /var/adm/utmpx
INIT: failed write of utmpx entry:" "
INIT: failed write of utmpx entry:" "
INIT: SINGLE USER MODE

What do i do?
 
When in single user mode you may purge the corrupted files:
rm /var/adm/[uw]tmp*

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Also you may want to make sure /var/adm exists, perhaps you need to fsck one or more filesystems.


HTH,

p5wizard
 
Please explain into detail how to purge corrupt files and to do fsck.
I am a newbie.

Thanks.
 
purge the u/wtmp file: see PHV's post: type exactly as follows:
rm /var/adm/[uw]tmp*

fsck: run the command fsck
fsck
fsck /var

first one checks all filesystems, second one only /var filesystem.

If everything checks out, perhaps the system does not auto-mount all filesystems? You can manually mount now with
mount all
but it is kind of UNIX-flavour dependent on how to make all filesystems auto-mount on startup.

What UNIX-flavour is installed on the box?

If you are unfamiliar with this system, perhaps you need to get in touch with the people you bought it from?


HTH,

p5wizard
 
This looks like a common error on Solaris when /var is on a separate filesystem. It tries to update /var/adm/w & utmp with the shutdown time *after* it has been unmounted. If you don't like seeing these (harmless) errors, while in single-user mode, unmount /var and mkdir -p /var/adm ; touch /var/admp/utmp /var/adm/wtmp. Then remount /var.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top