mkinitrd question
I'm trying to get Slackware 12 running on my HP server.
It is an older P3 model DL 380 with a Smart Array 5i controller. I have 6 disks total, containing two RAID 5 arrays. # cat /etc/fstab /dev/cciss/c0d0p3 swap swap defaults 0 0 /dev/cciss/c0d0p2 / reiserfs defaults 1 1 /dev/cciss/c0d0p1 /boot ext3 defaults 1 2 /dev/cciss/c0d1p1 /home reiserfs defaults 1 2 /dev/cciss/c0d1p2 /var reiserfs defaults 1 2 #/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 Everything is installed, and I am trying to use generic kernel instead of huge. I ran the following mkinitrd command: # mkinitrd -c -k 2.6.21.5-smp -m reiserfs:ext3:cciss -f reiserfs -r /dev/cciss/c0d0p2 I reboot and get a kernel panic stating the root partition failed to mount and that /sbin/init could not be found on rootdev. What gives? Am I forgetting to include a scsi module? Is module raid_class required? PCI chipset for motherboard? # lspci 00:00.0 Host bridge: Broadcom CNB20HE Host Bridge (rev 23) 00:00.1 Host bridge: Broadcom CNB20HE Host Bridge (rev 01) 00:00.2 Host bridge: Broadcom CNB20HE Host Bridge (rev 01) 00:00.3 Host bridge: Broadcom CNB20HE Host Bridge (rev 01) 00:01.0 RAID bus controller: Compaq Computer Corporation Smart Array 5i/532 (rev 01) 00:02.0 Ethernet controller: Intel Corporation 82557/8/9 Ethernet Pro 100 (rev 08) 00:04.0 Ethernet controller: Intel Corporation 82557/8/9 Ethernet Pro 100 (rev 08) 00:05.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27) 00:06.0 System peripheral: Compaq Computer Corporation Advanced System Management Controller 00:0f.0 ISA bridge: Broadcom OSB4 South Bridge (rev 51) 00:0f.1 IDE interface: Broadcom OSB4 IDE Controller 00:0f.2 USB Controller: Broadcom OSB4/CSB5 OHCI USB Controller (rev 04) 07:04.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) 07:04.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01) 07:07.0 PCI Hot-plug controller: Compaq Computer Corporation PCI Hotplug Controller (rev 12) |
hmm..
first things first. did you install the initrd ( mkinitrd again,modifying lilo.conf and rerunnung lilo). mkinitrd is supposed to insert the dependencies of a module as well (like modprobe). so if cciss needs a scsi module it would have been included.. what modules are loaded, when you boot with the -huge kernel? |
Quote:
Code:
mkinitrd Code:
/sbin/lilo Code:
# Linux bootable partition config begins Quote:
Code:
cat /boot/initrd-tree/load_kernel_modules Code:
# lsmod |
I had a similar issue on a DL360 right about the time 12.0 released, and I've not had time to get all the kinks worked out of it. Try this patch to mkinitrd (credit goes to Eric Hameleers, not me, for this one) - it solves at least one of the problems that you're having (but probably didn't notice yet) :-)
Code:
--- mkinitrd.orig 2007-07-14 01:15:21.415210095 -0500 |
All I get from the kernel panic is the following:
Code:
mount: mounting /dev/cciss/c0d0p2 on /mnt failed. Rob, thanks for the patch. I'll give it a shot this morning. |
Big thanks for the patch. Everything worked this time.
All I had to do was: Code:
# cp /sbin/mkinitrd /root/mkinitrd.old Rob, has this fix been submitted to Pat V.? |
Quote:
Anyway, good to hear that this worked for you. I'll make Pat aware of it, but I can't even speculate on whether he'll patch it post-release. |
Now I'm having the same issue on a different machine. mkinitrd 1.1.3 didn't work as expected.
Code:
mkinitrd -c -f reiserfs -k 2.6.22.1 -m reiserfs -r /dev/sda3 The machine is a AMD X2, NV NF4 mobo, and a WD SATA. /boot = ext3 / = reiserfs |
Quote:
If you've got a custom kernel (2.6.22.x), then why even bother with an initrd? Since you're having to compile the kernel anyway, go ahead and put reiserfs support in it. |
I guess you're right. KISS, right?
(SATA drivers also help) I'm not complaining, but they did a sloppy job with mkinitrd 1.1.3 as they only applied a quarter of the patch above, and they didn't even change the version numbers in the script. So mkinitrd 1.1.3 doesn't fix the problem, but the patch above does. I'm sending an email to info@slackware.com. :study: |
All times are GMT -5. The time now is 04:01 PM. |