-
LILO woe
I'm having problems with LILO now that I've done the HDD install. I've been using a boot disk until now but I decided to install LILO instead. When I try and run /sbin/lilo, I'm greeted with the following response:
Code:
LILO is unable to correctly determine the device codes assigned to two
of your disks by the System BIOS. Consequently, it seems to have guessed
wrong. The following conflict needs to be resolved with explicit
"disk=/dev/... bios=0x??" lines in '/etc/lilo.conf'.
Fatal: Bios device code 0x80 is being used by two disks
/dev/ataraid/d0 (0x7200) and /dev/hdg (0x2200)
This is a bit of a bugger because these disks are both attached to my RAID controller (PDC20276, currently being used as ATA133 rather than RAID). The two disks attached to the controller are /dev/hde (/dev/ataraid/d0 - Windows install) and /dev/hdg (/dev/ataraid/d1 - Linux). I've never had any problems installing LILO to the MBR of /dev/hde in the past when I've been using Mandrake/RH/SuSE so I'm not sure how to resolve this. My /etc/lilo.conf hasn't been changed from the one created during the HDD install:
Code:
boot=/dev/hde
vga=791
prompt
timeout=50
append = "hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce"
image=/boot/vmlinuz-2.4.20-xfs
label=knoppix
root=/dev/hdg5
read-only
initrd=/boot/initrd.gz
## A Windows installation, example for partition 1 on first IDE harddisk
# other=/dev/hda1
# label=dos
# optional
# table=/dev/hda
Can anyone help?
-
Senior Member
registered user
You might try adding something like this to lilo.conf:
Code:
# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
disk=/dev/hde
bios=0x81
disk=/dev/hdg
bios=0x80
First try with just "disk=/dev/hde bios=0x81" and if that doesn't work try adding the second one. Make sense?
-
Yeah I've already tried doing that. When I did disk=/dev/hde bios=0x80 it gave me the same error message but said that this time it was /dev/hdg and /dev/ataraid/d1 that had the same BIOS code (as you'd hope since they're the same disk!)
-
Hi,
I'm having the same problem. I am not running RAID, but I do have 7 devices, 4 on the 2 regular channels and 3 on the 2 HPT channels (one slave is empty).
It's complaining about the following:
Code:
root@knoppix-klb:~# /sbin/lilo
Warning: Unable to determine video adapter in use in the present system.
Added Linux *
Skipping /vmlinuz.old
Added Other(hdg1)
LILO is unable to correctly determine the device codes assigned to two
of your disks by the System BIOS. Consequently, it seems to have guessed
wrong. The following conflict needs to be resolved with explicit
"disk=/dev/... bios=0x??" lines in '/etc/lilo.conf'.
Fatal: Bios device code 0x81 is being used by two disks
/dev/hdg (0x2200) and /dev/hde (0x2100)
root@knoppix-klb:~#
I tried uncommenting both of the "bios" lines (first the first, then both) and it still gave me the same error. As the original poster said, I have a boot floppy which I can continue to use but I'd like to be able to configure it to boot from the hard drive. What am I doing wrong?
The "bios" lines are:
Code:
#disk=/dev/hde
# bios=0x81
#disk=/dev/sda
# bios=0x80
Only one of them refers to one of the drives in conflict (hde and hdg), but I don't want to break anything so I'm stopping here.
Why would two drives have the same device code? Windows 2000 doesn't complain about it (for reference, not to start a flame war).
If you need further information about my system I'll be happy to provide it. Thanks!
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
Ken Beal
Fatal: Bios device code 0x81 is being used by two disks
/dev/hdg (0x2200) and /dev/hde (0x2100)
root@knoppix-klb:~#
From man lilo.conf:
disk=<device-name>
Defines non-standard parameters for the specified disk. See sec-
tion "Disk geometry" of user.tex for details. Especially useful
is the `bios=' parameter. The BIOS numbers your disks 0x80, 0x81,
etc. and it is impossible to decide which Linux disk corresponds
to which BIOS disk (since this depends on the BIOS setup, and on
the type of BIOS), so if you have an unusual setup you need to
state the correspondence between Linux disks and BIOS disks. For
example,
disk=/dev/sda
bios=0x80
disk=/dev/hda
bios=0x81
would say that your SCSI disk is the first BIOS disk, and your
(primary master) IDE disk is the second BIOS disk. Other options
include the specification of disk geometry; e.g.,
disk=/dev/fd0
sectors=18
heads=2
cylinders=80
With that in mind, try this:
sudo /sbin/lilo -v3 -t
That should tell you what you need to enter in LILO.
Try something like this for example:
disk=/dev/hde
bios=0x80
disk=/dev/hdg
bios=0x81
Similar Threads
-
By whoeverheis in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 03-25-2005, 07:13 PM
-
By tomjermy in forum Hardware & Booting
Replies: 1
Last Post: 03-17-2005, 01:07 AM
-
By emartinson in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 06-21-2004, 04:22 AM
-
By JockVSJock in forum General Support
Replies: 7
Last Post: 04-09-2004, 10:42 AM
-
By sminotti in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 08-04-2003, 03:59 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
![1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture](/store/img/g/PDMAAOSwlhdmFJ5R/s-l225/1TB-2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-St.jpg)
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$80.39
![Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture](/store/img/g/oroAAOSwsJNmFPcr/s-l225/Type-C-USB-3-0-Flash-Drive-Thumb-Drive-Memory-Stic.jpg)
Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot
$73.29
![Seagate ST1000VM002 1TB 64MB SATA6Gb/s 3.5](/store/img/g/tFMAAOSwjDVmceFV/s-l225/Seagate-ST1000VM002-1TB-64MB-SATA6Gb-s-3-5-Low-Pow.jpg)
Seagate ST1000VM002 1TB 64MB SATA6Gb/s 3.5" (Low Power) Hard Drive -PC, CCTV DVR
$24.99
![Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture](/store/img/g/yKsAAOSwNPJlqMdQ/s-l225/Fanxiang-SSD-4TB-2TB-1TB-PS5-SSD-M-2-NVME-SSD-7300.jpg)
Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive
$269.99
![CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD picture](/store/img/g/qqcAAOSw~xVgcyGX/s-l225/CISCO-A03-D1TBSATA-1TB-7-2K-6G-2-5INCH-SATA-HDD.jpg)
CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD
$9.00
![1TB HDD/SSD 2.5](/store/img/g/IlgAAOSwtgpmKHfn/s-l225/1TB-HDD-SSD-2-5-SATA-Hard-Drive-for-Laptop-with-Wi.jpg)
1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed
$27.99
![Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5](/store/img/g/RzIAAOSwSZNlN-zB/s-l225/Patriot-P210-128GB-256GB-512GB-1TB-2TB-2-5-SATA-3-.jpg)
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$19.99
![Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture](/store/img/g/25EAAOSw2gplntqr/s-l225/Samsung-Geek-Squad-Certified-Refurbished-870-EVO-1.jpg)
Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive
$67.99
![2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage US picture](/store/img/g/irQAAOSwYb1l~nVt/s-l225/2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-Stick-.jpg)
2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage US
$41.69
![Samsung - 980 PRO 1TB Internal Gaming SSD PCIe Gen 4 x4 NVMe picture](/store/img/g/e4QAAOSwN-dl59Rw/s-l225/Samsung-980-PRO-1TB-Internal-Gaming-SSD-PCIe-Gen-4.jpg)
Samsung - 980 PRO 1TB Internal Gaming SSD PCIe Gen 4 x4 NVMe
$89.99