Making mirror copy of a partition with CP command?
I have Slackware 10.2, though I guess this question isn't distro-specific.
Currently, I have mounted:
/dev/hdb6 on /
/dev/hdb1 on /boot
/dev/hdb5 on /home
I've formatted a new ext3 partition as
/dev/hdb7
mounted on
/mnt/hd
Basically, I want to create a 'mirror' copy of my base install (hdb6) onto hdb7 so I can mess around with stuff in hdb7 w/o messing up my base working system on hdb6. If I'm in /dev/hdb6 and copy like so:
cp -r /* /mnt/hd
Am I looking at problems with those different partitions mounted as '/boot' and '/home'? Since hdb7 is mounted on the current root, but is also the one I'm copying to, is there going to be some looping issues to worry about?
Is there a better way to do this? Perhaps some special utility for copying entire partitions as opposed to a mounted filesystem? Maybe I'm not wording that right...
I guess I could just re-run the install CD on hdb7, but now I'm wondering if there's a quicker way.
|