LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-01-2004, 11:00 PM   #1
mike3k
LQ Newbie
 
Registered: Aug 2004
Location: Fort Lauderdale
Distribution: Debian
Posts: 7

Rep: Reputation: 0
RAID boot problem with Debian


I'm running Debian Sarge with a 2.6.8 kernel on my fairly new (about 2 month old) AMD Duron system. I'm using Grub to boot rather than lilo & I have RAID support built into my kernel, not as a module. Today I just added a second drive and configured it for RAID 1, using the Software-RAID.HOWTO instructions for converting an existing system to RAID. The RAID device starts properly using the new drive (with my existing drive as a missing drive):

Code:
root@blackbox:/etc/mdadm# mdadm --query /dev/md0
/dev/md0: 111.67GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md0: No md super block found, not an md component.
root@blackbox:/etc/mdadm# mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.01
  Creation Time : Fri Oct  1 16:37:58 2004
     Raid Level : raid1
     Array Size : 117089600 (111.67 GiB 119.90 GB)
    Device Size : 117089600 (111.67 GiB 119.90 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Fri Oct  1 21:15:23 2004
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0


    Number   Major   Minor   RaidDevice State
       0       0        0       -1      removed
       1       3        1        1      active sync   /dev/hda1
           UUID : 11585c9e:315397b1:e3ce7295:c1fa7ef3
         Events : 0.14345
If I have the partition type set to FD, it's automatically detected at startup:
Code:
md: autorun ...
md: considering hda1 ...
md:  adding hda1 ...
md: created md0
md: bind<hda1>
md: running: <hda1>
raid1: raid set md0 active with 1 out of 2 mirrors
md: ... autorun DONE.
ReiserFS: hde1: found reiserfs format "3.6" with standard journal
However, if I boot from /dev/hda1, it's unable to mount the root file system & I get a kernel panic right after that point if the partition type is FD. If I change the partition type back to 83, that drive is able to boot normally but it isn't auto-detected and the RAID device can't be started.

How can I get it to boot a partition of type FD?

Last edited by mike3k; 10-01-2004 at 11:03 PM.
 
Old 10-02-2004, 06:05 PM   #2
mike3k
LQ Newbie
 
Registered: Aug 2004
Location: Fort Lauderdale
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
I got it working by specifying root=/dev/md0 (rather than the physical device /dev/hda1 or /dev/hde1) on the boot command. I'm now running with both drives in the level 1 array as my root device.
 
  


Reply



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 boot up problem pancc888 Mandriva 1 02-07-2005 08:15 PM
Raid boot up problem pancc888 Linux - Newbie 5 01-11-2005 09:09 PM
RAID 1 (mirror) problem installing debian vladimir-dk Linux - Hardware 0 09-08-2004 05:09 PM
Debian sarge netinstall software raid major problem araldit Linux - Newbie 0 07-22-2004 05:58 PM
raid+ide boot problem yoyo.21 Linux - Software 2 05-01-2001 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:07 PM.

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