Uyibuyisela njani iGRUB kwi-Ubuntu

Faka kwakhona iGrub Ubuntu

Phakathi kweebhugi ze-Linux ezinokuthi zisenze soyike kakhulu, ndicinga ukuba kukho ezimbini: enye inokusenza soyike iquka igama elifanayo egameni layo, kwaye i-bug ibizwa ngokuba yi "kernel panic". Kodwa njengomntu osebenzise i-Linux iminyaka emininzi kwaye wayesebenzisa i-dualboot, kwaye akazange abone i-kernel panic, ezona ndandizoyika kakhulu ngokwembali ibiziingozi ze-GRUB. Ukuba oku kwenzekile kuwe, kwaye usebenzisa inkqubo yokusebenza esekwe kwiCanonical, eli nqaku liza kukufundisa ubuyisela njani ubuntu grub.

DUB yona Inkqubo que inoxanduva lokulayisha nokulawula inkqubo yokuqalisa, ukuqala ngesiNgesi. Yeyona bootloader ixhaphake kakhulu kunikezelo lweLinux. I-bootloader yisoftware yokuqala esebenzayo xa ikhompyuter iqala, kwaye ilayisha inkqubo yokusebenza kernel emva koko ikernel iqale ukuphumla, njengeqokobhe, umphathi wokubonisa, ubume begraphical nayo yonke enye into. Akukho GRUB, akukho qela.

Phinda ufake Ubuntu GRUB ukulungisa imiba encinci

Kusenokubakho izizathu ezininzi zokuphinda ufake Ubuntu kwi-GRUB. Ezinye zazo zinokusetwa ngokutsha okanye qalisa kwakhona iGRUB, ngengqiqo yokuba ibuyela kwimeko yayo yokuqala ukuba sifumana ukusilela ngesoftware.

Ukuba sinokungena kwinkqubo yokusebenza kwaye sifuna ukuphinda ufake Ubuntu kwi-GRUB, inkqubo ilula kakhulu. Kuya kwanela ukuvula i-terminal kwaye ubhale:

sudo update-grub

Ngomyalelo ongentla, ukuba kukho ingxaki ngofakelo lwakho, iya kuzama ukuyilungisa ngokuzenzekelayo. Ukuba senze naluphi na ulungelelwaniso, kufuneka luhambe, kodwa iingxaki kufuneka zihambe nazo. Oku kuya kuba yintoni kwezinye iinkqubo eyaziwa ngokuba a ukusetha kwakhona okuthambileyo okanye ukusetha kwakhona okuthambileyo kwe-GRUB.

Ukugqiba inkqubo kuya kufuneka iqalise kwakhona inkqubo yokusebenza, kwaye kuya kuba ngelo xesha xa siya kubona okanye siyeke ukubona into ebisicaphukisa kutshanje.

Uyibuyisela njani ukuba andikwazi kungena kwinkqubo yokusebenza

Ukuba asikwazi ukungena kwisixokelelwano sokusebenza, imeko sele inenkohliso ngandlel’ ithile. Ngenxa yezizathu ezinje kufanelekile ukuba uhlale unofakelo lwe-USB okanye Phila kwi-USB ngenkqubo yokusebenza esiyifake kwikhompyuter yethu. Ukuba sinabaninzi, kufanelekile ukwenza i-USB nge kunomoya esinokuthi ngayo siqalise iiSeshini ezibukhoma ezahlukeneyo. Kodwa into ebalulekileyo kukuba sinayo i-USB enye enenkqubo efanayo nekhompyuter yethu yokusombulula iingxaki ezinje.

Ngenxa yokuba ukufaka kwakhona, okanye apha kungcono ukuthetha ukulungisa, i-Ubuntu GRUB ukuba asikwazi ukungena kwinkqubo yokusebenza, kuya kufuneka siyenze kwi-Live USB; iya kuba yeyona ndlela ilula. Inkqubo iya kuba ngolu hlobo lulandelayo:

  1. Sicinga ukuba sele sine-USB ephilayo, ngoko ke siqala kuyo. Ukuba asinayo kwaye sinenye ikhompyuter apho sinokuyidala, siyidala kuqala kwaye siqale kuyo.
  2. Xa isixelela ukuba senze ntoni, sikhetha inketho ethi "Zama Ubuntu", akukho nto sinokukhetha ukuyifaka okanye asiyi kungena kwiSeshini ebukhoma.
  3. Nje ukuba singene, into efanayo: okokuqala sikhetha ulwimi esifuna ngalo ujongano kwaye emva koko sikhethe "Zama Ubuntu", nto leyo eya kusenza singene kwiSeshini ebukhoma.
  4. Sivula i-terminal, into enokwenziwa ngendibaniselwano yesitshixo Ctrl+Alt+T.
  5. Ngomyalelo olandelayo siya kufumanisa isahlulelo apho Ubuntu bufakwe khona:
sudo fdisk -l
  1. Sifaka isahlulelo se-Ubuntu kwi-/mnt directory ngalo myalelo (ukutshintsha i-X kunye no-Y kwezo zokuqhuba kunye nokwahlulahlula, njenge-sda1):
sudo intaba /dev/sdXY /mnt
  1. Ngoku kufuneka unyuse izahlulelo zenkqubo ekhethekileyo:
kuba ndingaphakathi /sys/proc/run/dev; yenza i-sudo mount --bophelela "$i" "/mnt$i"; nikela
  1. Kwinyathelo elilandelayo kunye nalo myalelo ulandelayo, siya kutshintsha ulawulo lweengcambu kwisahlulelo esinyusiweyo:
sudo chroot /mnt
  1. Okulandelayo sibuyisela i-GRUB kwi-hard drive (njengangaphambili, ukutshintsha i-X kwileta yokuqhuba, njenge-sda:
grub-fake /dev/sdX
  1. Sihlaziya ubumbeko lwe-GRUB:
uhlaziyo-lwegrub
  1. Kumanyathelo ambalwa alandelayo siza kubuyela emva, siqale ngokuphuma kwiseshoni yechroot ngo "phuma" ngaphandle kweengcaphuno.
  2. Ngoku sehlisa izahlulo zenkqubo ekhethekileyo:
kuba ndingaphakathi /sys/proc/run/dev; yenza sudo unyue "/mnt$i"; nikela
  1. Ekugqibeleni, siqala kwakhona ikhompyuter. Ukwenza oku, akufuneki silibale ukususa ukufakela kwe-USB, okanye kuya kuphinda kungene kuyo kwaye asiyi kubona utshintsho.

Faka kwakhona inkqubo yokusebenza

Ewe kunjalo, umntu othe wakhubeka kweli nqaku enethemba lokulungisa izinto ngokulungisa i-GRUB akanakulindela ukufakwa kwakhona kwayo yonke inkqubo yokusebenza ukwenza iqhinga, kodwa ngamanye amaxesha. kuninzi kunokulungiswa ngokufakelwa kwakhona.

Ukufakela kwakhona into ayikufaki kwasekuqaleni. Endaweni yoko, ufaka isoftware ebalulekileyo ngokutshintsha undoqo wenkqubo yokusebenza kunye neepakethi kwimeko yazo yangaphambili. Ke ngoko, lukhetho, kwaye lusebenza kakhulu, kuba luya kulungisa ingxaki yeGRUB kwaye Idatha kunye namaxwebhu ethu akufanele alahleke.

Xa siza kufaka Ubuntu, ukuba sele sifakwe Ubuntu, isinika ithuba lokuyifakela kwinkqubo ekhoyo, kwaye oku kuya kwenza ngaphezulu okanye ngaphantsi okufanayo naxa sibuyisela iselula, kunye nokwahlukana ukuba umxholo i/ikhaya incwadi eneenkcukacha iya kuhlala. Iinkqubo ezifakiweyo ziya kunyamalala, kodwa hayi iisetingi zakho. Ke ngoko, emva kofakelo olubonakala ngathi lusuka ekuqaleni, xa sifaka nayiphi na inkqubo, uqwalaselo ebesinalo ngaphambi kokuphinda sifake inkqubo kufuneka lubekho. Namaxwebhu ethu nawo.

Kwaye nangona oku kuhlala kunjalo, kubasebenzisi abafuna ukukhululeka ngakumbi ngolu hlobo lwengxaki, kuyafaneleka ukwenza izahlulo ezininzi xa ufaka inkqubo yokusebenza, njengoko kuchaziwe Oku kubhaliwe. Ubuntu budinga i-boot kunye ne-root partitions nokuba yintoni na. Zombini zenziwe ngokuzenzekelayo ukuba ushiya ufakelo olungagqibekanga, kodwa luluvo olulungileyo ukwenza ezinye ezimbini: ulwahlulo lokutshintsha kunye ne/ukwahlula ekhaya. Ukuze singaphulukani nolwazi lwethu, eyona nto ibalulekileyo ngu/likhaya. Emva koko, ukuba sifuna ukufakela kwakhona kunye nazo zonke iziqinisekiso, kufuneka sikhethe "Okunye ukhetho" kwaye emva koko ingcambu yokufomatha (/), kodwa hayi/home.

Ndiyathemba ukuba esi sifundo sikuncedile ukuba uphinde ufake Ubuntu GRUB, okanye ubuncinci ukuba ukwazile ukuyisebenzisa kwakhona ngaphandle kokuphulukana nolwazi oluninzi.


Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Inoxanduva lwedatha: I-AB Internet Networks 2008 SL
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.