LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2003, 02:33 PM   #1
Pikachu
LQ Newbie
 
Registered: Nov 2003
Location: Belgium
Distribution: Ubuntu 9.04
Posts: 16

Rep: Reputation: 0
[LILO] Dual boot XP - Gentoo problem


Hello everyone
I'm afraid my first post is a cry for help...

Since a few months I've a HPT372 RAID controller. I installed Windows XP on a RAID-0 stripe. Everything went smooth without a single error. On a seperate hard disk, I installed Suse Linux and I booted it with a bootdisk (because of the RAID).

Now I want to get rid of Suse and I choosed to install Gentoo Linux 1.4
The installation works until the lilo part. It's rather tricky for me, as I've never had a RAID controller before.

I've following devices when doing fdisk -l

/dev/ataraid/disc0/disc (40.8GB)
/dev/ataraid/disc0/part1 (NTFS)

/dev/ide/host2/bus0/target0/lun0/disc (40.1GB)
/dev/ide/host2/bus0/target0/lun0/part1 (NTFS)

/dev/ide/host2/bus0/target1/lun0/disc (20.4GB)

/dev/ide/host0/bus1/target0/lun0/disc (5.1GB)
/dev/ide/host0/bus1/target0/lun0/part1 (ext3)
/dev/ide/host0/bus1/target0/lun0/part2 (swap)
/dev/ide/host0/bus1/target0/lun0/part3 (reiserfs)

My problem is booting the system using lilo.
The standard lilo.conf I made results in lilo complaining about 2 devices using bios ID 0x80 and not boing installed in the MBR of that RAID 0 set

boot=/dev/ataraid/disc0/disc
map=/boot/map
install=/boot/boot.p
prompt
timout=300
lba32
default=Linux

image=/boot/bzImage
label=Linux
read-only
root=/dev/hdc3

other=/dev/ataraid/d0p1
label=Windows

The other devices that are using bios ID have an numbers 0x1600 (hdc), 0x2100 (ataraid/disc) and 0x270, probably hde or hdf, members of the raid-0 set.

When I try to set disk=/dev/ataraid/disc0/disc bios=0x80 for example, It installs lilo, but at boot I get LI 40 40 40 40 40 ...
I'm then forced to run FIXMBR in the Windows Recovery Console to be able to boot again.

The bios' bootsequence is:
1. CDROM
2. SCSI
3. FLOPPY
4. None

When I built my computer, I connected the divices as following:
Motherboard
IDE1 - Master - Plextor 121032A CDRW
IDE1 - Slave - LiteON DVD-ROM
IDE2 - Master - Quantum Fireball EL (/hdc)

RAID Controller
IDE1 - Master - Maxtor 40GB
IDE2 - Slave - Maxtor 20GB (my other 40GB disk is broken, so this was the only replacement I had)

Is there someone with a similar configuration? If so, what does you lilo.conf look like?

Thank you in advance.
 
Old 11-26-2003, 09:22 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Don''t have much experience using lilo to boot a RAID0 volume so can't help you much there, but try GRUB, or just use nt os loader to boot linux.
 
Old 11-27-2003, 04:28 AM   #3
Pikachu
LQ Newbie
 
Registered: Nov 2003
Location: Belgium
Distribution: Ubuntu 9.04
Posts: 16

Original Poster
Rep: Reputation: 0
Here's some additional information:
  • /proc/partitions
    Code:
    major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect wuse running use aveq
    
     114     0   39882496 ataraid/disc0/disc 0 0 0 0 0 0 0 0 0 0 0
     114     1   39873298 ataraid/disc0/part1 0 0 0 0 0 0 0 0 0 0 0
      33     0   40146624 ide/host2/bus0/target0/lun0/disc 13 60 200 60 0 0 0 0 -2 1862400 39224952
      33    64   19941264 ide/host2/bus0/target1/lun0/disc 8 33 136 40 0 0 0 0 -1 1862330 41087342
      22     0    5009445 ide/host0/bus1/target0/lun0/disc 226 668 6374 13490 560 580 8988 320 -4 1861270 36250432
      22     1      40131 ide/host0/bus1/target0/lun0/part1 10 3 26 200 12 10 44 0 0 200 200
      22     2     506047 ide/host0/bus1/target0/lun0/part2 0 0 0 0 0 0 0 0 0 0 0
      22     3    4458037 ide/host0/bus1/target0/lun0/part3 209 645 6226 13240 548 570 8944 320 0 4750 13560
       3    64     508574 hdb 284 5020 21350 18880 0 0 0 0 22 1861990 40564850
  • #fdisk -l
    Code:
    Disk /dev/ataraid/disc0/disc: 40.8 GB, 40839675904 bytes
    255 heads, 63 sectors/track, 4965 cylinders, total 79764992 sectors
    Units = sectors of 1 * 512 = 512 bytes
    
                      Device Boot    Start       End    Blocks   Id  System
    /dev/ataraid/disc0/part1   *        63  79746659  39873298+   7  HPFS/NTFS
    
    Disk /dev/ide/host2/bus0/target0/lun0/disc: 41.1 GB, 41110142976 bytes
    255 heads, 63 sectors/track, 4998 cylinders, total 80293248 sectors
    Units = sectors of 1 * 512 = 512 bytes
    
                                    Device Boot    Start       End    Blocks   Id  System
    /dev/ide/host2/bus0/target0/lun0/part1   *        63  79746659  39873298+   7  HPFS/NTFS
    
    Disk /dev/ide/host2/bus0/target1/lun0/disc: 20.4 GB, 20419854336 bytes
    16 heads, 63 sectors/track, 39566 cylinders, total 39882528 sectors
    Units = sectors of 1 * 512 = 512 bytes
    
                                    Device Boot    Start       End    Blocks   Id  System
    
    Disk /dev/ide/host0/bus1/target0/lun0/disc: 5129 MB, 5129671680 bytes
    255 heads, 63 sectors/track, 623 cylinders, total 10018890 sectors
    Units = sectors of 1 * 512 = 512 bytes
    
                                    Device Boot    Start       End    Blocks   Id  System
    /dev/ide/host0/bus1/target0/lun0/part1            63     80324     40131   83  Linux
    /dev/ide/host0/bus1/target0/lun0/part2         80325   1092419    506047+  83  Linux
    /dev/ide/host0/bus1/target0/lun0/part3       1092420  10008494   4458037+  83  Linux
  • /etc/lilo.conf
    Code:
    disk=/dev/ataraid/disc0/disc 	bios=0x7200
    disk=/dev/hdc 			bios=0x1600
    
    boot=/dev/ataraid/disc0/disc
    map=/boot/map
    install=/boot/boot.b
    prompt
    timeout=300
    lba32
    default=linux
    
    # Gentoo Linux 1.4 (2.4.22-ac1)
    image=/boot/kernel-2.4.22-ac1
    label=Linux
    read-only
    root=/dev/hdc3
    
    # Windows XP Professional (SP1)
    other=/dev/ataraid/disc0/part1
    label=windows

When running this config, lilo accepts it and installs it, however, at boot I get L 40 40 40 40 40 40 40 40 40...

When I remove the first 2 line, it fails and says I need to specify disc=... bios=0x... because 2 discs are using bios ID 0x80 (0x7200 and 0x1600)

Any idea how to fix this issue?

Also, when I try booting with a lilo bootdisk I made, it fails too:
Error: wrong compression.

-- System halted.

All I did was dd if=/boot/kernel-2.4.22-ac1 of=/dev/fd0 as told in the install docs. The kernel is 1.42MB
 
Old 11-27-2003, 09:55 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try grub..you don't have to worry about device names and such with grub, you just need to know the ordering of your drives(be it a raid volume or not)
as for the bootdisk I think the kernel image itself isnt bootable anymore, you need to install some kind of boot loader(grub/lilo/syslinux etc) to the floppy disk.
 
Old 11-29-2003, 08:53 AM   #5
Pikachu
LQ Newbie
 
Registered: Nov 2003
Location: Belgium
Distribution: Ubuntu 9.04
Posts: 16

Original Poster
Rep: Reputation: 0
It works
Read a few pages about that bios= stuff.

I Replaced:
Code:
disk=/dev/ataraid/disc0/disc 	bios=0x7200
disk=/dev/hdc 			bios=0x1600
by

Code:
disk=/dev/ataraid/disc0/disc 	bios=0x80
disk=/dev/hdc 			bios=0x81
 
Old 11-29-2003, 10:37 AM   #6
zeeone
LQ Newbie
 
Registered: Apr 2003
Location: Third Stone From The Sun
Distribution: Linux
Posts: 29

Rep: Reputation: 15
Is not reading a great thing to know, glad to see you got it working. Go Gentroo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo boot problem...*dual* shp0ngle Linux - Newbie 6 09-10-2005 12:46 PM
dual boot xp/gentoo (selecting boot for each partition) saif__r Linux - Newbie 8 08-13-2005 10:23 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
LILO/GRUB for dual booting Gentoo and Debian. rmanocha Linux - Software 2 02-22-2004 01:23 PM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration