A faster way is:
truncate -s 1g filename
no, this will result in a fragmented image, which will hurt run-time
Not necessarily. If you install a variant of windoze, the installer will
format the disk first, writing zeros (and metadata) sequentially, and
thus the allocation will not be fragmented.
Not true. Last time I installed Windows, it did not
overwrite the whole disk. If it did that, it would
have taken _way_ too long (hours instead of minutes).
In the case of UFS newfs
only the metadata will be written for each cylinder group
No. Only the superblock copies and block bitmaps are
written during newfs, nothing else.
and thus the
logical blocks for all metadata will be contiguous.
Nope. As soon as you start writing to such a file system,
it will start allocating space for inodes, indirect block
lists, directories and file data, which will probably lead
to massive fragmentation.
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
With Perl you can manipulate text, interact with programs, talk over
networks, drive Web pages, perform arbitrary precision arithmetic,
and write programs that look like Snoopy swearing.