INCORRECT BLOCK COUNT and UNALLOCATED errors

Lou Hevly soc at visca.com
Thu Nov 2 09:05:17 PST 2006


Greetings:

I'm getting INCORRECT BLOCK COUNT and UNALLOCATED  errors when fscking 
two of my partitions (/var and /home; output and dmesg attached below).

Can I run fsck interactively by doing the following?

umount /var
fsck -p /dev/wd0e
(of perhaps fsck -p /dev/wd0e)
mount /dev/wd0e /var

This is a remote machine and I'd have to pay someone to boot it into 
single user mode.


$ fsck /dev/wd0e
** /dev/rwd0e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=186033 (8 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=412779 (8 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=412811 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=432954 (4 should be 0)
CORRECT? no

** Phase 2 - Check Pathnames
UNALLOCATED  I=1545839  OWNER=upperlef MODE=100640
SIZE=0 MTIME=Nov  2 15:43 2006
FILE=/www/htdocs/upperlef/lock/28659.lock

REMOVE? no

** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=412672  OWNER=gaiamoia MODE=100666
SIZE=14 MTIME=Nov  2 15:43 2006
RECONNECT? no


CLEAR? no

LINK COUNT FILE I=412779  OWNER=lighting MODE=100666
SIZE=14 MTIME=Nov  2 15:43 2006  COUNT 1 SHOULD BE 2
ADJUST? no

UNREF FILE I=412811  OWNER=qmails MODE=0
SIZE=0 MTIME=Nov  2 15:43 2006
CLEAR? no

UNREF FILE I=432954  OWNER=qmails MODE=100600
SIZE=0 MTIME=Nov  2 15:44 2006
CLEAR? no

** Phase 5 - Check Cyl groups
SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

185208 files, 6893126 used, 3426379 free (38923 frags, 423432 blocks, 
0.4% fragmentation)


$ dmesg
OpenBSD 3.9 (GENERIC) #0: Wed Nov  1 14:55:26 GMT 2006
     lou at server.visca.com:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.40GHz ("GenuineIntel" 686-class) 2.43 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE
,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 528003072 (515628K)
avail mem = 474337280 (463220K)
using 4278 buffers containing 26501120 bytes (25880K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(0e) BIOS, date 11/26/02, BIOS32 rev. 0 @ 
0xf9d50
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xc984
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc8f0/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 5 9 11 12
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371SB ISA" rev 
0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xae00!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845G/GL" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82845G/GL Video" rev 0x03: 
aperture at 0xe0000000, size 0x8000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x02: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x02: irq 12
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x02: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x02: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb0 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x82
pci1 at ppb0 bus 1
skc0 at pci1 dev 0 function 0 "D-Link Systems DGE-530T" rev 0x11, 
Marvell Yukon (0x1): irq 11
sk0 at skc0 port A, address 00:0d:88:6d:01:d6
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 3
rl0 at pci1 dev 5 function 0 "Realtek 8139" rev 0x10: irq 12, address 
00:0d:61:17:ed:72
rlphy0 at rl0 phy 0: RTL internal PHY
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DB LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801DB IDE" rev 0x02: DMA, 
channel 0 configured to compatibi
lity, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD400BB-00GFA0>
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide0 channel 1 drive 0: <WDC WD400BB-00DGA0>
wd1: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801DB SMBus" rev 0x02: irq 9
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x02: irq 9, 
ICH4 AC97
ac97: codec id 0x414c4720 (Avance Logic ALC650)
ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D
audio0 at auich0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
Kernelized RAIDframe activated
dkcsum: wd0 matches BIOS drive 0x80
wd1: no disk label
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302 



More information about the Openbsd-newbies mailing list