顯示具有 grub 標籤的文章。 顯示所有文章
顯示具有 grub 標籤的文章。 顯示所有文章

2014年6月4日 星期三

Grub2 config file

No /boot/grub/menu.lst. It has been replaced by /boot/grub/grub.cfg.




References :
Grub2 - Community Help Wiki

2012年11月30日 星期五

grub 手動開機

grub> ls
(hd0) (hd0,msdos4) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
grub> ls (hd0,msdos1)/

grub> set root=(hd0,msdos1)
grub> linux /vmlinuz ro root=/dev/sda1
grub> initrd /initrd.img
grub> boot



 
Reference : 
Instigating a Manual Boot from the GRUB Prompt |

2012年11月14日 星期三

Grub 2 rescue

grub rescue> ls
grub rescue> set root=(hd0,msdos1)
grub rescue> set prefix=(hd0,msdos1)/boot/grub
grub rescue> insmod (hdx,y)/boot/grub/linux.mod 
grub rescue> insmod normal
grub rescue> normal



# mount /dev/sda1 /mnt
# grub-install --root-directory=/mnt /dev/sda
# update-grub




Reference :
出现grub rescue解决办法 - 查看主题 • Ubuntu中文论坛 
25歲,邁向理想的前站。: [Ubuntu] 解決重新分割磁碟後grub rescue的問題 
How to Reinstall Grub Onto Your MBR

2011年7月16日 星期六

Grub Error 17 修復

可能是存放系統的分割區序號改變, 導致grub無法進入stage 1.5

# grub
> find /boot/grub/stage1
> root (hd0,6)
> setup (hd0)
> quit


Reference : open http://caquibi.pixnet.net/blog/post/23358876