Windows partition not found after dual-system Linux Installation
Source: Internet
Author: User
After installing Linux on a dual system, you cannot find the Windows partition-general Linux technology-Linux technology and application information. For details, refer to the following section. A friend's mistake was that he chose "format all" when installing Linux. Now Windows cannot be reinstalled.
My solution is to first allocate a partition for Windows in Linux and then reinstall Windows.
After I searched the internet, the solution for the related part was:
1. Return the hard disk partition to Windows
Use PQ to delete LINUX partitions and create a new WIN partition.
You can use the partition lattice FAT32 or NTFS windows!
Fdisk/mbr rebuilding Master Boot records
I used to do this. I started with a dos boot disk, deleted non-dos partitions, created partitions, and allocated all free space to him. now you have another option. You can start it with an xp, 2 K, or 2003 system disk. During the installation process, you will be prompted Which partition to install, at this time, it is the same for you to delete non-dos partitions and then re-create partitions, and the speed is very fast. After the division is complete, you will not install them.
If you install the boot program in the mbr, you may not be able to boot the windows system. Use the boot disk to start it, and then run fdisk/mbr.
If you install the boot program in the mbr, that is to say, the grub graphic interface directs the program to the system now, you will not be able to enter the windows system after you delete the Linux partition. Therefore, you should first start it with the Windows installation disk, enter rescue mode, enter
Fdisk/mbr
You can.
In this way, you can go to Windows to delete Linux partitions. Right-click my computer-> Manage-> Computer Management (local)-> storage-> disk management, and find the Linux partition (generally, it is a partition other than the Windows partition, so proceed with caution !) Just delete it.
If you cannot enter WINDOWS, enter e on the system selection page, and then enter three lines of commands to access WINDOWS.
Command: (Press enter after each line is written)
Rootnoverify (hd0, 0)
Makeactive
Chainloader + 1
Install a dwarf DOS toolbox and start it into DOS. fdisk/mbr is okay!
2. reinstall windows while maintaining linux
Before installing linux and reinstalling ipvs, we strongly recommend that you do the following:
Run the following command to back up the Boot Sector:
# Dd if =/dev/hda of =/root/Debian. bs = 512 count = 1
In this case, a Debian. bs file is generated, and the file will not be stored (not the system disk ).
If you have Debian. bs, everything will be fine.
Under XP (after reinstalling the system), copy the generated Debian. bs to the C root directory.
Modify boot. ini in the root directory of the C drive, and add the following after boot. ini:
C: \ Debian. bs = "Debian Linux"
Change "timeout = 0" of boot. ini to "timeout = 5"
PS: In VISTA, It is troublesome:
Run cmd with the Administrator permission, and then
Bcdedit/create/d "Debian"/application bootsector
Note: Create a startup Item named "Debian" by loading the Boot Sector file type
After execution, a {GUID} will be returned. The following command uses this {GUID}
Bcdedit/set {GUID} device partition = C:
Note: Set the partition where the Boot Sector file is located (that is, the partition where Debian. bs is located)
Bcdedit/set {GUID} path \ Debian. bs
Note: Specify the path and file name of the boot sector file (the root directory must be indicated by a backslash)
Bcdedit/displayorder {GUID}/addlast
Note: add the Debian menu item to the end.
Finally, VISTA can configure timeout in msconfig.
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