Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5068902
  • 博文数量: 1200
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 14456
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
  • 认证徽章:
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1200)

文章存档

2019年(177)

2018年(81)

2017年(80)

2016年(70)

2015年(52)

2014年(41)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: 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.

阅读(1960) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册