Reinstallation of grub in Linux-general Linux technology-Linux technology and application information. For details, refer to the following section. If your computer is a dual-system (Windows + Linux), grub will be reinstalled every time the Windows system is reinstalled. If a friend asks this question today, I will paste the specific steps here, we hope to provide you with some convenience.
1: insert the Linux system installation disk and start the computer in disc startup mode.
2: in Terminal/command line mode: sh # sudo grub
3: in Terminal/command line mode: grub> root (hdx, y)
Here, x and y represent the disks and partitions of the Linux system. If you are not clear, you can query the/boot/grub/menu. lst file or enter the hd file and use the Tab.
4: in Terminal/command line mode: grub> setup (hdm, n)
Generally, enter setup (hd0) here. If you want to install grub to a custom disk and partition, enter m and n.
If the execution is successful, the screen will display: successful ......
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.