Recover Grub2 using a LiveCD(for Fedora 17)

$ su
$ cd /media
$ mkdir tmp                                                                   # make a temporary directory to mount /boot
$ mount /dev/sda3 tmp                                                 # sda3 is my /boot partition
$ grub2-install --boot-directory=tmp /dev/sda               # install grub2 at the mbr of sda
$ grub2-mkconfig -o tmp/grub2/grub.cfg                       # update grub.cfg
$ reboot

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章