dd vs. truncate for creating vkernel root images
Nuno Antunes
nuno.antunes at gmail.com
Wed Apr 11 16:41:32 PDT 2007
On 4/12/07, Justin C. Sherrill <justin at 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
More information about the Users
mailing list