Best Way To Port Debian Installation To Another Box
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.