安裝ubuntu後沒有開機啟動項解決方案

2021-06-29 00:05:57 字數 1963 閱讀 3793

然後是坑爹的引導問題了。先說最常見的乙個。在重灌系統之後,開機啟動介面的ubuntu引導不見了,直接進入新安裝的window系統中。下面是如何恢復ubuntu引導的方法:

1)準備一張ubuntu系統安裝盤;

2)將ubuntu系統安裝盤放入光碟機,重新啟動計算機,進入bios,將開機啟動設定為光碟機(cd/rom)啟動方式;

3)然後儲存設定退出,等待片刻就進入到ubuntu的安裝介面,此時有兩個選擇

1.在該光碟上試用ubuntu系統

2.將ubuntu系統安裝到計算機上

選擇"在該光碟上試用ubuntu系統",進入到ubuntu系統之後,開啟終端(快捷鍵組合是ctrl+alt+t);

4)在終端下輸入sudo -i(獲得管理員許可權)

5)在終端下輸入fdisk -l(是小寫的字母'l',檢視碟符列表)

會出現類似下面的資訊:

disk /dev/sda: 320.1 gb, 320072933376 bytes     255 heads, 63 sectors/track, 38913 cylinders     units = cylinders of 16065 * 512 = 8225280 bytes     disk identifier: 0x70f7ab9c

device boot start end blocks id system     /dev/sda1 1 1627 13060096 27 unknown     partition 1 does not end on cylinder boundary.     /dev/sda2 * 1627 1639102400 7 hpfs/ntfs     partition 2 does not end on cylinder boundary.     /dev/sda3 1639 8166 52429859 7 hpfs/ntfs     /dev/sda4 8167 38913 246975277+ 5 extended     /dev/sda5 8167 32385 194539082+ 7 hpfs/ntfs     /dev/sda6 32386 38788 51432066 83 linux     /dev/sda7 38789 38913 1004031 82 linux swap / solaris

然後找到id為83的碟符,根據上面顯示的資訊可知當時裝ubuntu時是裝在sda6這個分割槽。

6)在終端輸入mount /dev/sda* /mnt

(*代表ubuntu系統所在的分割槽,即上一步顯示結果中id為83的分割槽號,如上面顯示的是在sda6這個分割槽,

所以輸入的是mount /dev/sda6 /mnt

注意:mount後面有乙個空格,sda6後面也有乙個空格,這兩個空格千萬不要漏掉,否則會報錯)

7)上一步結束之後,繼續在終端中輸入grub-install --root-directory=/mnt /dev/sda

等待一會兒,若出現installationfinished,no error reported則表示成功了

(注意:grub-install之間沒有空格,--root前面有乙個空格,--root前面是兩個'-',/mnt後面有乙個空格)

8)到此,ubuntu引導基本恢復,重啟電腦後,就可以看到熟悉的ubuntu引導介面了,進入ubuntu系統,開啟終端輸入

sudo update-grub

等待片刻顯示以下資訊:

generating grub.cfg ...     found linux image: /boot/vmlinuz-2.6.31-20-generic     found initrd image: /boot/initrd.img-2.6.31-20-generic     found memtest86+ image: /boot/memtest86+.bin     found windows vista (loader) on /dev/sda1     found windows 7 (loader) on /dev/sda2     done

恢復工作便全部完成了。

Ubuntu7 10開機沒有啟動畫面

ubuntu7.10開機後,啟動過程是正常的,但是沒有啟動畫面,就是有個進度條的那個畫面沒有出現,測試pc為ibm thinkpad r60,這是usplsh.conf設定不當,解決辦法 1.sudo gedit etc usplash.conf 初始設定 usplash configuration...

ubuntu開機啟動

ubuntu開機之後會執行 etc rc.local檔案中的指令碼,所以我們可以直接在 etc rc.local中新增啟動指令碼。當然要新增到語句 exit 0前面才行。比如,我希望開機啟動goagent,那麼 1.vim etc rc.local 2.在exit 0前面新增下列語句 python ...

VMware安裝Ubuntu後開機輸入密碼黑屏

今天我的虛擬機器突然啟動後黑屏了。然後按shift ctrl f1進入命令模式。登陸後看到有好些包提示更新。於是更新後就可以了。更新命令。apt get update apt get upgrade apt get full upgrade apt get dist upgrade 那麼,這四個公升...