Re: Old hd, new machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



At Wed, 16 Dec 2009 07:33:38 -0600 CentOS mailing list <centos@xxxxxxxxxx> wrote:

> 
> Jussi Hirvi wrote:
> >>> What should I do to make an existing CentOS (5.4) disc boot up on a new
> >>> computer?
> >>> [...]
> >>> Would it be enough to boot with a DVD in rescue mode, or boot with
> >>> another hd, and install grub?
> > On 16.12.2009 12:16, Sorin Srbu wrote:
> >> For me it has worked to just install the old hd in the new machine and boot
> >> it up. Kudzo takes care of the rest.
> > 
> > Then you have been lucky. :-) For me, the startup stopped already before 
> > the CentOS splash screen. I guess something was wrong with the initrd.
> >
> 
> If the disk holding the / partition needs a different driver than what you had 
> during the install, you have to rebuild the initrd.  Anaconda knows how to do 
> that, kudzo can't.  You can do it from a rescue-mode boot, but you may have to 
> know the right module names.

*Before* swapping out the old disk, add an appropriate scsi_hostadapterN
(N >= 1) alias to /etc/modprobe.conf and then do:

mkinitrd -f /boot/initrd-`uname -r`.img `uname -r`

All should be good then.

IF both the old machine and the new machine have your basic, vanila IDE
disks, then there is no problem.

> 

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller@xxxxxxxxxxxx       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                                             
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux