LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 698|回复: 4

请教,实在请不走grub了,我想换lilo

[复制链接]
发表于 2005-1-5 18:02:03 | 显示全部楼层 |阅读模式
系统是debian unstable
#apt-get remove grub
#apt-get install lilo
#liloconfig
#lilo
可是现在重新起动的时候还是grub
怎么请也请不走了,
大家帮忙看看
vax:/home/ailantian# lilo -v
LILO version 22.6.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 17-Nov-2004, and compiled at 20:30:43 on Dec  9 2004
Debian GNU/Linux

Reading boot sector from /dev/hda
Using MENU secondary loader
Calling map_insert_data

Boot image: /vmlinuz.old -> boot/vmlinuz-2.4.18-bf2.4
Added Linux2.4.18

Boot image: /boot/vmlinuz-2.4.28
Added Linux2.4.28

Boot other: /dev/hda3, on /dev/hda, loader CHAIN
Added FreeBSD(hda3)

Fatal: Default image doesn't exist.
vax:/home/ailantian# cat /etc/lilo.conf
# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
#                       and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt', or install a new kernel.  The |
# | computer will most likely fail to boot if a kernel-image      |
# | post-install script or you don't remember to run `lilo'.      |
# |                                                               |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
#    bios=0x81

#disk=/dev/sda
#    bios=0x80

# Specifies the boot device.  This is where Lilo installs its boot
# block.  It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hda1

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller.  Using `compact' is especially recommended when
# booting from a floppy disk.  It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration.  If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well.  Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like.  If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress.  `single-key' goes with the `alias' lines in the
# `image' configurations below.  eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
prompt
timeout=150
#       prompt
#       single-key
#       delay=100
#       timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal

# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux2.6.8

#image=/vmlinuz
#       label=Linux
#       read-only
#       restricted
#       alias=1

image=/vmlinuz.old
        label=Linux2.4.18
        read-only
        optional

image=/boot/vmlinuz-2.4.28
        label=Linux2.4.28
        read-only
        optional


#       restricted
#       alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
#       label=HURD
#       restricted
#       alias=3
other=/dev/hda3
  label="FreeBSD(hda3)"



#other=/dev/hda6
#       image=/boot/vmlinuz-2.6.8-1-386
#       initrd=/boot/initrd.img-2.6.8-1-386
#       label="sarge(hda6)"
#       root=/dev/hda6
vax:/home/ailantian#
发表于 2005-1-5 18:09:06 | 显示全部楼层
实在不行用一张98盘fdisk/mbr
发表于 2005-1-5 18:49:41 | 显示全部楼层
然后重装?
发表于 2005-1-5 21:11:30 | 显示全部楼层
>Fatal: Default image doesn't exist

Hey, come on!  You have not successfully installed lilo.

In your /etc/lilo.conf, you have a line

default=Linux2.6.8

but this label is not defined!
 楼主| 发表于 2005-1-5 23:18:56 | 显示全部楼层
Post by d00m3d
>Fatal: Default image doesn't exist

Hey, come on!  You have not successfully installed lilo.

In your /etc/lilo.conf, you have a line

default=Linux2.6.8

but this label is not defined!

呵呵,说的是问题的症结,
我找了很久才找到的,
开始一直都没有注意这里,我只是看见一串Added,以为都好了的,

兄弟真是细心
谢谢了

另外上面有位朋友说fdisk /mbr
我当时也用过,
不过这个可能是最坏的一个决定,
我电脑里面没有windows系统,这么一弄了以后的结果是什么系统都起动不来了,
后来用woody的盘rescue回来的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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