Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-26-2003, 01:38 PM   #1
Registered: Sep 2003
Distribution: LFS6.1, FC3, RH9
Posts: 36

Rep: Reputation: 15
How to move Linux OS to differnent computer?

What is the easiest way to move a Linux systems' discs a new computer, and get it to recognize the new hardware?

I have a Red Hat Linux system that I need to move from one computer to another. The new harware has a new motherboard and a different SCSI controler.

I thought I could just move the disk to the new computer and perform an "upgrade" installation and the install would recognize the new hardware and be done with it.

The upgrade install went fine, but when I rebooted it failed. I noticed that the system is still trying to load the old SCSI modules. Obviously the "upgrade" install did not notice that there was different hardware, so it continued to use the old hardware drivers.

There must be a way to quickly restore a system when hardware fails, but the hard disks are fine. We can't be expected to have an identical computer lying around, can we?

- Joe
Old 09-26-2003, 03:27 PM   #2
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
In general, chkconfig --level 345 kudzu on will make sure kudzu (the hardware detector) is activated during boot. Then just pull the harddrive out, install in the new machine and boot 'er up. It should recognize that old HW is gone, and new kit is present.

for your SCSI issues, edit /etc/modules.conf and remove and kernel modules for SCSI. If you passed any arguments to the kernel at boot time, you may need to remove these from /boot/grub/grub.conf
Old 09-26-2003, 06:30 PM   #3
Registered: Sep 2003
Distribution: LFS6.1, FC3, RH9
Posts: 36

Original Poster
Rep: Reputation: 15
At this point I think I have just the SCSI issue. The systems is still trying to load the old SCSI card driver.

I changed /etc/modules.conf to reflect the new SCSI module (i.e. alias scsi_hostadapter aha1542), and made sure that aha1542.o was in /lib/modules/<kernelversion>/kernel/drivers/scsi/.

Here is the part of the boot up screen when it gets to loading the SCSI driver:
Loading scsi_mod module
SCSI subsystem driver Revision: 1.00
Loading sd_mod module
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
Loading aic7xxx module
/lib/aic7xxx.o: init_module
Hint: insmod errors can be caused by incorrect module parameters, including inva
lid IO or IRQ parameters
ERROR: /bin/insmod exited abnormally!

I don't know where it is getting the idea to load aic7xxx, when the existing hardware is aha1542. Is this stored in the boot image that grub calls when loading the kernel? Shouldn't the upgrade process have realised that the new scsi adpater was the aha1540, and replaced whatever was used previously in the boot partition?

- Joe
Old 09-26-2003, 11:00 PM   #4
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,876

Rep: Reputation: 88
What is the easiest way to move a Linux systems' discs a new computer, and get it to recognize the new hardware?
Install Linux on the other computer.

While a basic text/console based install can be moved to similar hardware (ix86 to ix86; IDE to IDE and so forth) any major changes are best delt with by a new install and transfer of needed files.

If you really think it's worth the work; shutting off start to Xwindows and working to add correct drivers or options may work.

Anything hardcoded into a setup text file can be changed with a Tom's floppy or Knoppix CD.

Good Luck.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
move present mailbox to another computer IraB Linux - General 3 08-27-2005 06:47 AM
Move Evolution 2.0 From One Computer to Another eboggess Linux - Software 3 03-16-2005 03:02 PM
can i move my hard drive to a different computer citrus Linux - General 5 04-12-2004 03:30 AM
I need to move my server from a computer to another how? mfeoli Linux - Newbie 2 01-08-2004 11:17 PM
How can I compile stuff on one computer, and move it to another? kleptophobiac Slackware 6 09-07-2003 10:08 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration