Hi all,

this is what happens on my Dell Latitude LS / 4.1 (GENERIC).

# uname -a
OpenBSD dell.stare.cz 4.1 GENERIC#1 i386
# fdisk wd0
Disk: wd0       geometry: 41344/15/63 [39070080 Sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: A5    0   1  1 - 22191  14 63 [          63:    20971377 ] FreeBSD     
*1: A6 22192   0  1 - 39095  14 63 [    20971440:    15974280 ] OpenBSD     
 2: A0 39096   0  1 - 40206  14 63 [    36945720:     1049895 ] NotebookSave
 3: A0 40207   0  1 - 41343  14 63 [    37995615:     1074465 ] NotebookSave
# disklabel wd0
# Inside MBR partition 1: type A6 start 20971440 size 15974280
# /dev/rwd0c:
type: ESDI
disk: ad0s2
label: LATITUDE
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 41344
total sectors: 39070080
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:      15974280      20971440  4.2BSD   2048 16384  320 # Cyl 22192 - 39095 
  b:       1049895      36945720    swap                   # Cyl 39096 - 40206 
  c:      39070080             0  unused      0     0      # Cyl     0 - 41343 
  d:       1074465      37995615  4.2BSD   2048 16384  320 # Cyl 40207 - 41343 
# cat /etc/fstab
/dev/wd0a          /          ffs   rw,softdep                          1 1
/dev/wd0d          /mnt/fat   msdos rw,noauto,noatime,-l,-m=644,-x      0 0

# newfs_msdos wd0d
/dev/rwd0d: 1072336 sectors in 134042 FAT32 clusters (4096 bytes/cluster)
bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=63 hds=15 hid=37995615 bsec=1074465 
bspf=1048 rdcl=2 infs=1 bkbs=2

# fsck_msdos /dev/rwd0d 
** /dev/rwd0d
** Phase 1 - Read and Compare FATs
** Phase 2 - Check Cluster Chains
** Phase 3 - Check Directories
** Phase 4 - Check for Lost Files
Free space in FSInfo block (-1) not correct (134041)
fix? [Fyn] y
Next free cluster in FSInfo block (2) not free
fix? [Fyn] y
1 files, 536164 free (134041 clusters)

# fsck_msdos /dev/rwd0d 
** /dev/rwd0d
** Phase 1 - Read and Compare FATs
** Phase 2 - Check Cluster Chains
** Phase 3 - Check Directories
** Phase 4 - Check for Lost Files
1 files, 536164 free (134041 clusters)

# mount /mnt/fat/
# mount -v
/dev/wd0a on / type ffs (rw, local, softdep, ctime=Fri Oct 26 12:18:15 2007)
/dev/wd0d on /mnt/fat type msdos (rw, local, noatime, ctime=Fri Oct 26 14:44:11 
2007, uid=0, gid=0, mask=0644, long, direxec)
# echo foo > /mnt/fat/verylongname.txt.long
# cat /mnt/fat/verylongname.txt.long
foo
# umount /mnt/fat

# fsck_msdos /dev/rwd0d 
** /dev/rwd0d
** Phase 1 - Read and Compare FATs
** Phase 2 - Check Cluster Chains
** Phase 3 - Check Directories
** Phase 4 - Check for Lost Files
1 files, 536164 free (134041 clusters)


The msdos filesystem as created by newfs_msdos is found to be incorrect
by fsck_msdos; this does not happen with 'newfs_msdos -F 16' and '-F 12'.

If I do _not_ run the (fixing) fsck_msdos after creating the fs with
newfs_msdos, it can _still_ be mounted and worked with.

Does this mean that the two (incorrect) fields

        Free space in FSInfo block (-1) not correct (134041)
        Next free cluster in FSInfo block (2) not free

of a newly created 'msdos -F 32' are nothing to worry about?

        Thanks

                Jan

Reply via email to