Re: Using dd to clone smaller drive to larger drive
On Wednesday 07 December 2005 13:01, Lubos Vrbka wrote:
> >> 1.) partition the new drive as you want it
> >> 2.) for each partition of the new drive, mount the partition in
> >> /mnt/tmp or something like that, then
> >> cd /old-partition-mount ; tar cf - . | (cd /mnt/tmp ; tar xf -)
> > What does the dot do?
> archive the local directory to the stdout
not exactly... in true, that copy everything in /old-partition-mount
part 1 (before the pipe) compress /old-partition-mount to the pipe/stdout
part 1 (after the pipe) decompress from the pipe/stdin to /mnt/tmp
> tar cf - . | ... tar xf -
> you can also do it as
> tar c . | ... tar x
> however this doesn't seem to work on, e.g., sgi and aix...
Merlin, the Mage