[Cialug] Moving Linux from one disk to another
Daniel A. Ramaley
daniel.ramaley at drake.edu
Thu Sep 4 16:06:38 CDT 2008
In the past when i've migrated an installation from one disk to another
i've just used tar. It is easy if you boot from a live CD. If you are
copying the system that is running, it can be a pain because you have
to be careful with the special filesystems such as /dev and /proc.
Assuming you boot from a live CD, get the old drive mounted as /old
(with all other partitions also mounted), the new one as /new (again,
with any partitions also mounted) you can do the copy with:
# (cd /old ; tar -cf -) | (cd /new ; tar -xvpf -)
Then you just need to fix up the boot manager. How to do that varies
depending on which one you are running (lilo and grub probably being
the most common).
On Thursday September 4 2008 15:57, Jeff Chapin wrote:
>Additionally, you might bust be able to cp over the data with the
>preserve ownership and permissions arguments and swap the disks.
>
>Nathan C. Smith wrote:
>> What are some good ways to move linux from one disk to another?
------------------------------------------------------------------------
Dan Ramaley Dial Center 118, Drake University
Network Programmer/Analyst 2407 Carpenter Ave
+1 515 271-4540 Des Moines IA 50311 USA
More information about the Cialug
mailing list