Skip to contentSkip to conversation

Making bootable SATA RAID1 array in Mandriva 2006

DISCUSSION andy liebman 4 participants 4 messages Aug 16, 2006 MD RAID

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines
Quoted 3 lines

I'm not sure I understand what you're saying about mounting /dev, /proc and /sys.

just run:
mount --bind /dev /newroot/dev
mount -t proc /proc /newroot/proc
mount -t sysfs /sys /newroot/sys
before chrooting

Quoted 5 lines

L.
btw, be sure to add "auto=yes" to the ARRAY lines in /etc/mdadm.conf or you might find some arrays are not recognized after boot.

L.

Thank you Luca. That was helpful. I have a couple of other questions about Mandriva and mkinitrd. They probably don't belong on this list. But we're both here.

1) I am running a custom-compiled 2.6.16.20 kernel on Mandriva 2006. When I run mkinitrd, I'm getting several messages "skip dups". Is that anything to be concerned about? I googled that and can't find anything.

2) It seems the format of initrd's being made is cpio + gz. In other words, if I want to inspect the initrd, I cannot use the technique that I always used:

mkdir /tmp/initrd
cd initrd
cp /boot/newinitrd.img .
mv newinitrd.img newinitrd.ext2.gz
gunzip newinitrd.ext2.gz
mkdir mount
mount newinitrd.ext2 mount -o loop

That doesn't work anymore with the 2.6.16 kernel. Now I have to do:

mkdir /tmp/initrd
cd initrd
cp /boot/newinitrd.img .
mv newinitrd.img newinitrd.ext2.gz
gunzip newinitrd.ext2.gz
mkdir mount
cd mount
cpio -id < ../newinitrd.ext2

Does that make sense? Has the format changed for initrd's. I also noticed that the new initrds have a script called "init" instead of "linuxrc".

Andy

#1 lore raw
Quoted 1 line

Does that make sense? Has the format changed for initrd's. I also noticed that the new initrds have a script called "init" instead of "linuxrc".

see Documentation/filesystems/ramfs-rootfs-initramfs.txt in the kernel sources.

#3 lore raw

On 16 Aug 2006, Justin Piszcz murmured woefully:

Quoted 8 lines

-- snip --

If you are using a custom compiled kernel, why on earth would you want to use an initrd? -
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Lack of understanding of initramfs? :) it's new and many distros don't use it yet, so I can understand a bit of confusion.

Andy, you might want to look at
<http://linux-raid.osdl.org/index.php/RAID_Boot> for the initramfs setup I use, based around uClibc and busybox. It can fsck-and-mount root stored on RAID+LVM or on LVM alone, and with small adjustments should be able to boot RAID alone with no LVM involved (I'll make those changes shortly, I just haven't needed them myself).

Signature · 2 lines
`We're sysadmins. We deal with the inconceivable so often I can clearly 
 see the need to define levels of inconceivability.' --- Rik Steenwinkel