当前位置:首页 > Windows程序 > 正文

我的机器是windows和linux双系统,如何改变grub默认启动的系统?

2021-03-25 Windows程序

答:这需要修改/boot/grub/grub.conf。举一个例子你就明白了。假设你的/boot/grub/grub.conf是这样子的:


default=0
timeout=10
splashimage=(hd0,7)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,7)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=http://www.mamicode.com/
initrd /initrd-2.4.18-14.img
title DOS
rootnoverify (hd0,0)
chainloader +??牴????  ?1


那么你的grub会默认启动Red Hat Linux (2.4.18-14)这个系统,把default=0改成default=1,那么grub会

默认启动DOS这个系统。注意,这里的要点是:你想默认启动第n个title所指的系统,,那么default应该是

等于n-1

我的机器是windows和linux双系统,如何改变grub默认启动的系统?

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/67177.html