After Windows and Ubuntu are reinstalled, the grub boot fix and default start _ MySQL

Source: Internet
Author: User
Repair of grub boot and modification of default startup items for Ubuntu after Windows and Ubuntu are reinstalled

BitsCN.com

Repair of grub boot and modification of default startup items after Windows and Ubuntu are reinstalled

Today, he helped the children's shoes reinstall the system. his computer is a Windows or Ubuntu dual system, and the system to be reinstalled is windows. it is said that many games only support 64-bit, =...

So I installed windows for him and then re-guided Ubuntu. The following is a record:

Repair guided by gurb:

1. take an Ubuntu system USB flash drive or a CD. if you don't have one, burn it. how can I burn this article.

2. restart to enter the USB flash drive or CD boot. select "try Ubuntu ).

3. view information. Open the terminal (ctrl + alt + t) and enter

[Plain]

Sudo-I (administrator privilege)

Fdisk-l (view partitions and types)

Then your disk information appears.

[Plain]

Device Boot Start End Blocks Id System

Find the content in the Device column corresponding to the row 83 in the Id column and check the number of sda. The following is assumed to be sda *. (If there are multiple 83 partitions with IDs, you can try Step 4-6 one later ).

4. mount the partition. Enter (note * replacement and space) on the terminal ):

[Plain]

Mount/dev/sda */mnt

5. enter at the terminal:

[Plain]

Grub-install -- root-directory =/mnt/dev/sda

Wait a moment and you will see the words Installationfinished and No Error Reported, indicating that the setting is successful.

6. restart the computer and you will be able to see the grub boot interface of Ubuntu. if not, go back to Step 1 to see if there are multiple partitions with Id 83.

7. do not enter windows at this time. enter Ubuntu in the terminal and enter:

[Plain]

Sudo update-grub

After you restart your computer, you can access windows and Ubuntu normally. then, the grub boot is fixed.

Modify the default startup items of grub

The student also asked to change the default startup item back to windows... (This way, you can enter Ubuntu several times in a semester ...)

Remember the number of windows startup items at startup.

Enter Ubuntu and enter:

[Plain]

Sudo gedit/boot/grub. cfg

Change the value of 0 in set default = "0" to the number of lines in windows that you just saw to minus one.

Save and exit. restart.

BitsCN.com

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.