Wednesday, June 27, 2018

How to restore /etc/inittab file in OL6.9?

Accidentally /etc/inittab file removed.

Cause GUI is not coming up. It goes to single user mode.

How to restore the file?

Once you login into single user mode as root.

#echo "id:5:initdefault:" > /etc/inittab
#reboot

you can see the GUI mode.


No comments: