PDA

View Full Version : Fatal: APPEND or LITERAL may not contain "vga="



Termina
12-25-2003, 09:57 PM
I keep having problems with LILO... for example, now when I try to start it up, I get all 99s across the screen.

I have come to hate lilo. =D Anyways, I used a backup version of lilo, and I belive everything is perfect in it now. :) But I get error (see subject) when I try to run lilo (I chroot'ed to /mnt/hdc3). :(

Any help?

Termina
12-25-2003, 10:02 PM
Here's my lilo.conf

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# Remove this line when you are done configuring. -KK

# +---------------------------------------------------------------+
# | !! 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

# 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/hdc3

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hdc3
# 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
#
install=/boot/boot-menu.b
backup=/dev/null

# 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
timeout=100

# 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
# single-key
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=ask
# 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=Knoppix

image=/boot/vmlinuz-2.4.20-xfs
append="lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 quiet BOOT_IMAGE=knoppix"
root=/dev/hdc3
initrd=/boot/initrd.gz
label=Knoppix
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=Linux-OLD
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

baldyeti
12-25-2003, 11:24 PM
Well the error message you used as your title was pretty explicit, vga=xxx is not an option/argument to the append command, but has to appear on its own line - eg replacing the one which currently says vga=ask in your conf.
You've also repeated the 'root=hdXn' line.
Run 'lilo -v' or 'lilo -vv' to get copious amounts of warning / logging.

Termina
12-25-2003, 11:49 PM
Hm, I removed the vga=ask that I had, and uncommented where it originally said vga=ask... but I still get the same error message. =/

Stephen
12-26-2003, 12:49 AM
Hm, I removed the vga=ask that I had, and uncommented where it originally said vga=ask... but I still get the same error message. =/
Post the lilo.conf you are using that is giving you the error so we can see it.

Termina
12-26-2003, 12:54 AM
Stephen, I did and then descripbed the one change I made... but here it is again. :)

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# Remove this line when you are done configuring. -KK

# +---------------------------------------------------------------+
# | !! 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

# 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/hdc3

# Specifies the device that should be mounted as root. (`/')
#
# 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
#
install=/boot/boot-menu.b
backup=/dev/null

# 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
timeout=100

# 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
# single-key
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
vga=ask
#vga=9
#
# 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=Knoppix

image=/boot/vmlinuz-2.4.20-xfs
append="lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 quiet BOOT_IMAGE=knoppix"
root=/dev/hdc3
initrd=/boot/initrd.gz
label=Knoppix
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=Linux-OLD
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

Stephen
12-26-2003, 01:33 AM
image=/boot/vmlinuz-2.4.20-xfs
append="lang=de apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 quiet BOOT_IMAGE=knoppix"


Doh! Sorry should have read the posts more carefully, there is the problem remove the vga=791 and if you want to use it then put in in place of the vga=ask and run lilo and it should be ok.


The lilo you are using here will install itself to your / partition with the boot=/dev/hdc3 you will not get a lilo in the MBR is this what you are trying to do? If not the change it to install in the MBR of the dirve you want to see the lilo screen on eg. boot=/dev/hda , /dev/hdb, /dev/hdc with the last 2 options you would have to chainload the lilo from some other boot loader to see the lilo screen to boot your install. You should use /sbin/lilo -b /dev/hdc3 when installing if you are trying to get it into your / partition.

Termina
12-26-2003, 02:06 AM
Holy crap, it works! :) If nothing else goes wrong. *laughs*

You kick ass, thanks.

Termina
12-26-2003, 02:20 AM
Please disregard this message. ;)

Everything working fine now. Thank you all for your quick and helpful advice!