General discussion

Locked

LILO failing to load

By gmg ·
Hi,
I tried to install Linux on my PC with following partitions :

drive size status comment
---------------------------------------
C: 100MB Active boot files only/FAT16
E: 8000MB for Windows 98/FAT32
~6500MB unused/for linux
(drive letter 'D' is assigned to my secondary hard disk by Windows -- which I use it for data)

During installation, I configured this disk for linux - which resulted like this :

drive size Flag Comment
-------------------------------------------
C 100MB Boot
E 8000MB
F 6000MB Boot Linux file system for /
G ~400MB /tmp (Linux)

But when LILO tried to write MBR, it failed -
saying somthing like LBA not used in the primary partition - does itneed logical volumes(in primary dos partition) to write MBR? What is the best way now to resolve this situation?

By the way, I used Turbo Linux 4.0

regards

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

LILO failing to load

by gmg In reply to LILO failing to load

To be more specific, what are the conditions to be met for Linux to boot on a dual boot system using MBR :

1. Does the primary partition to be less than 1024 cylinders?

2. Does is need additional /boot partition?

Collapse -

LILO failing to load

by mantikor In reply to LILO failing to load

Sounds like you're using an older version of LILO that needs a large drive like this to be in LBA mode in the BIOS. Unfortunately, with existing partitions, changing the mode will destroy your data. If you can back up your existing data and completely reformat the drive, I'd recommend doing this and switching to LBA mode.

Potential fix 2: If your machine has a fairly recent BIOS, I believe the newest version of LILO will let you boot past cylinder 1024.

Potential but scummy fix 3: Grab LOADLIN and copy your kernel to your DOS partition... then you can boot linux by restarting in DOS mode and running loadlin as per the instructions.
Of course, if your windows install is WinME, your ability to restart in DOS has been neutered by the all-knowing microsoft... they know better! *cough cough*

Collapse -

LILO failing to load

by gmg In reply to LILO failing to load

Poster rated this answer

Collapse -

LILO failing to load

by gwanders In reply to LILO failing to load

The Linux kernel is what has to be installed below the 1023rd cylinder, unless LBA mode is specified for the /boot drive (C in this case.) Most current bios' can use LBA (logical block addressing) mode to get around the address limit imposed by 16 bit-address formatted drives.

In DOS/Windows, this limit corresponds to approximately 512MB. It seems that installing Linux on E drive has put the kernel above the 1023 limit, and LILO cannot find it.

One solution is to use LOADLIN instead of LILO. To do this, requires placing it in a DOS partition, where it will be found, and will load Linux without LILO. If Lilo is desirable for other reasons, rearranging the disk space for VFAT programs to allow Linux kernel (at least) to load below 1023 cylinder should make LILO operable.

Finally, it is possible to make a boot disk, which will boot Linux even if its kernel lies above 1023 cylinders.

Collapse -

LILO failing to load

by gmg In reply to LILO failing to load

Poster rated this answer

Collapse -

LILO failing to load

by eXpl0it In reply to LILO failing to load

Lilo can't be installed on drives more than 1024 cyls. Ad lba mode re-organses your disk, so you anyway have < 1024 cyls when in lba. The solutions are said above: you can use loadlin or a boot linux floppy. If you want to have dual boot you should:
1. Write lilo to linux partition, not to MBR
2. Use something like System Commander, which writes itself to mbr.
3. Have active and linux boot partitions < 1024 cyls.

Collapse -

LILO failing to load

by gmg In reply to LILO failing to load

Poster rated this answer

Collapse -

LILO failing to load

by gmg In reply to LILO failing to load

This question was closed by the author

Back to Linux Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums