05-21-2013
Help with adding a new driver in initrd at install time
I have a really old distro (FC7) that I am trying to make compatible with some new hardware (ie. new RAID drivers)...
I put the RAID driver into the ISO so that the installer can detect the RAID set... but post-install (aka: first boot) it appears that the Anaconda-generated initrd does not have the RAID driver?
I get a kernel panic (quoted as much as possible):
Quote:
i8042.c: No controller found.
Red Hat nash version 6.0.9 starting
Unable to access resume device (LABEL=SWAP-sda6)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
Yeah yeah, I realize the swap *could* be messed up, but since the kickstart file I am using (that does the mkswap) used to work fine before I switched to newer hardware, I am *guessing* that the only problem is that the RAID driver is not making it into the initrd file for boot...
But how do I get the driver there? who calls mkinitrd at install time? to edit the ISO, I was able to add just a single module to the modules.cgz inside the initrd.img file... but thats because that is static within the ISO... how do I make the same happen within the install-created initrd?
Any help?
10 More Discussions You Might Find Interesting
1. SCO
I have a new Dell PowerEdge 2900 with perc5/i and no os. I need to install SCO Openserver 6 and I need create a megasas BTLD floppy in order to install the os.
http://ftp.sco.com/pub/unixware7/714/drivers/megasas_1.1/README.hba.megasas.1.1.txt
According to the link, I need to download the... (4 Replies)
Discussion started by: jpop2000
4 Replies
2. Solaris
Hi ,
How to check the drivers of a dat tape? And once downloaded how to install drivers for the same??
Where to download drivers from? Having some trouble with Dat tape drive configuration.. (2 Replies)
Discussion started by: saurabh84g
2 Replies
3. Solaris
When I boot up the Solaris 10 5/09 install CD and select 'Solaris' from the GRUB menu that comes up, a menu loads. Option 5 is 'Apply Driver Updates'. Can I install the Gani driver using that? I tried using the tar file (the way it came) that I wrote to a floppy but when I asked it to look at the... (8 Replies)
Discussion started by: Bradj47
8 Replies
4. Solaris
Hi all
I had update a server from Solaris 8 to Solaris 10
is it the HBA driver still need to reinstall?
since i can get the driver info as below:
root@sgerpdev # fcinfo hba-port
HBA Port WWN: 21000003ba9b58a3
OS Device Name: /dev/cfg/c1
Manufacturer: QLogic Corp.
... (1 Reply)
Discussion started by: SmartAntz
1 Replies
5. Hardware
Hi Gurus of Unix
Recently I install a OpenSolaris in My HP 530
In this moment want to install a USB-A to Serial Cable. Any guru can send a Link where I can use how reference.
I want to configure a Router and my PC don't have any serial Port.
My LapTOP only has USB ports. In this case I buy a... (2 Replies)
Discussion started by: andresguillen
2 Replies
6. Fedora
hi guys
i am using fedora 14
but today moving to OpenBSD4.8
and remove all part hard :mad:
but easy install programs pkg_add program :b:
now
How i can install Driver ATI on OpenBSD 4.8 ?
and i am use "lspci" show hardware but not work openbsd
&
how i can create part my home size... (0 Replies)
Discussion started by: OpenBSD1986
0 Replies
7. Ubuntu
I'm planning to install the Ubuntu OS on my laptop(currently has windows Vista), but I don't know if Ubuntu is good. Do you need to install any drivers for Ubuntu? Can I send stuff to my printer in Ubuntu? Is it compatible with my printer driver? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
8. UNIX for Dummies Questions & Answers
Hi, I am faily new to linux and bash scripting. But essentially what I am trying to do is create a small bash script that will automatically install a driver I want. I can do it manually but I want to create a script so I won't forget, since it is an internet driver I won't be able to get help when... (0 Replies)
Discussion started by: dmacmillan
0 Replies
9. Shell Programming and Scripting
I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also to be considered while incrementing the day. The code/ function that I have formed so far is as... (3 Replies)
Discussion started by: codehelp04
3 Replies
10. Debian
Hi,
i'm using a debian-4.0r1 on an old subnet machine.
I have to extend it with an other keyboard .
What i have is a DVD of etch 4.0r7.
How can i install and load the keyboard-driver for the us-keyboard?
Can anybody please give me a hint how to do that?
Thanks in advance (0 Replies)
Discussion started by: IMPe
0 Replies
LEARN ABOUT REDHAT
mkinitrd
MKINITRD(8) System Manager's Manual MKINITRD(8)
NAME
mkinitrd - creates initial ramdisk images for preloading modules
SYNOPSIS
mkinitrd [--version] [-v] [-f]
[--preload=module] [--omit-scsi-modules]
[--omit-raid-modules] [--omit-lvm-modules]
[--with=module] [--image-version]
[--fstab=fstab] [--nocompress]
[--builtin=module] [--nopivot]
image kernel-version
DESCRIPTION
mkinitrd creates filesystem images which are suitable for use as Linux initial ramdisk (initrd) images. Such images are often used for
preloading the block device modules (such as IDE, SCSI or RAID) which are needed to access the root filesystem. mkinitrd automatically
loads filesystem modules (such as ext3 and jbd), IDE modules, all scsi_hostadapter entries in /etc/modules.conf, and raid modules if the
system's root partition is on raid, which makes it simple to build and use kernels using modular device drivers.
Any module options specified in /etc/modules.conf are passed to the modules as they are loaded by the initial ramdisk.
If the root device is on a loop device (such as /dev/loop0), mkinitrd will build an initrd which sets up the loopback file properly. To do
this, the fstab must contain a comment of the form:
# LOOP0: /dev/hda1 vfat /linux/rootfs
LOOP0 must be the name of the loop device which needs to be configured, in all capital lettes. The parameters after the colon are the
device which contains the filesystem with the loopback image on it, the filesystem which is on the device, and the full path to the loop-
back image. If the filesystem is modular, initrd will automatically add the filesystem's modules to the initrd image.
The root filesystem used by the kernel is specified in the boot configuration file, as always. The traditional root=/dev/hda1 style device
specification is allowed. If a label is used, as in root=LABEL=rootPart the initrd will search all available devices for an ext2 or ext3
filesystem with the appropriate label, and mount that device as the root filesystem.
OPTIONS
--builtin=module
Act as if module is built into the kernel being used. mkinitrd will not look for this module, and will not emit an error if it does
not exist. This option may be used multiple times.
-f Allows mkinitrd to overwrite an existing image file.
--fstab=fstab
Use fstab to automatically determine what type of filesystem the root device is on. Normally, /etc/fstab is used.
--image-version
The kernel version number is appended to the initrd image path before the image is created.
--nocompress
Normally the created initrd image is compressed with gzip. If this option is specified, the compression is skipped.
--nopivot Do not use the pivot_root system call as part of the initrd. This lets mkinitrd build proper images for Linux 2.2 kernels
at the expense of some features. In particular, some filesystems (such as ext3) will not work properly and filesystem options will
not be used to mount root. This option is not recommended, and will be removed in future versions.
--omit-lvm-modules
Do not load any lvm modules, even if /etc/fstab expects them.
--omit-raid-modules
Do not load any raid modules, even if /etc/fstab and /etc/raidtab expect them.
--omit-scsi-modules
Do not load any scsi modules, including 'scsi_mod' and 'sd_mod' modules, even if they are present.
--preload=module
Load the module module in the initial ramdisk image. The module gets loaded before any SCSI modules which are specified in /etc/mod-
ules.conf. This option may be used as many times as necessary.
-v Prints out verbose information while creating the image (normally the mkinitrd runs silently).
--version
Prints the version of mkinitrd that's being used and then exits.
--with=module
Load the modules module in the initial ramdisk image. The module gets loaded after any SCSI modules which are specified in /etc/mod-
ules.conf. This option may be used as many times as necessary.
FILES
/dev/loop* A block loopback device is used to create the image, which makes this script useless on systems without block loopback
support available.
/etc/modules.conf Specified SCSI modules to be loaded and module options to be used.
SEE ALSO
fstab(5), insmod(1), kerneld(8), lilo(8)
AUTHOR
Erik Troan <ewt@redhat.com>
4th Berkeley Distribution Sat Mar 27 1999 MKINITRD(8)