Success!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I'd just like to say that I recently re-installed my system to use the
ataraid drivers with my HPT370 card. The system seems to be working just
fine, with both Linux and Windows 2000 installed on the same pair of
disks. Making the system boot Linux off of the drives was a bit trickier,
however. From different bits of information on the list and elsewhere,
I've got it working, so if anyone is interested, here's how:

(BTW none of this is HPT370 specific, should work with the Promise cards
as well)

1) Get some other linux system up and running first! If you've got another
   drive, that'd be best. I made up a bootable CD with a
   ataraid-supporting kernel on it (this was 2.4.8-ac7) and the bare
   minimum of tools. Don't forget to create the special ataraid device
   files - run the MAKEDEV program from Arjan's site:
   http://people.redhat.com/arjanv/pdcraid/MAKEDEV

2) From this installation, partition the disk - fdisk /dev/ataraid/d0
   worked fine for me, just created one primary partition for linux.

3) Reboot, install Windows 2000 onto another partition on the disk if you
   want to...

4) Boot your minimal linux installation again, format the
   /dev/ataraid/d0p2 partition (or whichever it is) and copy across your
   linux installation onto it.

5) Now the tricky(ish) part. Get the modified version of lilo, from
   http://www.rug-rats.org/~wilfried/ (follow the V 0.1 link on the left,
   then there a link to lilo-hacked.tar.gz on the page). This lilo almost
   works, except it seems to have been writted for an earlier version of
   the patch, where the ataraid devices had different devices numbers.
   Here's my patch to geometry.c to make it work:

=====  cut here  =========================================================
diff -ur lilo-21.7.3/geometry.c /home/ben/lilo-21.7.3/geometry.c
--- lilo-21.7.3/geometry.c      Fri Apr 27 09:31:32 2001
+++ /home/ben/lilo-21.7.3/geometry.c    Sun Aug 19 15:15:22 2001
@@ -331,7 +331,7 @@
        case MAJOR_I2O+5:
        case MAJOR_I2O+6:
        case MAJOR_I2O+7:
-        case 60:       /* fix for raid partitions */
+        case 114:      /* fix for raid partitions */
            geo->device = 0x80+(MINOR(device) >> 6)+(MAJOR(device) ==
MAJOR_HD ?
              0 : last_dev(MAJOR_HD,64));
            if (ioctl(fd,HDIO_GETGEO,&hdprm) < 0)
=====  cut here  =========================================================

6) Write a valid /etc/lilo.conf. The extra lines that you'll need are:

boot=/dev/ataraid/d0
disk=/dev/ataraid/d0
    bios=0x80
root=/dev/ataraid/d0p2    (or whichever partition linux is on)

7) Run 'lilo -v' as root, should be no errors. Then reboot! Lilo should
   run, Linux should boot, the sun will shine, world peace etc etc...



Anyway, hope that helps some people. I've put up all the files I've used
(and my patched version of LILO) up on a website at
http://ataraid.slimyhorror.com/

Good luck!

Ben
-- 
<blam!><pok!><blam!><ptwee!><bang!>
Take THAT and THAT and THAT and THAT! HA! I warned you, didn't I? Didn't I
WARN you? I thought I warned you. I didn't? Oh, sorry.





[Index of Archives]     [Linux RAID]     [Linux Device Mapper]     [Linux IDE]     [Linux SCSI]     [Kernel]     [Linux Books]     [Linux Admin]     [GFS]     [RPM]     [Yosemite Campgrounds]     [AMD 64]

  Powered by Linux