重裝Windows後,修復Grub開機選單

ubuntu  昨天在重灌Windows 7後,grub選單理所當然的被吃了…,上回有遇到類似的問題,重灌ubuntu遇到發生grub選單不見的情形,不過當時比較單純,在ubuntu讓grub重新掃一下磁區就好,這回是只能進Windows,So we need additional tools the。

  首先準備ubuntu光碟,或是直接做成開機隨身碟,進入live模式,Then put through the following instruction grub installed back:

sudo fdisk -l  (先確認你的 / 跟 /boot 是在哪個磁區,這邊以/dev/sda5為例)    sudo mount /dev/sda5 /mnt  (掛載該磁區)    sudo grub-install /dev/sda --root-directory=/mnt  (安裝grub至開機磁區所在的磁碟)    sudo reboot  (重開機)

[Links]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.