Error Messages or Symptoms : Read-Only file system. No utmpx.
Probable Cause : A corrupt vfstab entry or corrupt rc scripts
Fault Insertion
Change the rcS script to point to the /fstab directory instead of the /vfstab directory. The vfstab directory mounts the root account in read-only mode.
Note - Set the TERM parameter. The TERM parameter enables you to edit files by using the vi editor.
To corrupt the rcS script, complete the following steps :
1.Edit the /etc/rcS script:
#vi /etc/rcS
Before Edit :
vfstab=/etc/vfstab
After edit:
vfstab=/etc/fstab
2.Make a copy of the /etc/vfstab file :
#cp /etc/vfstab /etc/fstab
3.Edit the /etc/fstab file to make the root file system read-only:
#vi /etc/fstab
Before edit:
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
After edit:
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no ro
Posibble Fixes
1.To repair the preceding fault, you first boot the system in single-user mode from the CD-ROM, and then repair the rc scripts by using the following commands :
ok boot cdrom -s
ok fsck /dev/dsk/c0t0d0s0
ok mount /dev/dsk/c0t0d0s0 /a
2.restore the /etc/vfstab file in the vi editor.
Learning
Insert echoes in the rc scripts to determine the source of the problem. This is similar to the concept of single-stepping through the rc script execution.
System cannot boot in multiuser mode
Posted by Leo Sunday, February 21, 2010 at 11:41 PM
Subscribe to:
Post Comments (Atom)



0 comments:
Post a Comment