Subject: fsck weirdness?
To: None <current-users@NetBSD.org>
From: Rhialto <rhialto@falu.nl>
List: current-users
Date: 08/26/2006 12:02:18
fsck seems to think my partition is msdos while it isn't??

$ disklabel sd0
# /dev/rsd0d:
...
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    410256        63     4.2BSD   1024  8192 41032  # (Cyl.      0*-    407*)
 b:   4153968    410319       swap                     # (Cyl.    407*-   4528*)
 c: 586072305        63     unused      0     0        # (Cyl.      0*- 581420)
 d: 490234752         0     unused      0     0        # (Cyl.      0 - 486343)
 e:    525168   4564287     4.2BSD   1024  8192 43768  # (Cyl.   4528*-   5049*)
 f:    525168   5089455     4.2BSD   1024  8192 43768  # (Cyl.   5049*-   5570*)
 g:  12583872   5614623     4.2BSD   1024  8192 46608  # (Cyl.   5570*-  18054*)
 h:  67109616  18198495     4.2BSD   1024  8192 46608  # (Cyl.  18054*-  84631*)
 i: 134218224  85308111     4.2BSD   1024  8192 46640  # (Cyl.  84631*- 217784*)
 j: 366546033 219526335     4.2BSD   1024  8192 46640  # (Cyl. 217784*- 581420)
$ fsck sd0e
** /dev/rsd0e (NO WRITE)
Invalid signature in boot block: 0000
$ fsck_ffs /dev/sd0e
** /dev/rsd0e (NO WRITE)
** File system is clean; not checking

The message is from fsck_msdos:

$ grep -r 'Invalid signature in boot block' /vol1/rhialto/cvs/src/sbin
/vol1/rhialto/cvs/src/sbin/fsck_msdos/boot.c:           pfatal("Invalid signature in boot block: %02x%02x", block[511], block[510]);

Huh?

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.