On Sun, 2005-02-06 at 16:51, Nils Vogels wrote:
> If your harddrives are exactly the same (same brand/model) you can
> actually use dd to copy it over. That way you will make a raw image of
> the original disk, including all the filesystem info and bootsector
> stuffs.
>
> dd if=/dev/hda of=/dev/hdb
>
> If your disks are not exactly the same, I would make me a new
> filesystem on the new disk, and use tar to copy over, since that takes
> permissions and all.
>
> cd / ; tar cf - * | ( cd /newdisk ; tar xvf - )
I suggest
cd / && tar cf - . | (cd /newdisk && tar xBfp -)
This maintains your permissions and leaves out the verbose messages
(-v, --verbose
verbosely list files processed).
>From man tar:
-x, --extract, --get
extract files from an archive
-B, --read-full-blocks
reblock as we read (for reading 4.2BSD pipes)
-f, --file [HOSTNAME:]F
use archive file or device F (default /dev/rmt0)
-p, --same-permissions, --preserve-permissions
extract all protection information
--
Phil
Our 2nd CD: http://www.cdbaby.com/naomisfancy
Naomi's Fancy performances: http://naomisfancy.virtualave.net/schedule.html
--
[email protected] mailing list