偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.
全部博文(1750)
分类: LINUX
2010-10-21 12:37:46
Last time, my computer was using dual boot Ubuntu and Windows XP. But, something happen with my Windows XP and I need to re-install my Windows. This time, I install Windows 7 on my Laptop and replacing Windows 7. So currently I have Windows 7 and Ubuntu installed. But, when I start my computer, its automatically boot the Windows 7 without any boot option to select operating system to boot.
I search many article and found the following to restore my grub back again.
1. Boot your computer with ubuntu CD.
2. Go through all the process until you reach "[!!!] Disk Partition"
3. Select Manual Partition
4. Mount your appropriate linux partitions
/
/boot
swap
…..
5. DO NOT FORMAT THEM. (Be careful, do not format your disk, otherwise your ubuntu installation and data will be erased.
6. Finish the manual partition
7. Say "Yes" when it asks you to save the changes
8. It will give you errors saying that "the system couldn’t install ….." after that
9. Ignore them, keep select "continue" until you get back to the Ubuntu installation menu
10. Jump to "Install Grub …."
11. Once it is finished, just restart your computer
But, there is another way that better and simpler for you.
1. Boot your computer using Ubuntu desktop. Choose try ubuntu without installing……
2. Open terminal
3. Type this command. You will entering the “grub>” prompt.
sudo grub
4. Then follow with this. This command below will display the location.
find /boot/grub/stage1
5. Note the output of the command above, and use it in the command below.
root(hd?,?)
The command will result in something like this: (hd0,4)
6. The last step is type this command:
setup(hd0)
Now you are finish and you can restart your computer.