[plug] Bad blocks in Swap

Garth Atkinson garth at cclinic.com.au
Fri Feb 23 12:36:26 WST 2001


Maybe create a new swap file using dd and mkswap of the same size as
your suspect one and compare bitmaps??? Good luck. The man page for
mkswap is very vague about bad blocks.

Brad Campbell wrote:
> 
> Garth Atkinson wrote:
> >
> > I didnt think that 'mkswap -c' did anything other that report the
> > bad blocks.
> >
> 
> I wonder then, what fills out the bad block bitmap at the start of each
> swap partition?
> I have not found any documentation that explicitly says the -c switch
> does anything but what you suggest, but investigating the swap process
> a little further reveals either a bitmap of bad blocks, for the v0 swap
> signature, or a list of bad blocks for the v1 swap signature.
> I see no other way of entering a bad block list into the swap signature.
> 
> --
> Brad....
>                    /"\
> Save the Forests   \ /     ASCII RIBBON CAMPAIGN
> Burn a Greenie.     X      AGAINST HTML MAIL
>                    / \



More information about the plug mailing list