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?
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.
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.
fdisk -l
with your HD plugged in (thorugh USB). Take notice of the < /dev/sd*#
>. mount /media /dev/<sd*#>
Now, you can access your boot
or root
partition to access the files.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.