请教,怎么把 矮人DOS 加到LINUX的启动菜单里

Ubuntu各种衍生版本
回复
lalvla
帖子: 4
注册时间: 2007-02-11 17:54

请教,怎么把 矮人DOS 加到LINUX的启动菜单里

#1

帖子 lalvla » 2007-02-11 20:00

刚接触LINUX几天的菜鸟求教高手:
原来有WINDOWSXP系统,又装了个红旗的LINUX

于是最开始是用LINUX的引导


/etc/grub.conf 这个文件是这样的
***************************************************
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,7)
# kernel /vmlinuz-version ro root=/dev/hda9
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,7)/grub/splash.xpm.gz
title Red Flag Desktop (2.4.26-1)
root (hd0,7)
kernel /vmlinuz-2.4.26-1 ro root=LABEL=/ vga=785 splash=silent
initrd /initrd-2.4.26-1.img
title Red Flag Desktop (Safe Mode)
root (hd0,7)
kernel /vmlinuz-2.4.26-1 ro root=LABEL=/ 4
initrd /initrd-2.4.26-1.img
title Red Flag Desktop (Console Mode)
root (hd0,7)
kernel /vmlinuz-2.4.26-1 ro root=LABEL=/ 3
initrd /initrd-2.4.26-1.img
title Windows
rootnoverify (hd0,0)
chainloader +1

*************************************************************

这个启动WINDOWS是在最后的,我想让WINDOWSXP的启动在第一位
自己胡乱猜的,于是改成:

===============================================
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,7)
# kernel /vmlinuz-version ro root=/dev/hda9
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,7)/grub/splash.xpm.gz
title Windows
rootnoverify (hd0,0)
chainloader +1
title Red Flag Desktop (2.4.26-1)
root (hd0,7)
kernel /vmlinuz-2.4.26-1 ro root=LABEL=/ vga=785 splash=silent
initrd /initrd-2.4.26-1.img
title Red Flag Desktop (Safe Mode)
root (hd0,7)
kernel /vmlinuz-2.4.26-1 ro root=LABEL=/ 4
initrd /initrd-2.4.26-1.img
title Red Flag Desktop (Console Mode)
root (hd0,7)
kernel /vmlinuz-2.4.26-1 ro root=LABEL=/ 3
initrd /initrd-2.4.26-1.img

========================================================

结果成功了 :lol:

windowsXP下边还有个矮人DOS启动
如果想进DOS的话
实际上是先/etc/grub.conf 再c:\boot.ini

我想直接把DOS也加到LINUXL的启动菜单里,怎么弄呢?

这个是c:\boot.ini里的:
######################################
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
C:\grldr="我的DOS"
##########################################


怎么改/etc/grub.conf才能实现呢?



PS:看到一个把LINUX启动全加到WINDOWS下的帖子
但是对命令还不太熟悉,所以弄了半天没弄出来
于是想到上边的方法
继续学习命令ING
lalvla
帖子: 4
注册时间: 2007-02-11 17:54

#2

帖子 lalvla » 2007-02-12 19:52

晕哦怎么没人啊

不过这个问题我自己已经解决了呵呵
哎我怎么这么聪明呢 :oops:
linto8
帖子: 22
注册时间: 2007-01-26 23:17

#3

帖子 linto8 » 2007-02-13 15:40

这个我也想知道,在等高手来了,!
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#4

帖子 skyx » 2007-02-13 15:43

其实有个非常简单的方法

1。重新安装gurb到ubuntu所在分区。(参考有关帖子)

2。剩下的不用多说了。 :lol:
no security measure is worth anything if an attacker has physical access to the machine
回复