原本的硬碟有win2k debian
後來加灌 windows xp
所開機選單只剩 win2k win xp
於是我拿ubuntu9.04的live CD
想救回原來的選單 步驟如下
進terminal
sudo fdisk -l
:
/dev/sda1 ... HPFS/NTFS
/dev/sda2 ... HPFS/NTFS
/dev/sda3 ...
/dev/sda4 ...
/dev/sda5 ... Linux
sudo grub
grub>find /boot/grub/stage1
(hd0,5)
grub>root (hd0,5)
grub>setup (hd0)
Checking if “/boot/grub/stage1″ exists… yes
Checking if “/boot/grub/stage2″ exists… yes
Checking if “/boot/grub/e2fs_stage1_5″ exists… yes
Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 17 sectors are embedded.
succeeded
Running “install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,5)/boot/grub/stage2
/boot/grub/menu.lst”… failed
Error 22: No such partition
怎麼辦