Lilo: Cannot boot DOS, but can boot Linux

Lilo: Cannot boot DOS, but can boot Linux

Post by John Smit » Fri, 29 Jan 1999 04:00:00



Please forgive me if this can be answered by RTFM. That trick
has failed me.

I have been attempting to configure Lilo to boot Linux or DOS.
The usual sort of arrangement. By setting the active boot flags with
fdisk (dos or linux), I can arrange for DOS or Lilo to boot.
Using a stanza like

   other = /dev/hda2
     table = /dev/hda
     label = hda2-lilo

Lilo will boot itself. Not useful, but it shows Lilo can pickup the
boot sector of a partition. After some experimenting and installing
Lilo on any spare partition, I can boot lilo from another copy of
itself in every way I have tried. But I can only boot DOS using a DOS
MBR and active partition.

  Can anyone explain? Thanks,

      John

-----------------------------------------------------------------------------
Further details:

My various partitions are:

     /dev/hda       with a DOS fdisk /MBR   or with a lilo
     /dev/hda1      Dos partition 100M
     /dev/hda2      Linux - with lilo in boot sector
     /dev/hda3      swap
     /dev/hda4      Linux - with lilo in boot sector
also
     /dev/fd0       Lilo

The BIOS reports the disk as:
   LBA Mode 4, 1707MB

The lilos have been installed with variants of this lilo.conf file:

   boot = /dev/hda                   <- varies
   compact
   vga = normal    # force sane state
   root = current  # use "current" root
   message = /etc/lilo.mess.hda      <- varies
   map = /boot/map.hda               <- varies
   prompt
   image = /vmlinuz
     label = linux
   other = /dev/hda
     label = hda
   other = /dev/hda1
     table = /dev/hda
     label = hda1-dos
   other = /dev/hda2
     table = /dev/hda
     label = hda2-lilo
   other = /dev/hda4
     table = /dev/hda
     label = hda4-lilo
   other = /dev/fd0
     label = floppy

linux fdisk says:
prompt:> /sbin/fdisk -l

Disk /dev/hda: 64 heads, 63 sectors, 827 cylinders
Units = cylinders of 4032 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/hda1            1        1       51   102784+   6  DOS 16-bit >=32M
/dev/hda2   *       52       52      255   411264   83  Linux native
/dev/hda3          256      256      306   102816   82  Linux swap
/dev/hda4          307      307      827  1050336   83  Linux native
The number of cylinders for this disk is set to 1027.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

 
 
 

Lilo: Cannot boot DOS, but can boot Linux

Post by Charles Sulliva » Sat, 30 Jan 1999 04:00:00


I notice in your fdisk printout you have only hda2 marked as bootable.

I have both hda1 (Win 98 FAT 32) and hda5 (Linux /boot) marked as
bootable and I can boot either Win98 or Linux from the hard drive with
lilo.  (All my Linux partitions are logical partitions within hda2 which is
an extended partition).


>Please forgive me if this can be answered by RTFM. That trick
>has failed me.

>I have been attempting to configure Lilo to boot Linux or DOS.
>The usual sort of arrangement. By setting the active boot flags with
>fdisk (dos or linux), I can arrange for DOS or Lilo to boot.
>Using a stanza like

>   other = /dev/hda2
>     table = /dev/hda
>     label = hda2-lilo

>Lilo will boot itself. Not useful, but it shows Lilo can pickup the
>boot sector of a partition. After some experimenting and installing
>Lilo on any spare partition, I can boot lilo from another copy of
>itself in every way I have tried. But I can only boot DOS using a DOS
>MBR and active partition.

>  Can anyone explain? Thanks,

>      John

>---------------------------------------------------------------------------
--
>Further details:

>My various partitions are:

>     /dev/hda       with a DOS fdisk /MBR   or with a lilo
>     /dev/hda1      Dos partition 100M
>     /dev/hda2      Linux - with lilo in boot sector
>     /dev/hda3      swap
>     /dev/hda4      Linux - with lilo in boot sector
>also
>     /dev/fd0       Lilo

>The BIOS reports the disk as:
>   LBA Mode 4, 1707MB

>The lilos have been installed with variants of this lilo.conf file:

>   boot = /dev/hda                   <- varies
>   compact
>   vga = normal    # force sane state
>   root = current  # use "current" root
>   message = /etc/lilo.mess.hda      <- varies
>   map = /boot/map.hda               <- varies
>   prompt
>   image = /vmlinuz
>     label = linux
>   other = /dev/hda
>     label = hda
>   other = /dev/hda1
>     table = /dev/hda
>     label = hda1-dos
>   other = /dev/hda2
>     table = /dev/hda
>     label = hda2-lilo
>   other = /dev/hda4
>     table = /dev/hda
>     label = hda4-lilo
>   other = /dev/fd0
>     label = floppy

>linux fdisk says:
>prompt:> /sbin/fdisk -l

>Disk /dev/hda: 64 heads, 63 sectors, 827 cylinders
>Units = cylinders of 4032 * 512 bytes

>   Device Boot   Begin    Start      End   Blocks   Id  System
>/dev/hda1            1        1       51   102784+   6  DOS 16-bit >=32M
>/dev/hda2   *       52       52      255   411264   83  Linux native
>/dev/hda3          256      256      306   102816   82  Linux swap
>/dev/hda4          307      307      827  1050336   83  Linux native
>The number of cylinders for this disk is set to 1027.
>This is larger than 1024, and may cause problems with:
>1) software that runs at boot time (e.g., LILO)
>2) booting and partitioning software form other OSs
>   (e.g., DOS FDISK, OS/2 FDISK)


 
 
 

1. Cannot boot using LILO from Linux boot disk.

I have a 486 80mhz DX2 (CYRIX) machine with 20 mb memory and two IDE
drives - C: is a 420 mb formated NTFS, D: is a 1280 mb drive with the
last 1030 mb is NTFS, the first 250 is free and I was planning to install
Linux 2.1 there (yes I am using Windows NT 3.51 Workstation).

What is happening is that once I get to the boot: prompt and I enter
"mount root=/dev/hdb1" I get:

 loading mount.....
 uncompressing Linux...

 CRC Error -or- invalid compressed format
 -- System Halted

Any ideas?  

2. Email Redirection for another Domain

3. Lilo boot problem: doesn't boot dos (invalid media type)

4. Environment variables

5. Lilo boot won't allow DOS to boot

6. New PCI multiport - Beta users needed

7. LILO problem: Cannot boot into Dos?

8. mounting cdrom and floppy drives, passwords, etc.

9. LILO error: Can only boot from floppy, LILO will only start dos not linux

10. diskless boot hit error while booting kernel, cannot find boot device, dhcp problem?

11. LILO saved boot file /boot/boot.0301

12. cannot install LILO, cannot boot

13. How to Uninstall LILO -o How to boot DOS once LILO is installed?