Hard-Luck Editing the /etc/inittab File in Maintenance Mode
| |||||
Cause | |||||
A bad entry in the /etc/inittab is keeping the system from booting properly. | |||||
Resolving the problem | |||||
Ordinarily if there is a problem with one or more entries in the /etc/inittab the preferred method of editing it is: 1. Boot into Maintenance Mode off AIX install CDs, mksysb, or NIM 2. Access the rootvg and start a shell with the filesystems mounted. 3. Edit /etc/inittab down to a minimum 3 lines:
In cases where the rootvg filesystems cannot be mounted automatically (for example the CD media is a different Technology Level than what exists on hard disk; or the filesystems for some reason won't automatically mount), commands such as the "vi" editor won't be available to edit the inittab.
In this case a hard-luck method can be used to create a minimal inittab.
1. Boot into Maintenance Mode and choose Option 2 "Access rootvg and start a shell before mounting filesystems". 2. Once in Maintenance Mode, fsck all rootvg filesystems necessary: # fsck /dev/hd1 3. Mount root on a temporary mount point: # mount /dev/hd4 /mnt 4. Copy the bad inittab to a backup: # cd /mnt/etc 5. Use grep to create a minimal new inittab: # grep "init:" inittab.bad > inittab (adds both the init: and brc: entries) 6. Reboot using the new inittab: |
No comments:
Post a Comment