"Disk boot failure..." after lilo writes to the MBR
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
"Disk boot failure..." after lilo writes to the MBR
following problem: I hah a WD harddisk with some 6 partitions, on the first the windows XP, on one another the debian linux. Yesterday I've decided to reinstall winXP (as often ), everything wokred well. It owerworte the MBR (as always), so I caouldn't acces LILO. But then I've figured out, I can't boot even to winXP, when I've take out the winXP instalation-CD! In BIOS my boot order is set to:
As you know, when switching on the PC, the winXP installation-cd takes the "boot-opportunity" and waits a few seconds if any key is pressed. If not, it let boot the disk (due to my BIOS-settings) - and everything works ok.
The problem is, when I take out the CD - the Harddisk cant boot! "DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER" appears on screen... confusing, isn't it..
However, I boot with Knoppix, to acces my linux and call "lilo" to owerwrite the MBR - in hope, that LILO does it's work well (and let me boot without the winXP install-CD). But no succes Now the situation looks like this:
I switch on the PC without the winXP CD and again - "DISK BOOT FAILURE, ..." appears. So I insert the CD and try again - everythings works OK - the CD waits a while, nothing is pressed, so the disk boots and the LILO screen appears!! (and I can use it to boot windows or linux, just how I wish)
BTW: I was surprised, that after the WIN XP installation I had to use the CD to boot... I've used this CD manytimes to install WIN XP to my disk... always succesfully - after instalation I dont need any CD's to boot, of course...
Do you have more than one hard drive; it's not clear from your post. Also, post your lilo.conf and the commands you are using to write it to your mbr from knoppix.
Also check in knoppix and see if your windows install created any new partitions. Finally in knoppix, run this as root and post the output:
# fdisk -l
That should list all your partitions and let you know if there are any errors in the partition table.
maybe it's of no use for WinXP (I'm sorry but got off the bus of MS in the '98 version, so I have little experience with XP), but I used to have problems when reinstalling Win98 if LILO was not unistalled prior to Windows touching the MBR (i.e., you should use /sbin/lilo -U first and then install XP .... or try to rebuild the MBR from the XP installation ... I do not if you have a rescue CD or whatever it has to get over this situations ... for XP, I mean, for the linux part of the Job, you may use this Knoppix-Live, mount your root partition from the HD and then run "lilo -U" (I guess you will have yo include any of LILO's options to tell him where the right "lilo.conf" is and so on ...).
I hope it helps. It saved me in the past ... do not think that it was so long ago ... now and again I still use my old MS-Win98 ... maybe when I really need it I will buy a more powerful box, enough to fit WindowsWhatever ...
To jacobop007: i've tried already to uninstall the lilo (# lilo -u -s <the_original_mbr_saved_to_a_file> ) so the lilo really writes the windows-bmr back , but I have to boot still with cd! Without CD the "DISK BOOT FAILURE" message appears, with the CD it jumps (after waiting a few seconds for keypress) straight to winXP starting screen.
To kilgoretrout: I have only one harddrive. I can check my partitions (say '#fdisk -l') also from my debian: I can see all paritions as the were.. nothing changed (I mean, do I HAVE TO see it from Knoppix? Could it be different?)
I am pretty sure my lilo.conf is OK, because it's the lilo.conf I used for last three installations of XP, but maybe I'm wrong, I'm posting it..
Finally, my command for lilo while in knoppix are these:
mount /mnt/hda7 (my linux partition)
mount --bind /dev /mnt/hda7/dev
mount --bind /proc /mnt/hda7/proc
and lilo does everything as I am awaiting...
Ok, here is my lilo.conf
# Support LBA for large hard disks.
# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
# 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.
# 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.
# 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
# Specifies the location of the map file
# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
# 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'.
# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
# 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.
Thanx for reply, I did it like you said - nothnig's changed Still have to boot with CD.
I'm posting the lilo -v output, no errors, see below.
Seems like the MBR is written correcly and works properly, IF IT IS FOUND. The problem is - without the CD it's simply NOT found (the "DISK BOOT FAILURE.." message appears still)... I can't understand how the CD finds my MBR, while the BIOS does not (
Nevertheless, I don't understand why this happened, because as I said - the winXP installation ran so many times ok (windows was bootable without the CD)...
phoenix:~# lilo -v
LILO version 22.6, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2004 John Coffman
Released 02-Sep-2004, and compiled at 19:13:54 on Sep 13 2004
Reading boot sector from /dev/hda
Using MENU secondary loader