Windows 7 was re-installed today. Because the MBR boot zone of the hard disk is overwritten, it cannot enter Ubuntu. Therefore, you can only update the MBR again. The procedure is as follows: 1. after setting the hard disk to start, put it into Ubuntu's LiveCD. Wait a moment and you will be able to enter the Ubuntu operation interface 2. open the system terminal window, enter sudofdisk-l, and your hard disk partition will be displayed. Write down the partition code named Linux. My partition code is/dev/sda43.sudo-I and the Administrator is obtained.
Windows 7 was re-installed today. Because the MBR boot zone of the hard disk is overwritten, it cannot enter Ubuntu. Therefore, you can only update the MBR again.
The procedure is as follows:
1. After the hard disk is started, put the Ubuntu LiveCD. Wait a moment and you will be able to enter the Ubuntu operation interface.
2. Open the system terminal window. After Entering sudo fdisk-l, your hard disk partition information will be displayed. Write down the Partition Number named Linux. My name is/dev/sda4.
3. sudo-I: Get administrator permissions
4. Create a temporary directory in the/media Directory of mkdir/media/tempdir to mount/dev/sda4
5. mount linux partitions, mount/media/tempdir/dev/sda4
6. After grub-install -- root-directory =/media/tempdir/dev/sda, the installation is successful. Restart to see the boot selection Interface