双系统重装windows后不能启动linux解决方法

1904阅读 0评论2009-04-26 ruanbanyong1
分类:LINUX

 今天有个网友很着急的爬上来问我,“救火啊,俺的linux不能用了”,“不要急嘛先说说情况”,“我昨天重装系统后,就没有linux的启动菜单了”,“,老问题。。,按我说的做就ok了。”
      根据他说的,很容易就判定,装windows的时候,把linux的引导区MBR给取消了,首先,在windows下装上一个 Grub for dos 地址是:
  1. Grup>root (hd0,6)  
  2. Grup>kernel /boot/xen.gz-2.6.18-8.el5  
  3. Grup>module /boot/vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet  
  4. Grup>module /boot/initrd-2.6.18-8.el5xen.img  
  5. Grup>boot  

这样,你的linux就已经启动了,然后linux下找到/boot/grub/grub.conf,编辑它:是内容类似
  1. default=0  # 默认的启动系统序号  
  2. timeout=5   #等待时间  
  3. splashimage=(hd0,6)/boot/grub/splash.xpm.gz #设置splashimage  
  4. hiddenmenu   #显示模式为折叠  
  5. title Red Hat Enterprise "" target="_blank" title="" class="mykeyword">Linux Server (2.6.18-8.el5xen) #标题  
  6.         root (hd0,6)  #根分区  
  7.         kernel /boot/xen.gz-2.6.18-8.el5  #内核路径  
  8.         module /boot/vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet  #虚拟机路径  
  9.         module /boot/initrd-2.6.18-8.el5xen.img   #   镜像路径  
  10. title Other  #  windows标题  
  11.         rootnoverify (hd0,0)  
  12.         chainloader +1  

     ok,到这里就可以高枕无忧了!
上一篇:Linux 下的多进程编程
下一篇:c/c++基本文件操作