Red hat 6 enterprise system troubleshooting

Time:2021-10-14

rm /boot/* -rf

dd if=/dev/zero of=/dev/sda bs=446 count=1

rm -f /etc/inittab

rm -f /etc/rc.d/rc.sysinit

rm -f /etc/rc.d/rc.loacl

mv /etc/fstab /etc/fstab.bak

The following four steps are summarized:

1. Restore fstab

2. Reinstall the kernel

3. Reinstall inittab, / etc / rc.d/rc.sysinit, / etc / rc.d/rc.loacl

4. Rewrite the boot file

Specific:

1. Boot from the CD-ROM or network, enter rescue mode and press enter all the way. Press default. If you use network boot, select URL mode and enter the appropriate path. If you close the disk, select local CDROM and then continue.

2. First, you need to restore / etc / fstab. The file is in the / etc / directory. The / etc / directory belongs to the following partition, so you must first find the following partition. The video I made / dev / sda2 is the following partition. Create a directory and mount / dev / sda2 to the directory.

3. Enter the directory where the partition is located and restore fstab.bak to fstab. If the file is missing or wrong, you need to write the contents of the file, and then enter exit to restart.

4. Enter rescue mode again to recover the kernel file.

5. Restore the boot program, restore all files in / boot, and manually create the / boot / grub / grub.conf file

Then write the content.

6. Recover / etc / inittab / etc / rc.d/sysinit and other files

Then restart the computer.

Video connection:http://v.qq.com/boke/page/w/i/g/w0101c0e5ig.html

Recommended Today

The selector returned by ngrx store createselector performs one-step debugging of fetching logic

Test source code: import { Component } from ‘@angular/core’; import { createSelector } from ‘@ngrx/store’; export interface State { counter1: number; counter2: number; } export const selectCounter1 = (state: State) => state.counter1; export const selectCounter2 = (state: State) => state.counter2; export const selectTotal = createSelector( selectCounter1, selectCounter2, (counter1, counter2) => counter1 + counter2 ); // […]