Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 11-23-2008, 04:22 PM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
RAID-1 setup doesn't boot on second Hard Drive


I just finished a Slackware-12.1 install with RAID-1. I used the
slackware-12.1/README_RAID.TXT how-to. The system just work.

I wanted to simulate a disk failure, so I halted the machine,
unplugged the first disk (/dev/sda) and re-booted.. And nothing: no lilo.

The 2 disk are SCSI and the controller is an Adaptec AIC-7899.

The /etc/lilo.conf is:
boot = /dev/md0
raid-extra-boot = mbr-only


image = /boot/vmlinuz-generic-smp-
  initrd = /boot/initrd.gz
  root = /dev/md0
  label = Linux-generic
When I run "lilo"
Added Linux-generic *
The Master boot record of  /dev/sda  has been updated.
Warning: /dev/sdb is not on the first disk
The Master boot record of  /dev/sdb  has been updated.
thanks for help
Old 11-23-2008, 11:32 PM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
I am no expert on Slackware, but have you made sure that your BIOS knows that it should try to boot from the second hard disk if the first is not available? This sounds like what is going on here.
Old 12-22-2008, 12:16 PM   #3
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
A question about raid here. If i setup linux using raid-1 with two harddisks, if the primary hard disk crashes, can i boot through the second hard disk?
Old 12-22-2008, 12:43 PM   #4
Senior Member
Registered: Jan 2008
Distribution: Arch/Knoppix
Posts: 1,643
Blog Entries: 14

Rep: Reputation: 194Reputation: 194
Well, yes, that's usually one of the points of having RAID 1.
Old 12-22-2008, 01:48 PM   #5
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
As with most things, it depends. The key here is to understand what actually happens during a boot sequence, and when the redundancy of your RAID array actually takes effect.

True hardware RAID works as soon as the disk controller is accessed, and so will allow boot-up when one drive is kaput. If the RAID setup is driven by software though, you will not be able to take advantage of automatic redundancy until that software is running. This means that you will have to make sure that several steps of the process will run from either disk:
1. Your BIOS needs to be informed that, if it cannot reach the first hard disk, it should try the second one.
2. Both disks in the RAID array should have a boot sector written on them.
3. This boot sector is very small; it generally needs to load a more capable block of software to complete the boot-up. GRUB and LILO are two examples of this. If your array is actually RAID-1, there will be a copy of the necessary stuff on each drive. But the boot sector on each drive needs to point at the right place on that drive for the boot process to be effective.

There are lots of posts on the web dealing with the grubby details of how to achieve these results, depending on your particular distribution and choices about how the RAID array is set up.


lilo, raid

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
RAID Setup, Hard Drive labels change after reboot! jonez Linux - Hardware 1 05-19-2008 11:10 PM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-05-2007 12:28 AM
dual boot question / hard drive and raid card Envision5000 Linux - Newbie 4 02-15-2006 07:19 PM
Hard Drive Performance - Raid funbags Linux - General 3 11-13-2005 11:31 AM
hard drive and raid problem-help ronss Linux - Hardware 2 08-24-2002 11:13 AM

All times are GMT -5. The time now is 09:22 PM.

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