Talk:Steve/Jail Images

From FBSD_tips

Jump to: navigation, search

truncate is faster than dd for creating images

ufscopy (from ports) can be quite useful copying ufs filesystems, expecially WRT sparse files.


not sure who wrote that (use ~~~~ to sign comments on talk pages), but...

truncate is perhaps easier to use, but doesn't seem to be faster:

 % time dd if=/dev/zero of=jail0.img bs=1 count=1 seek=4294967296
 1+0 records in
 1+0 records out
 1 bytes transferred in 0.000040 secs (24966 bytes/sec)
 dd if=/dev/zero of=jail0.img bs=1 count=1 seek=4294967296
 0.00s user 0.00s system 70% cpu 0.002 total
 % time truncate -s +4G jail1.img                              
 truncate -s +4G jail1.img
 0.00s user 0.00s system 71% cpu 0.002 total

ufscopy looks nice. It seems like it would be useful for converting a normal system to a jail image, and for shrinking jail images. I would fsck after using it though, just to be sure.

Steve 00:48, 2 September 2008 (UTC)

Personal tools