Hi, all.

I have a problem with my firewall running Linux with software RAID and figured someone here would probably know how I can fix the problem.

I have 2 RAID partitions, md0 (consisting of sda5 and sdb5) and md1 (consisting of sda3 and sdb2).

I upgraded the BIOS on the motherboard and the SATA settings were set to the wrong value, causing the bootup to not pass the raid assembly. I connected the drives to another system to make sure that the raid was ok, but then it was assembled as md2 and md3. I've later found the problem with the BIOS setting and set the raid partition back to md0 and md1, but something is wrong and it can't mount / and I'm not able to find out how to fix it.

During boot, I get:

md: Autodetecting RAID arrays.
md: autorun ...
md: considering sdb5 ...
md: adding sdb5 ...
md: sdb2 has different UUID to sdb5
md: adding sda5 ...
md: sda3 has different UUID to sdb5
md: created md0
md: bind<sda5>
md: bind<sdb5>
md: running: <sdb5><sdb5>
raid1: raid set md0 active with 2 out of 2 mrrors
md: considering sdb2 ...
md: considering sda3 ...
md: md0 already running, cannot run sdb2
md: export_rdev(sda3)
md: export_rdev(sdb2)
md: ... autorun DONE
md: Autodetecting RAID arrays.
md: autorun ...
md: considering sdb2 ...
md: adding sdb2 ...
md: adding sda3 ...
md: md0 already running, cannot run sdb2
md: export_rdev(sda3)
md: export_rdev(sdb2)
md: ... autorun DoNE
Creating block devices
Creating root device
Mounting root filesystem
EXT3-fs: unable to rewad superblock
mount: error 22 mounting ext3
Switching to new root
switchroot: mount failed: 22
Kernel panic - not syncing: Attempted to kill init!

So it looks like it tries to create 2 instances of md0. How can I get it to create md0 and md1?

TIA, Stig