Reboot and repair after windows and ubuntu are installed again

Source: Internet
Author: User

After windows and ubuntu are re-installed on both systems, the boot fix for windows 7 is reinstalled in the notebook today. After that, windows 7 is directly started and there is no linux option. solution: 1. Find a linux liveCD disc or start it with a USB flash disk. 2. Enter linux liveCD, open the terminal, and run the sudo passwd root command to set the root password, switch to root 3, use fdisk-l to list the disks, and find the linux partitions. My boot is separately partitioned, Which is sda9, depending on your computer. 4. Run mount/dev/sda9/mnt to mount it. 5. Run the grub-install-root -- directory =/mnt/dev/sda command to install grub, after the reboot is completed, the boot will be restored.

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.