[lug] Moving / partition to a new disk
Chris Brotherton
chris at protonlab.net
Fri Dec 10 07:40:51 MST 2004
On Thu, Dec 09, 2004 at 08:16:19PM -0800, Michael Kahn wrote:
> I did this wrong once and it cost me hours to untangle the mess.
> I am hoping that by posting first, I'll avoid a repeat.
>
> I wish to transfer an entire / directory structure from
> a partition on an old disk drive to a new partition on
> a new disk drive.
>
> The first time around, I did a cp -R * and then promptly
> erased the old partition. **BIG MISTAKE** as cp -R is
> not faithful about owners/groups/symbolic links and all
> the other "small stuff" that made the new root partition
> useless.
>
> So, what is the magical collection of command switches
> that would ensure that the copy into the new partition
> creates a faithful copy of the old partition's file
> structure? Since the new partition size will be larger than
> the old partition, I am not seeking a sector-by-sector image
> type of copy.
>
> Of course, this time around I won't be so quick to erase the
> old partition until I am sure that the copy does the right thing.
>
> Thanks in advance.
>
> Michael Kahn
> mkahn at fast-track.com
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us portf67 channel=#colug
This website might be of interest to you.
http://www.tldp.org/HOWTO/Hard-Disk-Upgrade/
Chris.
More information about the LUG
mailing list