Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2012 16:01:41 -0500 (CDT)
From:      Robert Bonomi <bonomi@mail.r-bonomi.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: fsck on FAT32 filesystem?
Message-ID:  <201207222101.q6ML1fqO026079@mail.r-bonomi.com>
In-Reply-To: <op.whuxsezgg7njmm@michael-think>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

> From: "Michael Ross" <gmx@ross.cx>
> Date: Sun, 22 Jul 2012 19:06:04 +0200
>
> On Sun, 22 Jul 2012 17:08:56 +0200, Bruce Cran <bruce@cran.org.uk> wrote:
>
> Microsoft's format.exe can zero a volume, at least in the newer (>2008)  
> versions:
>
> /p:<passes> : Zeros every sector on the volume for the number of passes  
> specified.

Early versions of format (until the addition of the '/Q' switch) always over-
wrote the entire disk.  this was how it found the initial 'bad sectors' to
be so marked in the FAT.  As disk capacities increased, the bad block check
took increasingly longer amounts of time.  Hence, along with bad-block
handling (mapping and substitution) moving into the drive electronics,
the introduction of the '/Q' option -- whereby format just overwrote the
fat and root diretory, putting all the data blocks on the free list.

I haven't had occasion to dissect a copy of format in years, I don't know
if it still defaults to one write attemptto every sector on the disk.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201207222101.q6ML1fqO026079>