LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-23-2007, 08:34 AM   #1
merrsh1
LQ Newbie
 
Registered: Jun 2007
Location: Durham, England
Posts: 6

Rep: Reputation: 0
Best Way To Port Debian Installation To Another Box


Hi All,

I currently have debian installed on a dedicated server but want to move to another provider.

The problem is I've invested a lot of time in setting up my box and would like to move the entire operating system (or as much as possible) to the other box.

To clarify I do not have physical access, only remote.

What, if any, is the best way to achieve this?

Shaun
 
Old 06-23-2007, 09:35 AM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I assume you have ssh remote access--is that right? First, you'll want to configure it to allow root login if it's not already set up to do so. Then, the basic steps you'll want to take are:

1) Print out a copy of /etc/fstab so you can figure out the partitions you will need to duplicate.

2) Set up a local hard drive with the same partition structure (the sizes don't need to be the same).

3) Shut down as many daemons as possible; obviously you need the ssh daemon running, but for example you don't need apache running.

4) Use an sftp client to copy over each partition's data, making sure to preserve file permissions/ownership data.

5) Install the grub bootloader on the local hard drive.

6) Move the local hard drive to be the primary master of the new computer.

7) Boot it up, and run dpkg-reconfigure base-config if necessary to redetect and set up hardware (I take it you're using Debian 3.1; base-config isn't in Debian 4.0).

This is just a broad overview of the steps to take.
 
Old 06-23-2007, 04:35 PM   #3
merrsh1
LQ Newbie
 
Registered: Jun 2007
Location: Durham, England
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the response Isaac. It all sounds quite complex. I'm relatively new to Linux but keen to learn. Is the process accomplishable by someone of intermediate ability or would you recommend getting a professional to do this?

Do you know of any tutorials/how to's etc that would give more in depth descriptions of whats involved?

Thanks.
 
Old 06-23-2007, 04:56 PM   #4
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Well, I don't know anything about how to go about hiring a professional to do it. I personally would feel comfortable doing it, but that's probably of little help to you unless you live in Baton Rouge, Louisiana.

The thing which makes your situation more complex is that you only have remote access. There are a number of straightforward ways to copy/clone an OS locally, but if you only have remote access it's going to be more complicated.
 
Old 06-24-2007, 07:33 AM   #5
merrsh1
LQ Newbie
 
Registered: Jun 2007
Location: Durham, England
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Isaac. Baton Rouge is a bit far away, i'm in Durham England . I guess its time to get my hands dirty or start looking for help locally.

Cheers for your responses.
 
  


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
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 12:59 AM
Cannot ssh to debian box from Gentoo box or Putty, but I can from Cygwin? Pengus Linux - Networking 2 01-20-2006 12:47 PM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM
Is my box port scanning? ryedunn Linux - Security 2 01-07-2005 04:45 AM
Can I protect my RedHat 7.2 box from port scanning? yuzuohong Linux - Networking 2 06-05-2003 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 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
Open Source Consulting | Domain Registration