無法開機(疑似grub問題) - Linux
By Robert
at 2020-01-03T16:36
at 2020-01-03T16:36
Table of Contents
發行版: Lubuntu 19.10
Linux經驗: 低
昨天安裝完系統後在摸索套件的過程中,用套件管理軟體使用了全部更新按鈕
過程還算順利,但在中途跳出一個問題是請問grub要安裝在哪個分割區
我的分割區主要就 /、/boot、/home 三個(外加一個SWAP)
查了一下grub是開機用的套件,所以就選了/boot
之後他就繼續更新下去,只是最後跳出一個失敗訊息,但是我沒在意就沒記錄下來
然後我將電腦重開機,結果在跑完BIOS硬體檢測後出現亂碼
說亂碼其實也不是,只是由一堆詞跟數字組成,找不到可以閱讀的句子
只看得懂裡面有kernel這個詞
---
現在我想先用USB來修復grub試試看,想先問問看步驟有沒有問題
照網路上找到的方法:
sudo fdisk -l #查看電腦中的硬碟分割狀態
sudo mount /dev/sda1 /mnt #掛載分區 #這邊比較有疑問,我要掛的是/還是/boot
sudo grub-install –boot-directory=/mnt/boot /dev/sda #修復grub
#這邊的疑問是好像上面直接掛/boot分區的中間是--boot-directory=/mnt
#如果沒有/boot分區的話就是--boot-directory=/mnt/boot
不知道對不對,先感謝幫忙回答的各位先進了
--
Linux經驗: 低
昨天安裝完系統後在摸索套件的過程中,用套件管理軟體使用了全部更新按鈕
過程還算順利,但在中途跳出一個問題是請問grub要安裝在哪個分割區
我的分割區主要就 /、/boot、/home 三個(外加一個SWAP)
查了一下grub是開機用的套件,所以就選了/boot
之後他就繼續更新下去,只是最後跳出一個失敗訊息,但是我沒在意就沒記錄下來
然後我將電腦重開機,結果在跑完BIOS硬體檢測後出現亂碼
說亂碼其實也不是,只是由一堆詞跟數字組成,找不到可以閱讀的句子
只看得懂裡面有kernel這個詞
---
現在我想先用USB來修復grub試試看,想先問問看步驟有沒有問題
照網路上找到的方法:
sudo fdisk -l #查看電腦中的硬碟分割狀態
sudo mount /dev/sda1 /mnt #掛載分區 #這邊比較有疑問,我要掛的是/還是/boot
sudo grub-install –boot-directory=/mnt/boot /dev/sda #修復grub
#這邊的疑問是好像上面直接掛/boot分區的中間是--boot-directory=/mnt
#如果沒有/boot分區的話就是--boot-directory=/mnt/boot
不知道對不對,先感謝幫忙回答的各位先進了
--
Tags:
Linux
All Comments
By Michael
at 2020-01-06T05:24
at 2020-01-06T05:24
By Hamiltion
at 2020-01-07T21:18
at 2020-01-07T21:18
By Oscar
at 2020-01-08T09:07
at 2020-01-08T09:07
By Anonymous
at 2020-01-09T10:39
at 2020-01-09T10:39
By Hedda
at 2020-01-10T21:36
at 2020-01-10T21:36
By Rebecca
at 2020-01-12T22:21
at 2020-01-12T22:21
By David
at 2020-01-13T12:59
at 2020-01-13T12:59
By Damian
at 2020-01-15T21:58
at 2020-01-15T21:58
By Ina
at 2020-01-20T05:42
at 2020-01-20T05:42
By Gilbert
at 2020-01-20T09:17
at 2020-01-20T09:17
By Kristin
at 2020-01-21T15:24
at 2020-01-21T15:24
By Belly
at 2020-01-26T03:55
at 2020-01-26T03:55
By Megan
at 2020-01-29T13:35
at 2020-01-29T13:35
By Agnes
at 2020-02-02T18:11
at 2020-02-02T18:11
By Jack
at 2020-02-03T03:57
at 2020-02-03T03:57
By Edward Lewis
at 2020-02-03T16:07
at 2020-02-03T16:07
By Leila
at 2020-02-07T05:08
at 2020-02-07T05:08
By Jake
at 2020-02-11T02:19
at 2020-02-11T02:19
By Frederic
at 2020-02-15T01:00
at 2020-02-15T01:00
By Barb Cronin
at 2020-02-18T03:05
at 2020-02-18T03:05
By Harry
at 2020-02-19T03:30
at 2020-02-19T03:30
By Lauren
at 2020-02-20T21:07
at 2020-02-20T21:07
By Gary
at 2020-02-25T05:48
at 2020-02-25T05:48
By Caroline
at 2020-02-26T01:02
at 2020-02-26T01:02
By Kristin
at 2020-02-29T05:03
at 2020-02-29T05:03
By Enid
at 2020-02-29T12:38
at 2020-02-29T12:38
By Jack
at 2020-03-02T17:47
at 2020-03-02T17:47
By Kumar
at 2020-03-03T18:04
at 2020-03-03T18:04
By Ina
at 2020-03-06T04:57
at 2020-03-06T04:57
By George
at 2020-03-06T23:32
at 2020-03-06T23:32
By Callum
at 2020-03-07T21:02
at 2020-03-07T21:02
By Elvira
at 2020-03-08T04:25
at 2020-03-08T04:25
By Blanche
at 2020-03-08T13:17
at 2020-03-08T13:17
By Daph Bay
at 2020-03-11T10:12
at 2020-03-11T10:12
By Franklin
at 2020-03-12T16:44
at 2020-03-12T16:44
By Candice
at 2020-03-13T19:10
at 2020-03-13T19:10
By Zenobia
at 2020-03-15T15:05
at 2020-03-15T15:05
By Zora
at 2020-03-17T21:07
at 2020-03-17T21:07
By Linda
at 2020-03-20T07:15
at 2020-03-20T07:15
By Liam
at 2020-03-24T03:39
at 2020-03-24T03:39
By Frederica
at 2020-03-28T02:48
at 2020-03-28T02:48
By Frederica
at 2020-03-30T20:31
at 2020-03-30T20:31
Related Posts
開機速度很慢
By Victoria
at 2020-01-01T20:56
at 2020-01-01T20:56
coova chilli只能裝在openwrt上?
By Jacky
at 2019-12-31T16:31
at 2019-12-31T16:31
Ubuntu server 18.04的iptables怪怪的
By Charlotte
at 2019-12-30T21:02
at 2019-12-30T21:02
升級kernel時update-initramfs 太慢
By Hardy
at 2019-12-28T20:02
at 2019-12-28T20:02
Eject跟“Safely Remove"的差別
By Ivy
at 2019-12-27T12:59
at 2019-12-27T12:59