Home > Init Cannot > Init Cannot Access /var/adm/utmpx

Init Cannot Access /var/adm/utmpx

It displays information something like: % man ls User Commands ls(1) NAME ls - list contents of directory SYNOPSIS /usr/bin/ls [[email protected]] [file...] /usr/xpg4/bin/ls [[email protected]] [file...] /usr/xpg6/bin/ls [[email protected]] [file...] DESCRIPTION For each Now, when we try to boot, it prints: INIT: Cannot create /var/adm/utmp or /var/adm/utmpx INIT: failed write of utmpx entry: " " INIT: failed write of utmpx entry: " " INIT: The wtmpx database contains the history of user access and accounting information for the utmpx database. We occasionally see following error in solaris during system startup,  INIT: Cannot create /var/adm/utmp or /var/adm/utmpx Check the /a/etc/inittab file for corruption by comparing to another system running the same Solaris OE. his comment is here

But when it boots to root prompt-single user mode with cd , i am unable to type successfully. It should be a symbolic link to .../devices/pseudo/[email protected]:console The major and minor number of the device file in /devices should be zero. Some other messages follow, and the system usually comes up single-user. Example: #!/sbin/sh set -x 4.

If the core Solaris OE filesystems are mounted from physical disk slices, not Veritas Volume Manager or Solstice DiskSuite volumes, then make sure the devices in /a/etc/vfstab point to valid entries Are you new to LinuxQuestions.org? Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the The man pages tell you how to do this cause I cant remember right now.

After making a backup copy, edit /etc/init.d/standardmounts, modify the file so that the file system which contains /var is mounted. How to prove that authentication system works, and that customer uses the wrong password? FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? For example, if you want to know how to use "ls" command or the available options for "ls", simply type "man ls" in a terminal window.

It should be a symbolic link to ../devices/pseudo/[email protected]:console The major and minor number of the device file in /devices should be zero. Thanks in Advance, Thorrn4! Do the following: # /usr/bin/cp /dev/null /a/var/adm/utmpx # /usr/bin/cp /dev/null /a/var/adm/wtmpx # /usr/bin/chown root:bin /a/var/adm/utmpx # /usr/bin/chmod 644 /a/var/adm/utmpx # /usr/bin/chown adm:adm /a/var/adm/wtmpx # /usr/bin/chmod 644 /a/var/adm/wtmpx There should also be go to this web-site To get there, power up the machine and type "s" Or "S" at "Enter Run level (0-6, s or S) [3]: " prompt 2) Once you are there, type "fsck -F

Make sure the startup scripts under /a/etc/rc[S,2,3].d and the files /a/sbin/rc[S,2,3] are not corrupted. Example: # /usr/sbin/fsck /dev/rdsk/c0t0d0s4 # mount /dev/dsk/c0t0d0s4 /a/var 1. lealyz. I did boot to single user mode with the cd and i did run fsck, fixed errors, mounted the /var partition on /a, rm the utmpx, utmp, wtmpx, wtmp files, touched

If the file system containing /var is mounted read-only, remount it read-write with a command similar to this: # mount -o rw,remount / Then type Control-D and try to bring up Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. Any messages from fsck? Note: Making /var a separate partition (in /etc/vfstab) is okay.

After making a backup copy, edit /etc/init.d/standardmounts, modify the file so that the file system which contains /var is mounted. this content Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. Any messages from fsck? Since the files may be corrupted, clear their contents and again check permissions and ownership.

I tried it...still won't boot...I wrote down some information on the page, maybe it can be clearer: Warning - unable to repair the /filesystem. etc., commands during bootup, you are doing it on a console window technopark02 View Public Profile View LQ Blog View Review Entries View HCL Entries Visit technopark02's homepage! Would we find alien music meaningful? weblink Example: #/usr/sbin/df -k Filesystem kilobytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 3277234 2837450 407012 88% /a If /a or /a/var has 100% in the capacity column, clean out files on the

Some other messages follow, and the system usually comes up single-user. Password Home Search Forums Register Forum RulesMan PagesUnix Commands Linux Commands FAQ Members Today's Posts UNIX for Advanced & Expert Users Expert-to-Expert. Example: #grep sysmsg /a/etc/name_to_major sysmsg 97 #/usr/bin/ls -al /a/devices/pseudo/sysmsg* crw------- 1 root sys 97, 1 Jan 12 16:25 /devices/pseudo/[email protected]:msglog crw------- 1 root sys 97, 0 Jan 30 16:38 /devices/pseudo/[email protected]:sysmsg 7.

Forum Operations by The UNIX and Linux Forums Login with LinkedIN Or Log In Locally Email Password Remember Me Forgot Password?Register ENGINEERING.com Eng-Tips Forums Tek-Tips Forums Search Posts Find A

I cannot write or press anything. Please visit this page to clear all LQ-related cookies. The following is an example where /var resides in /export/home/var: exec < ${vfstab}; readvfstab "/export/home" if [ "${mountp}" -a -d /export/home ] then /sbin/mount -m /export/home > /dev/null 2>&1 mntlist="${mntlist}/export/home /export/home" Regards, Mahesh S.

Complete procedures are documented in the manual(s) 804-6657-11(Sept 99) or 806-4005-10 (Feb 2000) "Installing Solaris 2.5.1 or Solaris 2.6 Software on 419+ MHz Systems" or "Installing Solaris Software for Selected Hardware" Here are the messages I see on console mount: mount-point /var/run does not exist. Now, when we try to boot, it prints: INIT: Cannot create /var/adm/utmp or /var/adm/utmpx INIT: failed write of utmpx entry: " " INIT: failed write of utmpx entry: " " INIT: check over here How EXACTLY can +=/-= operators be interpreted?

When I try to boot with boot -rs, I don't get any error, but after successful boot, I tried to boot again without specifying boot arguments I end up with same The system then came up w/o errors. Register Forum Archives Operating Systems Linux and UNIX Sun Solaris Cannot create /var/adm/utmpx Cannot create /var/adm/utmpx - Sun Solaris Hi, Today we have had a power failure, and then the workstation Found by running newfs with -Nv options.

Close Box Join Tek-Tips Today! Run the scripts in shell debug mode by adding "set -x" in these scripts. Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. The time now is 08:53 PM. - Contact Us - UNIX & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top

The files here should be hard linked to files in /a/etc/init.d Example: #/usr/bin/ls -i /a/etc/rcS.d/S30rootusr.sh 327078 /etc/rcS.d/S30rootusr.sh #/usr/bin/ls -i /a/etc/init.d/rootusr 327078 /etc/init.d/rootusr.sh 10. Top This thread has been closed due to inactivity. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. Mount them to /a/usr, /a/var, and /a/opt, respectively.

mshivhare replied May 22, 2007 Hello, I had faced the same problem a month back and I had done the below mentioned steps: 1) Ensure that the backup of /var is