Repair MBR after ghostFreeBSD recovery

Source: Internet
Author: User
Article Title: repair MBR after ghostFreeBSD recovers. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Fix bsd startup

1. Use the FreeBSD boot CD to start the FreeBSD Fixit console. Various system tools can be used in this console-these system tools are located on the boot CD, the boot disc is automatically mounted to/mnt2, and you do not need to modify the PATH environment variable because the PATH environment variable is also automatically modified, this allows you to use a variety of system tools without providing an absolute path, including boot0cfg.

2. Run the following command to repair MBR (that is, the Boot Sector of the hard disk). Here we will briefly describe the command line options of boot0cfg, for more information, see [1]. The following command requires the root permission (this is a nonsense, and it is the root user to enter the system through the Fixit console ):

Boot0cfg-B-v-o noupdate-t 185 ad0

Brief description:

-Option B: Specifies the boot program to be installed on the hard disk.

-V option: provides detailed information.

-O noupdate option: prevents problems on some platforms (these platforms have anti-virus hardware and are not allowed to modify MBR)

-T 185 option: Pause for 10 seconds (approximate value) at startup to allow users to select the system to be started

Note: The system version to be restored must be the same as that used for restoring the system. We wasted more than three hours because we didn't take this issue into consideration.

Related Article

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.