自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Ubuntu 修復(fù)Grub問題解決

系統(tǒng) Linux
上面的都是網(wǎng)上可以長到的方法,我也是用這個(gè)方法恢復(fù)了Grub列表的,但是我還碰到了另外一個(gè)問題就是,我是Find命令得出的結(jié)果是(hd0,5),但是運(yùn)行的時(shí)候,發(fā)現(xiàn)Grub里面的全部都是(hd0,6),所以還是無法找到文件,進(jìn)不去系統(tǒng)。

請幾天破壞了GRUB,用LIVECD修復(fù),用LIVECD進(jìn)入圖形界面,打開終端輸入一下命令:
$sudosu
$grub
grub>boot(hd0,6)/*原本我內(nèi)核裝載(hd0,7),不知道怎么內(nèi)核所在扇區(qū)變了*/
grub>setup(hd0)

重啟電腦,發(fā)現(xiàn)grub不能請到到linux里面去
按照GRUB下方的提示,按E鍵編輯甘選項(xiàng)
將(hd0,6)改為(hd0,7)
按B鍵啟動,可以進(jìn)入linux
進(jìn)入后在/boot/grub/menu.list文件里面將相關(guān)的啟動項(xiàng)修改
以后沒有啟動電腦就不用在修改GRUB的啟動選項(xiàng)了。ubuntu下修復(fù)grub
1.用LiveCD啟動
2.打開一個(gè)終端,運(yùn)行$sudogrub命令(這里可能需要等一會兒),你會看到'grub>'這樣的提示符grubupdate
3.在提示符'grub>'后輸入find/boot/grub/stage1,你會得到一個(gè)運(yùn)行結(jié)果,比如我的機(jī)子上結(jié)果是(hd0,3)(這個(gè)命令其實(shí)就是找出/boot所在分區(qū))
4.運(yùn)行g(shù)rub>root(hd0,3)(這個(gè)位置要填上你機(jī)子上的運(yùn)行結(jié)果)
5.運(yùn)行g(shù)rub>setup(hd0)出現(xiàn)幾行提示文字,***是“...succeeded”修復(fù)成功!
6.運(yùn)行quit
8.重啟計(jì)算機(jī),取出liveCD

#menu.lst-See:grub(8),infogrub,update-grub(8)
#grub-install(8),grub-floppy(8),
#grub-md5-crypt,/usr/share/doc/grub
#and/usr/share/doc/grub-doc/.

##defaultnum
#SetthedefaultentrytotheentrynumberNUM.Numberingstartsfrom0,and
#theentrynumber0isthedefaultifthecommandisnotused.
#
#Youcanspecify'saved'insteadofanumber.Inthiscase,thedefaultentry
#istheentrysavedwiththecommand'savedefault'.
#WARNING:Ifyouareusingdmraiddonotuse'savedefault'oryour
#arraywilldesyncandwillnotletyoubootyoursystem.
default1

##timeoutsec
#Setatimeout,inSECseconds,beforeautomaticallybootingthedefaultentry
#(normallythefirstentrydefined).
timeout3

##hiddenmenu
#Hidesthemenubydefault(pressESCtoseethemenu)
#hiddenmenu

#Prettycolours
#colorcyan/bluewhite/blue

##password['--md5']passwd
#Ifusedinthefirstsectionofamenufile,disableallinteractiveediting
#control(menuentryeditorandcommand-line)andentriesprotectedbythe
#command'lock'
#e.g.passwordtopsecret
#password--md5$1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
#passwordtopsecret

【編輯推薦】

  1. Ubuntu GRUB非常優(yōu)秀的系統(tǒng)引導(dǎo)器
  2. Ubuntu GRUB開機(jī)選項(xiàng)修改
  3. Ubuntu grub利用安裝光盤硬盤安裝ISO文件
  4. Linux rescuev修復(fù)模式跨越控制臺登錄
  5. Linux rescue單用戶模式修復(fù)模式

 

責(zé)任編輯:chenqingxiang 來源: linuxdiyf
相關(guān)推薦

2010-06-13 11:41:53

Ubuntu Grub

2010-06-12 13:49:50

Ubuntu 10.0

2010-06-12 09:02:12

Ubuntu Grub

2011-08-16 14:32:23

UbuntuLinuxQQ

2011-09-02 15:01:29

ubuntu

2011-09-07 17:41:01

ubunturvm

2009-11-17 10:43:59

ubuntu 9.10輸入法解決方法

2011-09-02 13:25:39

UbuntuMacbuntu

2011-06-27 16:44:59

Qmake

2011-06-13 16:16:32

Qt 中文問題

2010-04-28 18:01:15

Unix系統(tǒng)

2011-11-28 22:45:19

Nginxsession

2010-05-05 10:25:24

Unix操作系統(tǒng)

2009-12-28 10:56:45

WPF Image

2012-05-09 10:08:41

跨機(jī)房

2010-05-05 14:20:46

AIX CDE

2011-01-21 14:13:10

2010-06-17 09:39:07

Ubuntu Grub

2011-01-12 17:26:27

2010-06-13 13:11:18

Ubuntu xp G
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號