Windows Linux dual system boot repair

Source: Internet
Author: User

File location/boot/grub/menu.lst  Join title  microsoft windows xp professionalroot    (hd0,0) savedefaultmakeactivechainloader +1linux  Grub is a very good boot program that can boot multiple operating systems. When Windows and Linux coexist, remove grub directly into Windows method: Scenario 1: Use DOS command fdisk to recover the primary boot sector MBR (main/master boot  Record)---boot the system to a pure DOS prompt with Win98 boot disk or DOS boot disk, execute: "FDISK /MBR". Scenario 2: In a Linux system, restore the MBR. (If you can also log in to the Linux system)---Enter:  "Dd if=/boot/boot at the terminal's command prompt. Nnnn of=/dev/hda bs=446 count=1 "Note where BS (buffer size) refers to the number of bytes that are rewritten. Why not 512? The main boot sector is a sector (512 bytes), because we just want to repair the boot of the system MBR or remove the  grub/lilo boot through the slice command, instead of recovering the entire primary boot sector. So we only boot the backup file of the main boot sector. The first 446 bytes of the nnnn rewrite the master boot sector.  boot. NNNN is our backup of the entire master boot partition before installing Linux. If we write all 512 bytes to the main boot sector, we may destroy the DPT table of the hard disk that was changed after installing Linux. That's a bad thing!!!   (MBR 512 bytes in the first 446 bytes of the bootloader, followed by 64 bytes for the partition table, the last 2 bytes is the end tag) Scenario 3: Using the tool: clear mbr 0.9, run Execution "CLEAR MBR" Can. The partition for scenario 4:linux has been removed from windows, and the system starts and stops at the "grub>" prompt. Workaround: (1): According to the method of Scenario 1 (2): 1. At the "grub>" prompt, enter: "rootnoverify  (hd0,0)"   Enter.  //the first hard drive(hd0), the first partition (0) is set to the root partition/root device, but the file system is not loaded. 2. At the "grub>" prompt, type: "Chainloader +1"   enter. Transfers the boot right to the first sector of the current partition (the first sector of the partition on which the Windows system resides). 3. At the "grub>" prompt, type: "Boot"   enter. The system will start Windows. If unsuccessful,   (hd0,0)   is not the partition that the  Windows  system is in, then try it from the first step "root  (hd0,1)/root  (hd0,2)/root   (hd0,3)/... ", in short this will definitely boot up your Windows system. 4. OK, go to Windows, please use the method of scenario 3, easy to take care of! (3): Start with  WINDOWS  disc, enter  console  mode, run  fixboot  and  FIXMBR. The fixmbr command is used to repair the startup disk's master boot record, which is only available when using the Recovery Console, the syntax is: fixmbr [device_name], the parameter device_name is the device (drive) to write the new master boot record, The device name can be obtained from the output of the  map  command. For example, device name: DeviceHardDisk0, the following command example writes a new master boot record to the specified device: fixmbr deviceharddisk0 Note: • If you do not specify  device_name, The new master boot record will be written to the boot device, which is the drive that is loading the main system.   If the system detects an invalid or nonstandard partition table tag, the user is prompted to continue executing the command. Do not proceed unless you have a problem accessing the drive. Writing a new master boot record to the system partition may break the partition table and cause the partition to be inaccessible.

Reviews | 0 0

2007-12-24 12:38zengwentuan33 | class Three

Use DOS command fdisk to recover the main boot sector MBR (main/master boot Record)---boot the system with Win98 boot disk or DOS boot disk to a pure DOS prompt, execute: Advanced line fdisk work, and then press Y to select a large hard drive to

Windows Linux dual system boot repair

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.