Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to repair inittab files in Linux

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Linux how to repair inittab files, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

The first repair method is as follows (if there is a backup):

1. Backup / etc/inittab to / etc/inittab.bak in advance to facilitate subsequent recovery

2. Delete inittab and restart reboot

3. An error occurred during the restart

4. After seeing the error above, we began to put the optical drive into rescue mode.

5. Generally speaking, we just enter by default to determine the language.

6. Select the keyboard and enter to confirm by default.

7. The Nic information is required here, but it is not generally set. We can use the tab key to switch to no.

8. Then we will reach this interface. We enter directly, and it will automatically check the system.

9. After the completion, we will see the following interface. Enter and select OK.

10. when we get here, we enter the rescue mode.

11. Follow the steps below to find the previous / etc/inittab.bak file and change it to / etc/inittab, and then restart reboot.

12. After restarting, you can normally see the following page, which indicates that the recovery is successful.

The second repair method is as follows (without backup):

1. Find the RPM package corresponding to the / etc/inittab file, and use the rpm-qf command to view the corresponding rpm package.

2. Delete inittab, including the previous inittab.bak.

3, boot the system, even the physical boot can not be completed due to the loss of the inittab file.

4. Insert the CD to enter the rescue mode and enter linux rescue

5. Switch to the root environment

6. Although the inittab file is missing, the software package has not been uninstalled. You can use the rpm-qf command to view the

7. Mount the CD

8. Find the RPM package to install. By default, use the-- replacepkgs command in the Server directory on the CD to force overwriting the installation package (if you don't have this rpm package on the CD, you can install it on a USB disk on the Internet).

9. Check and find that the inittab file has been restored.

10, after reboot to enter the system default is the third level of startup, if you want to graphical, you need to use VI to change line 18 of the inittab file to 5.

11. Normal start

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report