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.