[Leaplist] copy a hard drive to another different sized
partition.
Richard F. Ostrow Jr.
kshots at warfaresdl.com
Thu Aug 30 15:05:50 EDT 2007
Be careful there, looks like you're also going to copy /mnt/destination
into /mnt/destination into /mnt/destination/mnt/destination into... you
get the point :)
Make sure to exclude /mnt/destination from the find operation:
find / -x -d -not -name /mnt/destination/* | cpio -pdm /mnt/destination
Note that -xdev and -depth are deprecated parameters (-x and -d are the
new equivalents)
--
Life without passion is death in disguise
On Thu, August 30, 2007 11:57 am, Phil Barnett wrote:
>
> Create and format the partitions on the target drive, then:
> (assumed here to be /dev/hdb1)
>
> mkdir /mnt/destination
> mount -t ext3 /dev/hdb1 /mnt/destination
> cd /
> find . -xdev -depth | cpio -pdm /mnt/destination
>
> --
> Phil Barnett
> AI4OF
> SKCC #600
> _______________________________________________
> Leaplist mailing list
> Leaplist at leap-cf.org
> http://lists.leap-cf.org/mailman/listinfo/leaplist
>
More information about the Leaplist
mailing list