pantz.org banner
Modifying a initrd image in Fedora core 1
Posted on 07-26-2005 02:10:00 UTC | Updated on 07-26-2005 02:10:00 UTC
Section: /software/linux/ | Permanent Link

Had a machine that was running fedora core 1 on it. It has a Ultra 160 SCSI controller with a Adaptec AIC-7898 chip on it. But the motherboard had a Adaptec Ultra 320 AIC-7902 chip on it. The drives were all U320 so why not plug into the motherboards controller. Well to do this I was told we had to use the current system with out a kernel recompile or reinstall. Luckly the aic79xx.o module was already built. I turned on the U320 chip on the mobo by jumping it and rebooted. The old module failed to load as expected so I edited the modules.conf file and modprobe.conf files. Changed the line "alias scsi_hostadapter aic7xxx" to "alias scsi_hostadapter aic79xx". Then rebooted and it was still trying to load the aic7xxx module. I thought this was strange. Long story short I find out that I had to make a new initrd image so it would boot with the new configs from the .conf files. This system was setup to boot from an initrd image. To make the new image I used the command "mkinitrd" and the name of the current running kernel exactly. "mkinitrd /tmp/initrd-2.4.22-1.1199-smp.img 2.4.22-1.1199-smp". Then copy the new initrd image over to the /boot directory "cp /tmp/initrd-2.4.22-1.1199-smp.img /boot". Reboot and it came right up.

After reading the man page it makes sense now but just trying to figure it out is the hard part. Here is some info on it:

       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
       systems  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.  

Reddit!

Related stories


RSS Feed RSS feed logo

About


3com

3ware

alsa

alsactl

alsamixer

amd

android

apache

areca

arm

ati

auditd

awk

badblocks

bash

bind

bios

bonnie

cable

carp

cat5

cdrom

cellphone

centos

chart

chrome

chromebook

cifs

cisco

cloudera

comcast

commands

comodo

compiz-fusion

corsair

cpufreq

cpufrequtils

cpuspeed

cron

crontab

crossover

cu

cups

cvs

database

dbus

dd

dd_rescue

ddclient

debian

decimal

dhclient

dhcp

diagnostic

diskexplorer

disks

dkim

dns

dos

dovecot

drac

dsniff

dvdauthor

e-mail

echo

editor

emerald

encryption

ethernet

expect

ext3

ext4

fat32

fedora

fetchmail

fiber

filesystems

firefox

firewall

flac

flexlm

floppy

flowtools

fonts

format

freebsd

ftp

gdm

gmail

gnome

google

gpg

greasemonkey

greylisting

growisofs

grub

hacking

hadoop

harddrive

hba

hex

hfsc

html

html5

http

https

hulu

idl

ie

ilo

intel

ios

iperf

ipmi

iptables

ipv6

irix

javascript

kde

kernel

kickstart

kmail

kprinter

krecord

kubuntu

kvm

lame

ldap

linux

logfile

lp

lpq

lpr

maradns

matlab

memory

mencoder

mhdd

mkinitrd

mkisofs

moinmoin

motherboard

mouse

movemail

mplayer

multitail

mutt

myodbc

mysql

mythtv

nagios

nameserver

netflix

netflow

nginx

nic

ntfs

ntp

nvidia

odbc

openbsd

openntpd

openoffice

openssh

openssl

openvpn

opteron

parted

partimage

patch

perl

pf

pfflowd

pfsync

photorec

php

pop3

pop3s

ports

postfix

power

procmail

proftpd

proxy

pulseaudio

putty

pxe

python

qemu

r-studio

raid

recovery

redhat

router

rpc

rsync

ruby

saltstack

samba

schedule

screen

scsi

seagate

seatools

sed

sendmail

sgi

shell

siw

smtp

snort

solaris

soundcard

sox

spam

spamd

spf

spotify

sql

sqlite

squid

srs

ssh

ssh.com

ssl

su

subnet

subversion

sudo

sun

supermicro

switches

symbols

syslinux

syslog

systemd

systemrescuecd

t1

tcpip

tcpwrappers

telnet

terminal

testdisk

tftp

thttpd

thunderbird

timezone

ting

tls

tools

tr

trac

tuning

tunnel

ubuntu

unbound

vi

vpn

wget

wiki

windows

windowsxp

wireless

wpa_supplicant

x

xauth

xfree86

xfs

xinearama

xmms

youtube

zdump

zeromq

zic

zlib