免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1184 | 回复: 0
打印 上一主题 下一主题

配置lilo [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-01 18:04 |只看该作者 |倒序浏览

                    前两天在安装Ubuntu的时候,把文件系统选择成了XFS文件系统,结果在安装GRUB的时候提示:GRUB在XFS文件系统上通常都会安装失败,试了一下,果然无法安装,最后只好选用LILO来引导。
   可是系统重启后,之前安装的Debian没有在启动项中,我在/etc/lilo.conf中添加了几项之后,竟然影响到的新立德软件包管理工具人使用,错误提示如下所示:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
  我运行了dpkg --configure -a之后,出现如下的错误:
正在设置 initramfs-tools (0.85eubuntu36) ...update-initramfs: deferring update (trigger activated)正在设置 linux-ubuntu-modules-2.6.24-17-generic (2.6.24-17.25) ...update-initramfs: Generating /boot/initrd.img-2.6.24-17-genericupdate-initramfs: lilo run failed for /boot/initrd.img-2.6.24-17-generic:Warning: LBA32 addressing assumedUnrecognized token "8.04" at or above line 108 in file '/etc/lilo.conf'dpkg:处理 linux-ubuntu-modules-2.6.24-17-generic (--configure)时出错: 子进程 post-installation script 返回了错误号 1dpkg:依赖关系问题使得 linux-image-generic 的配置工作不能继续: linux-image-generic 依赖于 linux-ubuntu-modules-2.6.24-17-generic;然而:  软件包 linux-ubuntu-modules-2.6.24-17-generic 还没有被配置。dpkg:处理 linux-image-generic (--configure)时出错: 依赖关系问题 - 仍未被配置dpkg:依赖关系问题使得 linux-generic 的配置工作不能继续: linux-generic 依赖于 linux-image-generic (= 2.6.24.17.19);然而:  软件包 linux-image-generic 还没有被配置。dpkg:处理 linux-generic (--configure)时出错: 依赖关系问题 - 仍未被配置Processing triggers for initramfs-tools ...update-initramfs: Generating /boot/initrd.img-2.6.24-17-genericupdate-initramfs: lilo run failed for /boot/initrd.img-2.6.24-17-generic:Warning: LBA32 addressing assumedUnrecognized token "8.04" at or above line 108 in file '/etc/lilo.conf'dpkg: 子进程 post-installation script 返回了错误号 1
   看来是lilo的配置文件中出了问题,我修改了一下/etc/lilo.conf文件,运行了一下lilo出现如下的提示:
  
   Warning: LBA32 addressing assumed
   Added Ubuntu_8.04 *
   Added Ubuntu_single
   Added Debian_4.0
   Added Debian_single
   Added Windows
   One warning was issued.
  再运行上面的sudo dpkg --configure -a,这下正常了,运行过程如下所示:
正在设置 initramfs-tools (0.85eubuntu36) ...update-initramfs: deferring update (trigger activated)正在设置 linux-ubuntu-modules-2.6.24-17-generic (2.6.24-17.25) ...update-initramfs: Generating /boot/initrd.img-2.6.24-17-genericWarning: LBA32 addressing assumedAdded Ubuntu_8.04 *Added Ubuntu_singleAdded Debian_4.0Added Debian_singleAdded WindowsOne warning was issued.正在设置 linux-image-generic (2.6.24.17.19) ...正在设置 linux-generic (2.6.24.17.19) ...Processing triggers for initramfs-tools ...update-initramfs: Generating /boot/initrd.img-2.6.24-17-genericWarning: LBA32 addressing assumedAdded Ubuntu_8.04 *Added Ubuntu_singleAdded Debian_4.0Added Debian_singleAdded WindowsOne warning was issued.
下面附上我的/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' (if you have created it), 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'.                                       |
# |                                                               |
# +---------------------------------------------------------------+
# 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/sda
# Specifies the device that should be mounted as root. (`/')
#
#root=/dev/sda8
# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only
# 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: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu
# 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=50
# 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
#    delay=100
#    timeout=100
# Specifies the VGA text mode at boot time. (normal, extended, ask, )
#
# vga=ask
# vga=9
#
# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWTO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# If you used a serial console to install Ubuntu, this option should be
# enabled by default.
# serial=
#
# Boot up Linux by default.
#
default=Ubuntu_8.04
image=/vmlinuz
    label="Ubuntu 8.04"
    read-only
#    restricted
#    alias=1
    append="root=/dev/sda8  "
    initrd=/initrd.img
image=/vmlinuz
    label="Ubuntu single"
    read-only
#    restricted
#    alias=2
    append="root=/dev/sda8  single"
    initrd=/initrd.img
# 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.
#
image=/vmlinuz
    label="Debian 4.0"
#    restricted
#    alias=3
    append="root=/dev/sda5 "
    initrd=/initrd.img
image=/vmlinuz
    label="Debian single"
#    restricted
#    alias=4
    append="root=/dev/sda5 single"
    initrd=/initrd.img
other=/dev/sda1
    label=Windows
#    restricted
#    alias=5


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/50916/showart_723151.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP