LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-16-2007, 09:36 PM   #1
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 141

Rep: Reputation: 15
Best way to migrate Linux server to another server


I'm running a mail, Apache/PHP/MySQL and Samba server on Debian Sarge. I'm going to upgrade from this server to a much newer machine. Is there any way I can "migrate" this Linux install?

I have a LOT of stuff installed on this server, so doing each package individually will be a real job. Is there any other way?

Thanks.
 
Old 06-16-2007, 10:05 PM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,177
Blog Entries: 8

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
I don't know how to configure the new ethernet card, but if you can figure that out then you can just move the hard drive to the new machine (or copy the drive with dd).

I never got that deep into hardware configuration in Sarge. I vaguely know how to do it with Etch, but Etch uses udev which wasn't in Sarge.
 
Old 06-16-2007, 10:11 PM   #3
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 141

Original Poster
Rep: Reputation: 15
I could upgrade to Etch

Thanks for your input. I've been thinking of upgrading to Etch for a while.

How do I use dd to copy a hard drive to a file? Is it something like :
dd if=/dev/hda of=/dev/hdb/image.img or something? I've never used dd before.
 
Old 06-16-2007, 10:17 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do a search of LQ - there's a good explanation here somewhere (I saw it a month or so ago)
 
Old 06-17-2007, 06:58 AM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,177
Blog Entries: 8

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
Here's a simple how-to on using dd to duplicate a hard drive (good for going to a different hard drive that's the same size or bigger): Use dd to clone hard drive

Note that you don't really need to clone the hard drive for Linux if you know your way around your favorite partitioner and are comfortable with reinstalling GRUB. I use the "dd" method for migrating Windows since I'm not so familiar with Windows. For Linux, I just use copy commands like "cp -vax /media/hda1/* /media/hdb1/", and install GRUB.

Last edited by IsaacKuo; 06-17-2007 at 07:02 AM.
 
Old 06-17-2007, 11:43 PM   #6
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Use can use ghost4linux or systemimager.
Links :
http://howtoforge.com/back_up_restor...th_ghost4linux
http://howtoforge.com/howto_linux_systemimager
http://howtoforge.com/dedicated_serv...e_systemimager
 
  


Reply


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
HELP: Migrate to new server spacewalker Linux - Newbie 3 03-16-2007 11:44 AM
HELP: Migrate to new server spacewalker Linux - Hardware 2 03-13-2007 03:57 PM
migrate win2000 server to linux dajomu Linux - Software 2 09-13-2005 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration