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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing /etc/inittab stops subsystems using VI

Status
Not open for further replies.

ap1605

Programmer
Mar 12, 2003
35
NL
My question is: How can i comment/uncomment lines in /etc/inittab ?


changing /etc/inittab stops subsystems after using VI !!!

INIT_OPEN can have several reasons, such as:
- someone or something has opened /etc/inittab during scanning it by
the init process
- inittab was edited by an editor and not by the standard commands:
mkitab, chitab, rmitab
- a filesystem can be filled up to 100% and causes a corrupted
/etc/inittab

The error identifier occurs when the system is trying to access inittab
while someone has the inittab file open. The problem is most likely
caused by the use of the vi editor that kept the file open while init
was trying to read the /etc/inittab file.

The following commands are the only supported method for modifying the records in the /etc/inittab file:

chitab Changes records in the /etc/inittab file.
lsitab Lists records in the /etc/inittab file.
mkitab Adds records to the /etc/inittab file.
rmitab Removes records from the /etc/inittab file.

Kind regards,

Guus.
 
Hi Guus,

I would back up the file, (cp /etc/initab /etc/initab.old)

Then use rmitab.

If this causes undesired results, copy the old file back.

-pd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top