当前位置: 技术问答>linux和unix
grub.conf中设置了默认引导winxp,timeout=0了,现在每次启动都是进入winxp,我装linux时候没有做引导盘,怎么才能进入linux,怎么才能修改grub.conf
来源: 互联网 发布时间:2016-02-18
本文导语: grub.conf中设置了默认引导winxp,timeout=0了,现在每次启动都是进入winxp,我装linux时候没有做引导盘,怎么才能进入linux,怎么才能修改grub.conf | 1.安装gurbfordos 0.4.3,解压到C:下,修改boot.ini,最后添加C:...
grub.conf中设置了默认引导winxp,timeout=0了,现在每次启动都是进入winxp,我装linux时候没有做引导盘,怎么才能进入linux,怎么才能修改grub.conf
|
1.安装gurbfordos 0.4.3,解压到C:下,修改boot.ini,最后添加C:GRLDR="Start Linux GRUB"
2.修改menu.lst,我的如下:
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
color black/cyan yellow/cyan
timeout 8
default=0
title Login Fedora Core (2.6.20-1.2320.fc5)
root (hd0,8)
kernel /vmlinuz-2.6.20-1.2320.fc5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.20-1.2320.fc5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,8)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
title Login Windows XP
rootnoverify (hd0,0)
chainloader +1
title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2
title find and load CMLDR of Windows NT/2K/XP
fallback 2
find --set-root /cmldr
chainloader /cmldr
savedefault --wait=2
title find and load IO.SYS of Windows 9x/Me
fallback 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2
title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst
title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst
title commandline
savedefault --wait=2
commandline
title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title back to dos
savedefault --wait=2
quit
title reboot
savedefault --wait=2
reboot
title halt
savedefault --wait=2
halt
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title memdrive based on win98 partition (hd0,5)
map --mem (hd0,6)+1 (hd0)
# map --mem (hd0,0)/win98.gz (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)
savedefault --wait=2
title WARING!!!! Start Install FC-5(Linux)
root (hd0,5)
kernel /isolinux/vmlinuz
initrd /isolinux/initrd.img
boot
2.修改menu.lst,我的如下:
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
color black/cyan yellow/cyan
timeout 8
default=0
title Login Fedora Core (2.6.20-1.2320.fc5)
root (hd0,8)
kernel /vmlinuz-2.6.20-1.2320.fc5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.20-1.2320.fc5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,8)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
title Login Windows XP
rootnoverify (hd0,0)
chainloader +1
title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2
title find and load CMLDR of Windows NT/2K/XP
fallback 2
find --set-root /cmldr
chainloader /cmldr
savedefault --wait=2
title find and load IO.SYS of Windows 9x/Me
fallback 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2
title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst
title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst
title commandline
savedefault --wait=2
commandline
title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title back to dos
savedefault --wait=2
quit
title reboot
savedefault --wait=2
reboot
title halt
savedefault --wait=2
halt
title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2
title memdrive based on win98 partition (hd0,5)
map --mem (hd0,6)+1 (hd0)
# map --mem (hd0,0)/win98.gz (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)
savedefault --wait=2
title WARING!!!! Start Install FC-5(Linux)
root (hd0,5)
kernel /isolinux/vmlinuz
initrd /isolinux/initrd.img
boot
|
可以仍然用 安装光盘1进去.
之后他会问你要不要升级系统,还 是安装新系统
选 升级
之后 配置新引导文件
之后他会问你要不要升级系统,还 是安装新系统
选 升级
之后 配置新引导文件
|
yqh2648说的是用DOS版的grub引导linux,然后修改menu.lst(grun.conf)