LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-13-2005, 06:48 AM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
Can a Harddisk-installed Debian(not a Live CD) be used on different server?


I installed Debian on ServerA. Then I unplug the harddisk and plug into ServerB, which is of different configuration than ServerA. Will ServerB boot up successfully? Or do I need to reinstall the OS?

Thanks !
 
Old 09-13-2005, 06:59 AM   #2
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
I have done this with windows XP and worked just fine.
As linux is even better than winxp, I bet it will boot up, but you will probably have to reconfigure your hardware.
Watch out though. If the disk on server A was primary master for example, you need to set it as primary master on server B too, otherwise, the bootloader (grub, lilo) will be confused.
 
Old 09-13-2005, 07:17 AM   #3
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
You might have some problems depending on your configuration. In most cases reconfiguring would do the magic.

However, didn't you notice that there are few packages in the official Debian CDs wich helps you to reinstall the same currently installed system to another machine (which would adapt to the hardware configuration changes) It uses "rsync".

Sorry that I cannot give you the name of it since I'm not at any of the Debian boxes right now.
 
Old 09-13-2005, 07:50 AM   #4
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
Hey , thanks for replies. When you mentioned 'reconfigure', do you mean that I have to boot up to single user mode and run some scripts(do enlighten me what are the scripts) to reconfigure the system?

Thanks!

Last edited by Akhran; 09-13-2005 at 07:52 AM.
 
Old 09-14-2005, 01:09 AM   #5
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
It depends. In most cases you would have to reconfigure bootloader (GRUB/LILO) settings, X (XFree86/X.org). Hope your processors are not very different, Otherwise you would have to replace the kernel, initrd images, etc.

Can you remember I told about a package which uses rsync. It's "replicator". I haven't used it. But I think should have a look at it. Its description says "it can handle differences in partitioning and hardware"
 
Old 09-15-2005, 02:59 PM   #6
h2gofast
Member
 
Registered: Dec 2002
Distribution: Debian
Posts: 154

Rep: Reputation: 30
I've done this and it helps signifigantly if you are using similar hardware.
Also the kernels I've done this with were debian images, i.e I didn't compile them myself, so the kernel should load the modules neccessary to get the new mobo and hardware off the ground. Don't try AMD images with intel machines, unless you apt-get install the i386 kernel image before you remove the harddrive. This way it will be available as an option on the grub menu when you reboot. Which brings me to the next point.
Grub must be configured for the new machine. It will bork if grub used to be on disk hd0 and now it's on disk hd2. You will also have to edit fstab to reflect the new changes, and X config for new hardware. It's not too bad. Install appropriate kernel image, edit grub, fstab and X config, swap the drive and reboot.
Have a live cd available before you do this. If you make a mistake on a config file, you can boot the live cd, mount the drive and edit what you need.
Have fun.
 
  


Reply



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
can RHEL- 3 can be installed on the PC having Serial ATA Harddisk Tushar Bhopi Linux - Hardware 2 08-13-2005 07:16 PM
Harddisk problem live cd scsi sadun SUSE / openSUSE 1 06-02-2005 06:34 AM
why the light of my harddisk be lighted every 5 seconds?(I installed the FedoraCore2) theapp Linux - Hardware 22 04-10-2005 09:02 AM
PowerPC Debian and Xserver G4 harddisk modules GT3NE1 Debian 1 10-17-2004 10:07 PM
why the light of my harddisk be lighted every 5 seconds?(I installed the FedoraCore2) theapp Fedora 8 08-09-2004 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:38 AM.

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