On Tuesday 17 February 2004 12:39, Martin Petersen wrote: > Dear Debian Users, > > I am a intermediate user of Debian an SuSE Linux. But I have a Problem, > which I don`t seem to get solved. > > (Plz excuse my English, I am currently in german law exams, so > everything I say and write should be regarded as nonsense ;). > Your English is way better than my German! ;-)
> I want to set up a Software Raid Box with the Raidtools2 in two > identical IDE Disks. I followed this tutorial > http://wwwhomes.uni-bielefeld.de/schoppa/raid/woody-raid-howto.html and > tried to help myself with the Software-Raid-Howto. > > The idea is to install Linux on hda, compile a kernel with raid support, > set up the raid on hdb (with hda as the failed-disk 1 in /etc/raidtab), > copy the system to raid and then zap the installation on hda. > > Everything runs fine until the moment to boot from raid. > At this point, I hope you didn't zap the installation on hda... > The author of my tutorial suggests to create a boot disk first: > > dd if=/vmlinuz of=/dev/fd0 bs=2k > rdev /dev/fd0 /dev/md0 > rdev -r /dev/fd0 0 > rdev -R /dev/fd0 1 > > This disk doesn't work for me. I know that he writes the kernel to fd0. > But the system boots from hda, so I guess I didn`t configure Lilo > correctly. > > Could someone out there plese drop me a few lines 'bout how to setup the > lilo-configuration? > > Thank you in advance, > > Martin from Cologne You need to set the root device in /etc/fstab like so: # <file system> <mount point> <type> <options> <dump> <pass> /dev/md0 / ext3 errors=remount-ro 0 1 Make sure this file is on the RAID device, not the hda that you will zap. Next, you need to tell Lilo to boot from the raid device. Edit /etc/lilo.conf on the raid device, and make sure you have at least these two options set to match your raid: # Specifies the boot device. This is where Lilo installs its boot # block. It can be either a partition, or the raw device, in which # case it installs in the MBR, and will overwrite the current MBR. # boot=/dev/md0 # Specifies the device that should be mounted as root. (`/') # root=/dev/md0 To make these options active, you have to run /sbin/lilo. You will need to chroot into your raid partition to do this. Also, it helps to make the proc file system available inside the chroot before you chroot into it. Finally, make sure your raid drivers are either built into the kernel, or the modules are present in the initial ram disk. The stock kernels contain raid drivers as modules, and if you want to use the stock kernels, you'll have to add them to the ramdisk. Let us know how it goes. Justin Guerin (from Colorado Springs) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]