How to find a lost Windows or Linux system

xiaoxiao2021-03-06  131

Situation 1:

After the machine reloaded Windows, the boot started directly into Windows, the original Linux system is lost.

This is due to the overbearing of Windows. After reloading Windows, Windows rewritten MBR and covered GRUB. Solution is simple: use Linux first installation disk to enter the Linx Rescue mode, execute the following two commands: chroot / mnt / sysimage # Change Linux root directory GRUB-INSTALL / DEV / HDA # Install GRUB to MBR

Situation 2

After installing Linux, boot start and discover the loss of Window system

Log in to Linux with root users, use fdisk -l to view current partition information

From the list, you can see the information of the WINIDOWS partition. Find the wins of the first partition device number, assume that it is HDA1.

Open /etc/grub.conf, add the following information

Title Windows 2000 OS

Rootnoverify (HD0, 0) # HD0 is the first physical Disk, 0 means the device number of the WINS main partition HDA1: 1-1 = 0

ChainLoader 1 # Activate WINS home partition

转载请注明原文地址:https://www.9cbs.com/read-127104.html

New Post(0)