Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Dec 2006 10:25:21 -0600
From:      Eric <heli@mikestammer.com>
To:        Ronald Paul <ronald@rcpaul.nl>
Cc:        "B. Cook" <bcook@poklib.org>, freebsd-questions@freebsd.org
Subject:   Re: Moving to a new disk..
Message-ID:  <45759D71.1000901@mikestammer.com>
In-Reply-To: <457599D5.5000904@rcpaul.nl>
References:  <457594C2.90803@poklib.org> <457599D5.5000904@rcpaul.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Ronald Paul wrote:
> B. Cook wrote:
>
>> I've got a dying drive on my hands.. and I know I found a doc/guide 
>> on the handbook before regarding this..
>>
>> something like..
>>
>> # tar cf - --one-file-system -C /var . | tar xpvf - -C /mnt/var
>
> [..]
>
>> what would be the best way?
>
> I do it this way:
>
>     dd if=/dev/ad0 of=/dev/ad2 bs=8m
>
> Where /dev/ad0 is the source disk and /dev/ad2 is the destination 
> disk. Make sure nothing is mounted. This process takes place at sector 
> level, so the boot sector, the partition table and even empty sectors 
> are copied. That someone might want to resize some partitions 
> afterwards to be able to use that extra 10 GB.
>
this is one reason why dump is better. it only dumps what there is to 
dump. no need to worry about the extra space, etc after the fact





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45759D71.1000901>