I used liveCD to fix grub in ubuntu. Use Ubuntu to install CD, that is, LiveCD to start from the optical drive. open a terminal window and enter the following command in it: sudo-I (obtain super user permissions) mount/dev/sda7/mnt (that is... I used live CD to fix grub in ubuntu. Use Ubuntu to install CD, that is, to start Live CD from the optical drive. open a terminal window and enter the following command in it: sudo-I (obtain super user permissions) mount/dev/sda7/mnt (that is, the mount hard disk partition of your Ubuntu "/", such as sda7,
Depending on your actual installation,/mnt is a directory you have created for mounting.) if you have separately divided the boot partition of Ubuntu, you also need to do the following: mount/dev/sda6/mnt/boot (assume that your boot partition is in sda6) re-create the mbr grub-install -- root-directory =/mnt/dev/sda from grub to sda and restart it.
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