Yuav Ua Li Cas Rau Nruab Grub

Cov txheej txheem:

Yuav Ua Li Cas Rau Nruab Grub
Yuav Ua Li Cas Rau Nruab Grub

Video: Yuav Ua Li Cas Rau Nruab Grub

Video: Yuav Ua Li Cas Rau Nruab Grub
Video: Yuav Nqi Peev Lis Cas Thiaj Lis Zoo Rau Koj Txoj Kev Lag Luam? - By Tayvee lyk 2024, Kaum ib hlis
Anonim

Thaum txhim kho ntau lub tshuab hauv computer, muaj teeb meem nrog kev tswj hwm cov haujlwm khau raj ntawm lub hard disk. Piv txwv li, yog tias Linux tau teeb tsa lub khoos phis tawm rau hauv lub khoos phis tawm tshiab, thiab tsuas yog tom qab ntawd Windows raug teeb tsa, ces OS los ntawm Microsoft yuav lwv cov GRUB loader thiab thaum lub computer pib nws yuav tsis muaj peev xwm xaiv qhov system, thiab Windows yuav boot los ntawm kev ua haujlwm.

Yuav ua li cas rau nruab grub
Yuav ua li cas rau nruab grub

Tsim nyog

tej Linux LiveCD

Cov Lus Qhia

Kauj ruam 1

Txhawm rau txhim kho Grub bootloader, koj xav tau ib qho LiveCD lossis lub Linux boot disk. Lub Ubuntu CD, uas yog ob qho tib si nyob thiab teeb tsa installation tib lub sijhawm, ua haujlwm zoo tshaj.

Kauj ruam 2

Khau raj los ntawm LiveCD. Tom qab lub kaw lus tiav lawm, pib lub Terminal ("Ntawv qhia zaub mov" - "Cov Ntawv Siv" - "Default apps" - "Terminal") thiab sau cov lus txib:

sudo grub.

Sudo tso cai rau koj kom tau txais tus neeg tshaj lij txoj cai kom ua tiav qhov tau hais kom ua, thiab grub kiag pib lub plhaub. Qhov no yuav muab koj tso rau hauv khau khiab bootloader thiab qhov tsim nyog grub> sai yuav tshwm sim.

Kauj ruam 3

Tom ntej no, sau cov nram qab no:

pom / khau khiab / grub / theem1.

Cov lus nug no yuav xa rov qab tus nqi ntawm qhov chaw nyob qhov twg tus bootloader nyob (piv txwv li, hd0, 1 lossis hd0, 6). MBR khau raj tsuas muaj tsawg ntawm cov ntaub ntawv hais txog grub, thiab nrog nrhiav koj pom txhua cov ntaub ntawv koj xav tau los nruab.

Kauj ruam 4

Sau tus naj npawb ntawm seem tau txais nyob rau hauv cov lus nug hauv qab no:

cag (hdValue, tus nqi).

Kauj ruam 5

Tom qab ntawd nruab cov ntaub ntawv rau qhov boot muab faib ntawm koj lub hard drive:

kev teeb tsa (hd0).

Qhov kev thov no txhim kho lub bootloader rau lub hard drive, thiab txij li lub sijhawm thib ob ploj lawm, lub installation tau ua ncaj qha rau MBR.

Kauj Ruam 6

Tom qab ntawv tawm ntawm grub plhaub:

tawm.

Kauj Ruam 7

Muaj ob txoj hauv kev los daws qhov teeb meem. Khau raj los ntawm CD daim Live thiab teeb tsa koj lub hard drive hauv qhov chaw yooj yim tshaj plaws. Piv txwv li:

mount / dev / hda / media / tawv.

Kauj ruam 8

Tom qab ntawv, ua ib qho kev thov dhau ntawm Lub Chaw Nres Sij Hawm:

sudo grub-install / dev / hda -recheck --root-directory = / media / nyuaj.

Kev xaiv rov ua haujlwm yog siv los kuaj xyuas qhov tseeb ntawm cov ntawv / boot /grub/device.map, thiab yog tias muaj kev ua yuam kev, cov lus txib kho nws.

Kauj Ruam 9

Tshem tawm Cov LiveCD, rov pib kho koj lub computer thiab koj yuav tsum muaj peev xwm khau raj rau hauv koj cov teeb tsa kab ke dua.

Pom zoo: