Question

I have placed a faulty kernel object in the rc.local. Because of this faulty kernel object,the system crashes on bootup. Now, my aim is to remove that faulty ko insmod from rc.user. However, I cannot access rc.user as my system crashes on bootup. How can I fix this issue?

Was it helpful?

Solution

If you are getting the grub screen then you can go to runlevel 1 and change the file.

On grub screen you will have to

press a after selecting the Fedora kernel with which you want to boot.
APPEND single after space in that line and press enter
press b to boot in single user mode

You can edit any file in this mode.

OTHER TIPS

The safest & easiest approach when I get into such troubles is to mount the HD (contaning the faulty kernel) as an external hard drive to another linux machine and manually edit the files causing trouble.

  1. Do a fdisk -l with your HD plugged in (thorugh USB). Take notice of the </dev/sd*#>.
  2. mount /media /dev/<sd*#>

Now, you can access your boot or root partition to access the files.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top