????1??????

?????????????C??NTFS????D(NTFS)??E??350G?? NTFS??

????????ubuntu-12.04-desktop-i386.iso???????ubuntu12.04

????????????liveCD?н?E????????????β?????????????100G??ext4???????????"/"??????????2G??SWAP?????????????D???SWAP??????250G?????δ???????????????????grub?????ext4????????????grub???????????????

????????????windows????δ?????250G????????????μ?NTFS??????E????????????windows????????linux??ext????????????????·????????ext4????????????????????????

????2??Grub rescue

???????????????????error: unknown filesystem??????grub rescue??

error: unknown filesystem
grub rescue>
????????ls?????????
grub rescue>ls
(hd0) (hd0??msdos7) (hd0??msdos6) (hd0??msdos5) (hd0??msdos1)
????????????????ls?????????grub????????

grub rescue>ls (hd0??msdosX)
?????????????????????error: unknown filesystem?????????????????????????????grub?????ext4?????????????grub rescue??????????????????????liveCD???????????????????

????3?????????linux????

??????????й??????????????????U??liveCD??????????UNetbootin??UltraISO??ubuntu-12.04-desktop-i386.iso????д??U?????????????U?????????飬???1G??????16G???????????1G U????????win pe?????????????????????????????????????????????USB??????ubuntu12.04????????

??????liveCD????ubuntu??????fdisk???????????????????????ext4???????

???????testdisk??????????????????apt-get???????δ???????????????6.14?棬???У??????????裬????????????????D?????????Deleted?????????????????????????????start??end??????з???????????Linux ext4????????P????????????б???????????????????????????????????????????D???*??Bootable Primary??????????????????C???*?????P??Primary?????????????bootable?????????????????????????????Щ???д????????

???????testdisk?????????fdisk?????????ext4???????????????

????4?????grub

????????????????grub rescue????????????????????????ls?????ls (hd0??msdosX)???г??????μ???????????ж??linux???????????????????????????/boot/grub??

???????"/boot"??е??????????????????
grub rescue>ls (hd0??msdosX)/boot/grub
???????"/boot"?????????????????????????????
grub rescue>ls (hd0??msdosX)/grub
???????????????г?????????????????grub??λ???
grub rescue>set root=(hd0??msdosX)
grub rescue>set prefix=(hd0??msdosX)/boot/grub
grub rescue>insmod /boot/grub/normal.mod
??????????
grub rescue>normal
?????????Υ??grub??????????????ubuntu??????????
sudo update-grub
sudo grub-install /dev/sda
????????sda????????????????

?????????????????grub?????????????