[SunHELP] writing to utmpx !

Shipe, Mark A sunhelp at sunhelp.org
Mon Dec 18 08:00:35 CST 2000


  Naresh: If you want to eliminate those nonsense messages due the
following:     


     # cd /; shutdown -i0 -g0 -y 
     ok boot -s 

      After entering the root passwd for maintenance mode: 

     # umount /var 
     # mkdir /var/adm 
     # ln -s /dev/null /var/adm/utmpx 
     # ln -s /dev/null /var/adm/utmp 
     # mount /var 
        reboot system to run level 6 ( shutdown -i6 -g0 -y)
        watch reboot for any errors
      This will allow "init" to record its run-level change even after the
/var filesystem gets unmounted during shutdown. The
     data itself is useless and the write will be discarded.

Mark A. Shipe
UNIX Sys. Admin
IDEN: 678 410-6176




More information about the SunHELP mailing list