[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Replacing a new HD



On Wed, 2002-06-19 at 23:00, Erik Mathisen wrote:
> Hello,
> 
> I just bought a new hard drive for my system.  I pan on using it and
> taking the disk that currently in it and using it on another box.  I
> want to totally replicate what is happening on the disk.  Is there a
> pretty painless way of doing this?

tar or cpio are the standard tools.  I had great grief with soft
links across partitions, though.  I.e.
/dev/hda1   /boot
/dev/hda2   /
/dev/hda3   /home

If I copy /boot to /new/boot on /dev/hdc1, and / to /new/treeroot
on /dev/hdc2, then symlinks like /vmlinuz which are now 
/new/treeroot/vmlinuz still point back to /dev/hda1 instead of
automagically pointing to /dev/hdb1.

Absolute symlinks (like all the stuff in /etc/alternatives) really
fouled up the whole operation...

Maybe if tarring / to tape (excluding /var & /home) then restoring
to the new device would work.  The absolute symlinks might still
bollix things up, though.
 
-- 
+-------------------------------------------------------------+
| Ron Johnson, Jr.        Home: ron.l.johnson@cox.net         |
| Jefferson, LA  USA      http://ronandheather.dhs.org:81     |
|                                                             |
| "Object-oriented programming is an exceptionally bad idea   |
|  which could only have originated in California."           |
|  --Edsger Dijkstra                                          |
+-------------------------------------------------------------+


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: