Accidenally put the option 6 (init 6) in the inittab file

If it doesn't fit in another category, ask it here.
Post Reply
sugoicarl
Posts: 7
Joined: 2006/09/27 04:31:24

Accidenally put the option 6 (init 6) in the inittab file

Post by sugoicarl » 2006/10/02 14:28:44

Hello,

I am new in Linux and I was configuring the video driver. Accidentally I put the option 6 (init 6) int the /etc/inittab file. So the system reboot each time.

I tried to access with the boot disk but never appear the menu to select the single user mode to access.

Who can I access as single user mode?

How can I access again to that file and modify it?


Thanks

Sugoicarl

foxb
Posts: 1927
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: Accidenally put the option 6 (init 6) in the inittab file

Post by foxb » 2006/10/02 15:21:04

Boot with your installation disk #1

Choose linux rescue as boot

mount filesystem and modify inittab file

arrfab
Site Admin
Posts: 875
Joined: 2005/01/03 21:30:54
Location: /country/belgium
Contact:

Accidenally put the option 6 (init 6) in the inittab file

Post by arrfab » 2006/10/02 16:47:08

.... and/or if you don't have the cd #1 with you :
on the grub splash screen menu (when you boot your computer) : highlight the centos line and press e to edit the grub conf on the fly, add single at the end of the line and press b to boot : you'll be directly in init 1 and modify then your /etc/inittab ...

sugoicarl
Posts: 7
Joined: 2006/09/27 04:31:24

Re: Accidenally put the option 6 (init 6) in the inittab file

Post by sugoicarl » 2006/10/03 03:07:55

Sorry, the first suggestion didn"t function because the system tell me that does not find the file /etc/fstab (I access with the option F5 and gave skip option)

The second suggestion, when I type "e" show me three lines

root (hd0,4)
kernel /vmlinuz-2.6.9-22.EL ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-22.EL.img


Sorry, but I don"t know if I understand very well
What I have to write in this part?

Thanks

Sugoicarl

sugoicarl
Posts: 7
Joined: 2006/09/27 04:31:24

Re: Accidenally put the option 6 (init 6) in the inittab file

Post by sugoicarl » 2006/10/03 05:57:55

Thanks

I tried some options and finally I solved my problem

Thanks to the forum

Sugoicarl

Post Reply

Return to “CentOS 4 - Miscellaneous Questions”