Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-17-2003, 10:52 AM   #1
LQ Newbie
Registered: Jun 2003
Distribution: RedHat8.0
Posts: 12

Rep: Reputation: 0
Unhappy Problems in moving RH7.3 to a new machine

I just bought a brand new PIV 2.54GHz machine, to replace my old PII 500MHz Redhat 7.3 server, to save times, i use the following method to copy the linux to the new machine,

1. have the HDDs in the new machine partitioned
2. boot with a timos rescue cdrom in the new machine (, with ssh support
3. mount the fs, write a script to copy everything from the old machine to the new one
4. chroot and run grub-install

everything run just fine with my way,

But there is a big problem i encountered, the new machine is runnning RAID 5, with a 3ware RAID card, the old machine is running raid0+1, with aic7xxx module.

When the system boot, the kernel load the aic7xxx scsi module, that made the root file system (/dev/sda1) of the new machine cannot be recognized, and cause a "Kernel panic" error.

How can i change the module that the kernel load to 3w-xxxx instead of aic7xxx while the system boot up?

I have tried to modify /etc/modules.conf, but no use, since this file seems to be load after the root fs is mount.

May anyone here help me to troubleshoot this problem??
Many thanks.
Old 06-17-2003, 01:43 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The module may be loaded via initrd (small image with all needed to boot) or it may be compiled inside your kernel. Hard to say without knowing if you're using default kernel or compiled your own one.
Old 06-17-2003, 08:08 PM   #3
LQ Newbie
Registered: Jun 2003
Distribution: RedHat8.0
Posts: 12

Original Poster
Rep: Reputation: 0
I am using the default kernel.
How to load module via initrd?
Old 06-18-2003, 11:44 AM   #4
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
The easiest thing to do would be to dissect the current initrd.
Copy it to ~/initrd.gz
mkdir ramdisk
gunzip initrd.gz
mount -o loop initrd ramdisk/

For RedHat, Inside the ramdisk directory will be a shell script called linuxrc ( interpreted by a statically linked shell /insmod binary ). Copy the kernel modules you need to under lib and add a line that says
insmod </lib/newmodule.o>

Now umount, gzip and copy it to /boot. Rename file or modify boot loader conf to use it. Have fun.


if you know what else you need ( in terms of modules ), add 'em all and use the RH mkinitrd utility . See manpage.

/sbin/mkinitrd --with=module1 --with=module2 newinitrd.img.gz $(uname -r)

Last edited by nxny; 06-18-2003 at 11:46 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving accounts from a machine to another machine eyt Linux - Newbie 3 10-01-2003 02:06 PM
Problems in moving RH7.3 to a new machine mantat Linux - Hardware 5 06-18-2003 08:38 AM
Problems in moving RH7.3 to another machine mantat Linux - Software 1 06-17-2003 01:25 PM
How to connect a notebook (win2000) via USB to RH7.2 machine ? salman Linux - Networking 2 01-14-2002 01:05 PM
How to set the machine name in RH7 and SuSE? concoran Linux - Networking 1 11-08-2001 11:03 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration