DragonFly users List (threaded) for 2007-04
DragonFly BSD
DragonFly users List (threaded) for 2007-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: dd vs. truncate for creating vkernel root images


From: "Nuno Antunes" <nuno.antunes@xxxxxxxxx>
Date: Thu, 12 Apr 2007 00:38:27 +0100

On 4/12/07, Justin C. Sherrill <justin@shiningsilence.com> wrote:
On Wed, April 11, 2007 6:00 pm, Nuno Antunes wrote:
> Hi all,
>
> Is there any advantage in using
> 'dd if=/dev/zero of=/var/vkernel/rootimg.01 bs=1m count=2048'
> over the much quicker
> 'truncate -s 2G /var/vkernel/rootimg.01'
> other than getting a root image filled with zeros?

Have you tried it? What happened?



Yes I have, and it works. Vkernels can use a root image created this way. So does it mean that the file will grow on demand (up to the established size, of course)?

Thanks,
Nuno



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]