|
Home > Archive > Red Hat General > January 2004 > Corrupt inittab/rc.sysinit ?!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Corrupt inittab/rc.sysinit ?!
|
|
| George Hewitt 2004-01-23, 7:08 pm |
| Major problems here, very definite case to show that you shouldn't fiddle if
you don't know what you're doing!!
I was looking to make a few changes to the system (RH 8) as follows:
1. Change it so it loaded to a text local login (ie. no X/GUI) on boot.
2. Have a PERL program start running at boot time.
.......
Okay, so I did a little background reading on the above. Found that to
accomplish (1) I needed to set it to runlevel 3 at boot, instead of 5.
Changed this in the necessary file (can't remember which one, but it was as
documented).
The second part I was a little less confident about. As I understood it I
needed to add it to the rc.local file, which I did. This didn't cut it so I
tried adding a sh script into rc.d and then followed instructions to symlink
it to rc.3.
Now when I boot I can't do anything, comes up with death-errors as detailed:
INIT: /etc/inittab[xx] : missing action field
INIT: Cannot execute "/etc/rc.d/rc.sysinit
INIT: Entering runlevel: 3
grep: /proc/cmdline : No such file or directory
Entering non-interactive startup
INIT: Cannot execute "/sbin/update
INIT: ID "1" Respawning too fast: disabled for 5 minutes
INIT: ID "2" Respawning too fast: disabled for 5 minutes
INIT: ID "3" Respawning too fast: disabled for 5 minutes
INIT: ID "4" Respawning too fast: disabled for 5 minutes
INIT: ID "5" Respawning too fast: disabled for 5 minutes
INIT: ID "6" Respawning too fast: disabled for 5 minutes
INIT: No more processes left in this runlevel.
Ooops! Any help would be so appreciated! (This'll teach me...)
| |
| J.O. Aho 2004-01-23, 7:08 pm |
| George Hewitt wrote:quote:
> Major problems here, very definite case to show that you shouldn't fiddle if
> you don't know what you're doing!!
>
> I was looking to make a few changes to the system (RH 8) as follows:
>
> 1. Change it so it loaded to a text local login (ie. no X/GUI) on boot.
>
> 2. Have a PERL program start running at boot time.
>
> ......
>
> Okay, so I did a little background reading on the above. Found that to
> accomplish (1) I needed to set it to runlevel 3 at boot, instead of 5.
> Changed this in the necessary file (can't remember which one, but it was as
> documented).
>
> The second part I was a little less confident about. As I understood it I
> needed to add it to the rc.local file, which I did. This didn't cut it so I
> tried adding a sh script into rc.d and then followed instructions to symlink
> it to rc.3.
>
> Now when I boot I can't do anything, comes up with death-errors as detailed:
>
> INIT: /etc/inittab[xx] : missing action field
> INIT: Cannot execute "/etc/rc.d/rc.sysinit
> INIT: Entering runlevel: 3
> grep: /proc/cmdline : No such file or directory
> Entering non-interactive startup
> INIT: Cannot execute "/sbin/update
> INIT: ID "1" Respawning too fast: disabled for 5 minutes
> INIT: ID "2" Respawning too fast: disabled for 5 minutes
> INIT: ID "3" Respawning too fast: disabled for 5 minutes
> INIT: ID "4" Respawning too fast: disabled for 5 minutes
> INIT: ID "5" Respawning too fast: disabled for 5 minutes
> INIT: ID "6" Respawning too fast: disabled for 5 minutes
> INIT: No more processes left in this runlevel.
>
>
> Ooops! Any help would be so appreciated! (This'll teach me...)
>
>
If I would be you, I would put in CD1 and boot from that, typing at the prompt
'linux rescue'.
When you got so far that the system partitions are mounted and you have
chroot:ed to it too, then install the initscripts packages from the CD1
rpm -Uvh --force initscripts-7.14-1.i386.rpm
(the version number may be different)
When this is done, just reboot (do an exit twice).
//Aho
| |
| George Hewitt 2004-01-23, 7:08 pm |
| Cheers, I thought it would be something along that line.
Will give that a shot as soon as CD1 is downloaded again(gone and lost the
blasted thing..)
quote:
> If I would be you, I would put in CD1 and boot from that, typing at the
promptquote:
> 'linux rescue'.
>
> When you got so far that the system partitions are mounted and you have
> chroot:ed to it too, then install the initscripts packages from the CD1
>
> rpm -Uvh --force initscripts-7.14-1.i386.rpm
>
> (the version number may be different)
>
> When this is done, just reboot (do an exit twice).
>
>
>
> //Aho
>
|
|
|
|
|