Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I'm thinking about cloning a system without having physical access to its HDD. Is it possible to simply copy the contents of the filesystem (using ssh/scp) to a freshly formatted HDD (maintaining the source fs-type and -geometry)?
Do I have to pay special attention regarding the /dev, /proc and /sys folders?
You can use cpio command to live backup. It will not maintain fs-type and disk geometry.
You need to tar backup for /dev
Your destination machine should manually parition and create filesystem as you want.
Again, your source and destination boxes must be same hardware. If not, you may need to change the drivers manually.
Thanks for your answer. So it should be (at least theoretically) possible to acomplish this task...
Is there an easy way to copy the current bootloader or can I simply prepare the new disk using syslinux?
By the way: Why do you mention cpio instead of tar?
What is the reason behind cloning the system? Do you have special settings that you have forgotten or something of the sort?
It has been my experience, that building a new VM or Server, then rsyncing the actual content that I need is always easier than trying to clone a machine. Given, sometimes that means pulling out the httpd config, or hosts files, or other configurations that are sometimes forgotten until you try and get the thing to work, but it still seems quicker than trying to find a machine with the exact same specs, formatting and partitioning, copying bootloaders etc...
What is the reason behind cloning the system? Do you have special settings that you have forgotten or something of the sort?
The reason is a little bit strange: The system is an embedded print server (using specialized/properitary expansion cards) and I need to upgrade its performance (currently, it runs on an Intel Tolapai SoC at 1GHz). Unfortunately, everything's tight closed and no sources are available (not even for the kernel!).
I'm now trying to put everything on a P4 or Core2 mainboard (maintaining the same chipset or at least, matching the same series).
I can't clone this machine offline because the HDD is protected (using ATA security).
While each is entitled to their own opinion of the horrors of proprietary licensing (the horror, the horror) you should be aware that (aiding in) circumvention of protection mechanisms, regardless of motives, may be a violation of the license agreement and of the LQ Rules.
Last edited by unSpawn; 01-09-2011 at 07:54 AM.
Reason: //typo
Yes, of course I have this in mind and I totally respect those rules but I don't see any legal issues in this case. I won't break any protection when I swap the hardware my (licensed) software runs on, will I?
Wind River Pristine Source Code
Wind River offers all source code in “pristine source” format,
cleanly separating the original open source code and any
additions or modifications that are delivered as patches. This
transparent source code foundation enables you to see which
patches and packages have been included as well as incorpo-
rate new packages or patches as required. Wind River Linux
also provides an open, intuitive build system that makes it
simple to install and modify the kernel and root file system.
First, I've crawled Windrivers website in order to find any sources. Then I've written a mail requesting the sources but they replied that my request is being forwarded to the sales dept.
This happened about two weeks ago ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.