-
Configuring LILO - problem with Default
I have installed Windows XP and Knoppix 3.6 on my computer, single harddisk with two partitions, one for Windows and the other one for Knoppix, now everything works fine, and LILO works too, but when I tried to change the default booting operating system from Linux to Windows, I cannot seem to do it, and when I run Lilo, this is what I get:
Added Linux
Added Linux(2.4)-1
Added Linux(2.6)-2
Added WinXP
Fatal: Default image doesn't exist.
What do I need in my lilo.conf to fix it? As I can't remember if I've deleted anything that I shouldn't have in the file... Thanks
lba32
boot=/dev/hda
root=/dev/hda2
bitmap=/usr/share/lilo/debianlilo.bmp
bmp-colors=1,,0,2,,0
bmp-table=120p,173p,1,15,17
bmp-timer=254p,432p,1,0,0
install=bmp
delay=20
timeout=50
map=/boot/map
vga=791
default='Linux"
image=/boot/vmlinuz
label="Linux"
initrd=/boot/initrd.img
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet lang=en screen=1280x800"
read-only
image=/boot/vmlinuz-2.4.27
label="Linux(2.4)-1"
initrd=/boot/initrd.img-2.4.27
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet lang=en screen=1280x800"
read-only
image=/boot/vmlinuz-2.6.7
label="Linux(2.6)-2"
initrd=/boot/initrd.img-2.6.7
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet lang=en screen=1280x800"
read-only
other=/dev/hda1
label="WinXP"
-
Senior Member
registered user
Re: Configuring LILO - problem with Default

Originally Posted by
yche086
Fatal: Default image doesn't exist.
Do you mean that you can run lilo with the above lilo.conf, but get the error when changing 'default='Linux"' to 'default='WinXP"'? This should work, though... You could try moving the windows entry firts, and comenting out the "default" line; the 1st entry will then become the default.
-
Hi again,
Actually I've just stuffed up my lilo when I was playing with it...
and I found out that the problem is its not actually configuring using the lilo.conf file? Was I modifying the right file? (/etc/lilo.conf) i.e. is there a way to to Lilo which configuration file I want to use? So now neither Windows nor Linux will boot because I've done something (yes, I know, sorry that's the best I can say, I'm new to LInux...) ! I still have access to my partitions, but I'm using the Knoppix 3.6 CD to boot now because I've stuffed up my Lilo, how can I reload Lilo to my MBR?? Thanks for the help
PS:
/dev/hda1 is my Windows XP and
/dev/hda2 is my Knoppix (HDD installed version)
-
Senior Member
registered user

Originally Posted by
yche086
how can I reload Lilo to my MBR?
Assuming what you gave in the initial post is what you're seeing as /mnt/hda2/etc/lilo.conf, you can re-install via:
- boot knoppix to text mode "knoppix 2 noswap" at the boot prompt
- mount /mnt/hda2
- chroot /mnt/hda2
- lilo -v
Pay attention to possible error messages; if there are none, you can reboot and should have a working boot loader.
-
This is what I got on the screen after I did what you said:
/dev/mapper/control: open failed: Permission denied
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: Permission denied
Is device-mapper driver missing from kernel?
Incompatible libdevmapper 1.00.19-ioctl (2004-07-03)(compat) and kernel driver
Reading boot sector from /dev/hda
Fatal: open /dev/hda: Permission denied
Any idea what this means?
Thanks
-
Senior Member
registered user

Originally Posted by
yche086
Any idea what this means?Thanks
Ouch! Sorry, no, I have never seen this mapper problem before. Maybe someone here has and could advise?
I take it you're seeing the messages when running lilo, right? Can you visualise your partition table (fdsik/cfdisk/qtparted) without problem, or should we perhaps start suspecting a corruption there?
Also you could try booting off the CD with the other kernel revision (2.4 if you had been using 2.6, and vice-versa; check the <F2> help screen at boot time for the appropriate cheat-code).
-
# mount -o dev /dev/hda1 /mnt/hda1; chroot /mnt/hda1
# lilo -v
This is what I found here: http://www.knoppix.net/forum/viewtopic.php?t=7532, that did the trick and its now back up and running, thanks for the help, much appreciated
-
Senior Member
registered user
Re: Configuring LILO - problem with Default

Originally Posted by
yche086
I have installed Windows XP and Knoppix 3.6 on my computer, single harddisk with two partitions, one for Windows and the other one for Knoppix, now everything works fine, and LILO works too, but when I tried to change the default booting operating system from Linux to Windows, I cannot seem to do it, and when I run Lilo, this is what I get:
Added Linux
Added Linux(2.4)-1
Added Linux(2.6)-2
Added WinXP
Fatal: Default image doesn't exist.
What do I need in my lilo.conf to fix it? As I can't remember if I've deleted anything that I shouldn't have in the file... Thanks
lba32
boot=/dev/hda
root=/dev/hda2
bitmap=/usr/share/lilo/debianlilo.bmp
bmp-colors=1,,0,2,,0
bmp-table=120p,173p,1,15,17
bmp-timer=254p,432p,1,0,0
install=bmp
delay=20
timeout=50
map=/boot/map
vga=791
default='Linux"
image=/boot/vmlinuz
label="Linux"
initrd=/boot/initrd.img
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet lang=en screen=1280x800"
read-only
image=/boot/vmlinuz-2.4.27
label="Linux(2.4)-1"
initrd=/boot/initrd.img-2.4.27
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet lang=en screen=1280x800"
read-only
image=/boot/vmlinuz-2.6.7
label="Linux(2.6)-2"
initrd=/boot/initrd.img-2.6.7
append="ramdisk_size=100000 init=/etc/init lang=us apm=power-off nomce quiet lang=en screen=1280x800"
read-only
other=/dev/hda1
label="WinXP"
Is this copied from the atual lilo.conf? or typed in?
because you appear to have a typo:
Single quote preceding Linux & the double quote following.
Should be both double quotes.
-
Is this copied from the atual lilo.conf? or typed in?
That was a typo when I was playing around with lilo.conf, but that was not the problem though, I think the problem was some stuff to do with root access, but I have fixed that now, THANKS!!
Similar Threads
-
By knoppix-user in forum Networking
Replies: 1
Last Post: 05-23-2004, 07:14 PM
-
By pcorajr in forum General Support
Replies: 1
Last Post: 04-11-2004, 12:41 AM
-
By legal in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 01-15-2004, 04:44 PM
-
By drg55 in forum Hardware & Booting
Replies: 0
Last Post: 11-23-2003, 09:10 AM
-
By satoshi in forum Hdd Install / Debian / Apt
Replies: 7
Last Post: 10-31-2003, 12:58 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive
$14.99

HGST 10TB Ultrastar SATA 6Gb 256MB 3.5" Enterprise HDD 0f27452 HUH73101ALE600
$170.00

5x HGST Ultrastar 4TB SAS 12Gb/s 7200RPM 3.5" HDD HUS726040AL5214 4Kn
$199.00

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$49.00

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD
$299.00

Seagate ST1000VM002 1TB 5900RPM 3.5" SATA 6GB/s HDD Video Hard Drive PC DVR
$24.99

Seagate Exos ST10000NM002C 10TB CMR 7200RPM SATA6Gb/s 3.5" Enterprise Hard Drive
$279.99

1 - Seagate Barracuda 1.5TB 7200RPM 3.5" (ST31500341AS) HDD Wiped/Tested
$25.00

Dell EMC WD-HITACHI H5H72101CLAR10T0 10TB 7.2K SAS 12Gb/s SED 3.5in A POH 0-50k
$189.99

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive
$29.99