Linux 07 Failure Recovery

Source: Internet
Author: User

1. Simulate the repair of MBR sector after being destroyed.

MBR Failure Recovery:

1. Backup

Add a hard drive

To start the operating system:

To add a hard drive:

To format a partition:

Mount:

Do backup:

Destroying MBR

Restart the system:

Shutting down a virtual machine

Set up disc boot

Rescue mode:

Mount the hard drive to the/mnt/sysimage

Start recovery:

Start successfully!

2. Grub Boot Failure

simulates the repair of a master boot in MBR after Grub is destroyed. (one is to boot by command, and the other is to restore the backup file through rescue mode)

2.1 Modifying Grub.conf

Comment Line

Boot system

Restart normal entry system.

2.2 Missing conditions

Make a backup first:

Then delete:

After reboot, go directly to:

Through rescue mode:

Restart:

After rebooting, it can start normally.

Very slow start-up time because the Getenforce is in the open state

3. Set a scheduled task, restart the system every minute, and see how to cancel the scheduled task

It's restarted in 1 minutes.

Start Rescue mode:

Task canceled after reboot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.