Ubuntu grub利用安裝光盤硬盤安裝ISO文件
Ubuntu grub對(duì)于電腦使用的玩家的常用軟件,然后我就學(xué)習(xí)及深入的研究Ubuntu grub,在這里和大家一起探討Ubuntu grub的使用方法,希望對(duì)大家有用。重裝windows后會(huì)發(fā)現(xiàn)重啟動(dòng)沒有Ubuntu grub的選擇項(xiàng),無法進(jìn)入U(xiǎn)buntu。這時(shí)需要重新安裝grub.一個(gè)簡單的辦法就是利用安裝光盤或者硬盤安裝時(shí)的ISO文件。
進(jìn)入liveCD,Ubuntu grub在終端中輸入sudo grub,會(huì)有如下提示符:Ubuntu grub>.輸入root (hdx, .在這里,x是指第幾塊硬盤,從0開始算。大部分人都只有一塊硬盤,所以寫root (hd0,即可。
點(diǎn)Tab鍵,一下或者兩次。這時(shí)會(huì)給出類似下面的提示:
- [ Minimal BASH-like line editing is supported. For
- the first word, TAB lists possible command
- completions. Anywhere else TAB lists the possible
- completions of a device/filename. ]
- grub> root (hd0,
- Possible partitions are:
- Partition num: 0, Filesystem type unknown, partition type 0x7
- Partition num: 2, Filesystem type is ext2fs, partition type 0x83
- Partition num: 4, Filesystem type unknown, partition type 0x7
- Partition num: 5, Filesystem type unknown, partition type 0x7
- Partition num: 6, Filesystem type is fat, partition type 0xb
- Partition num: 7, Filesystem type unknown, partition type 0x82
Ubuntu grub> root (hd0,
自己查看邏輯盤符,輸入,我輸入的是root (hd0,2)。回車。再輸入setup (hd0)命令。這里也是指第幾塊硬盤。然后就OK啦。
【編輯推薦】