[svlug] svlug] Detecting 'virgin' disks ?
R P Herrold
herrold at owlriver.com
Tue Jul 26 13:43:10 PDT 2005
On Tue, 26 Jul 2005, Steve wrote:
> Anyone know a 'safe' method for detecting 'virgin' disks (disks that
> have never been formatted...)
> With a brand new disk, is the entire disk zeroed out ? (ie can I just dd
> the MBR and compare it to all zero's or all ones ?
Rather than a hard to satisfy and potentially irrelavant
condition (all zeros), checking for the _absence_ of the
'magic number' placed by fdisk and friends, [this varies,
depending on the target OS and arch], seems a better idea.
-- Russ Herrold
More information about the svlug