QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1005|回复: 4

如何修改MDK的启动菜单。。。。。

[复制链接]
发表于 2003-4-20 11:14:29 | 显示全部楼层 |阅读模式
我以前装过RH8.0,后来装不起来,就装MDK了
但启动菜单如下:

Linux
Linux-nonfb
Windows
floppy
old-linux
old-windows
failsaft

====================
Linux--进MDK(有图形的)
Linux-nonfb进MDK(无图形的,想RH启动那样)
windows进Windows

不知道怎么删掉其他的菜单项??
发表于 2003-4-20 12:03:12 | 显示全部楼层
cd /boot/grub
vi grub.conf
把不需要的注释掉就行了(title行首加个"#" )。
回复

使用道具 举报

 楼主| 发表于 2003-4-26 13:26:44 | 显示全部楼层
我用MDK9.0的,/boot/grub下无grub.conf文件
但有menu.lst
如下:
==============================
timeout 10
color black/cyan yellow/cyan
i18n (hd0,6)/boot/grub/messages
keytable (hd0,6)/boot/us-latin1.klt
altconfigfile (hd0,6)/boot/grub/menu.once
default 0

title linux
kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=mount quiet vga=788
initrd (hd0,6)/boot/initrd.img

#title linux-nonfb
#kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=mount
#initrd (hd0,6)/boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

title floppy
root (fd0)
chainloader +1

#title old_linux
#kernel (hd0,6)/boot/vmlinuz-2.4.19-16mdk root=/dev/hda7 quiet devfs=mount vga=788
#initrd (hd0,6)/boot/initrd-2.4.19-16mdk.img

#title old_windows
#root (hd0,0)
#makeactive
#chainloader +1

#title failsafe
#kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=nomount failsafe
#initrd (hd0,6)/boot/initrd.img
=================================
#是我加的,重起后还有一样,无效!!
为什么阿!
回复

使用道具 举报

发表于 2003-4-26 14:14:28 | 显示全部楼层
MDK 的默认启动好像是lilo
回复

使用道具 举报

 楼主| 发表于 2003-4-26 15:26:57 | 显示全部楼层
修改/etc/lilo.conf
==================
boot=/dev/hda
map=/boot/map
default=linux
keytable=/boot/us-latin1.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
ignore-table
image=/boot/vmlinuz
        label=linux
        root=/dev/hda7
        initrd=/boot/initrd.img
        append="devfs=mount quiet"
        vga=788
        read-only
#image=/boot/vmlinuz
#        label=linux-nonfb
#        root=/dev/hda7
#        initrd=/boot/initrd.img
#        append="devfs=mount"
#        read-only
other=/dev/hda1
        label=windows
        table=/dev/hda
other=/dev/fd0
        label=floppy
        unsafe
#image=/boot/vmlinuz-2.4.19-16mdk
#        label=old_linux
#        root=/dev/hda7
#        initrd=/boot/initrd-2.4.19-16mdk.img
#        append="quiet devfs=mount"
#        vga=788
#        read-only
#other=/dev/hda1
#        label=old_windows
#        table=/dev/hda
#image=/boot/vmlinuz
#        label=failsafe
#        root=/dev/hda7
#        initrd=/boot/initrd.img
#        append="devfs=nomount failsafe"
#        read-only
==============================
还是有的!无效阿.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-6 01:15 , Processed in 0.069746 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表