If you reinstall Windows on a hard disk that has been installed with both Ubuntu and Windows, the Windows boot code will be written to the hard disk MBR to overwrite the original grub2. In this case, you must restart Grub2. Start the machine with UbuntuLiveCD, and then open the terminal and enter sudo-I. Note that the following operations must be confirmed repeatedly. Even a single character input error may cause damage to the Ubuntu system. Connect
If you reinstall Windows on a hard disk that has been installed with both Ubuntu and Windows, the Windows boot code will be written to the hard disk MBR to overwrite the original grub2.
In this case, you must restart Grub2.
Start the machine with Ubuntu Live CD, and then open the terminal and enter:
Sudo-I
Note: The following operations must be confirmed repeatedly. Even a single character input error may cause damage to the Ubuntu system.
Next, let's take a look at the file system configuration method of the hard disk.
Mint ~ # Fdisk-l
Disk/dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0xd25ad25a
Device Boot Start End Blocks Id System
/Dev/sda1*1 6527 52428096 7 HPFS/NTFS
/Dev/sda2 6528 30401 191767905 f W95 Ext 'd (LBA)
/Dev/sda5 6528 18464 95882240 7 HPFS/NTFS
/Dev/sda6 18465 29910 91939963 + 83 Linux
/Dev/sda7 29911 30401 3943926 82 Linux swap/Solaris