当前位置: 技术问答>linux和unix
急急 双系统,windows重装后,找不到linux怎么办?
来源: 互联网 发布时间:2016-03-03
本文导语: 请问一个操作系统的问题,我的计算机上装的是windows和linux双系统,前几天windows出问题了,重装了一下windos操作系统,现在再开机,就直接进入windows系统了,不再提示选择操作系统了。请问各位大虾,怎么才能进入...
请问一个操作系统的问题,我的计算机上装的是windows和linux双系统,前几天windows出问题了,重装了一下windos操作系统,现在再开机,就直接进入windows系统了,不再提示选择操作系统了。请问各位大虾,怎么才能进入我的linux系统?很急,望大家赐教!!!!
|
1.在xp下装上wingrub,在General Options中选择default,再点击菜单tools中的install grub。由于在Boot From MBR Partition中没有选择项,只好在下面选择Boot From 的BOOT.ini,在title中输入Red Hat Linux 9.0,TimeOut中输入10。点击Edit,可以看到下面的内容:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:GRLDR="Red Hat Linux 9.0"
点击install。ok。
2. 在c:bootgrubMENU.LST的内容,如下:
timeout 10
title Windows at (hd0,0)
root (hd0,0)
chainloader +1
title Red Hat Linux at (hd0,8)
root (hd0,8)
kernel (hd0,8)/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd (hd0,8)/initrd-2.4.20-8.img
3. 使用linux系统盘插入光驱,启动。在boot中的命令行中输入:linux rescue,而后再一路继续(中间可能会问要不要联网,选否就行),直到出现sh#,在输入grub,等一会,会出现grub〉,在输入rootnoverify (hd0,0),再输入chainloader +1
root (hd0,8)
setup (hd0,8)
boot
这样就行了。总算进入了你那可爱的linux系统了。
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:GRLDR="Red Hat Linux 9.0"
点击install。ok。
2. 在c:bootgrubMENU.LST的内容,如下:
timeout 10
title Windows at (hd0,0)
root (hd0,0)
chainloader +1
title Red Hat Linux at (hd0,8)
root (hd0,8)
kernel (hd0,8)/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd (hd0,8)/initrd-2.4.20-8.img
3. 使用linux系统盘插入光驱,启动。在boot中的命令行中输入:linux rescue,而后再一路继续(中间可能会问要不要联网,选否就行),直到出现sh#,在输入grub,等一会,会出现grub〉,在输入rootnoverify (hd0,0),再输入chainloader +1
root (hd0,8)
setup (hd0,8)
boot
这样就行了。总算进入了你那可爱的linux系统了。
|
请参考下这篇文章
http://blog.chinaunix.net/u1/49908/showart_400278.html
http://blog.chinaunix.net/u1/49908/showart_400278.html
|
用第一张修复盘启动出现#后
#chroot /mnt/sysimages
#grub-install /dev/hdx
#exit
#chroot /mnt/sysimages
#grub-install /dev/hdx
#exit
|
提示下,需要修复下你的grub
|
use the rescue cd or dvd ,enter the rescue mode ,
type grub,
then it will shows you the grub command line,
reinstall grub and restart your computer.
type grub,
then it will shows you the grub command line,
reinstall grub and restart your computer.
|
因为在重装windows时会重写硬盘的主引导记录,所以就无法启动grub(系统启动管理器),所以要修复grub
|
你的XP系统装在硬盘第一分区了.硬盘引导都是从硬盘0面0道1扇区开始,从你的boot.ini开始,你的BOOT是格式化C!后的.里面只有XP的记录.故只能引导你的XP系统.
你可以搜索下GRUB的配置说明类文章,将GRUB配置好.(参考:http://xn--r9zs2bfzqhmj.com/post/9701.html)
然后.在C盘的BOOT.ini中开始处添加
[boot loader]
timeout=15
default=C:boot.lnx
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)
WINDOWS="Microsoft Windows XP Professional"
/fastdetect
[VGA mode]" /basevideo /sos
C:grub.lnx="Redhat Linux - GRUB"
(参考:http://server.chinabyte.com/215/2604215.shtml)
你可以搜索下GRUB的配置说明类文章,将GRUB配置好.(参考:http://xn--r9zs2bfzqhmj.com/post/9701.html)
然后.在C盘的BOOT.ini中开始处添加
[boot loader]
timeout=15
default=C:boot.lnx
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)
WINDOWS="Microsoft Windows XP Professional"
/fastdetect
[VGA mode]" /basevideo /sos
C:grub.lnx="Redhat Linux - GRUB"
(参考:http://server.chinabyte.com/215/2604215.shtml)
|
几乎所有的linux发行版本都附带了它的resuse光盘,只要用光盘启动,重写Grub就可以了。
|
你的GRUB安装有问题所以不能正常启动