From bhughes@tcac.net Sun Sep 12 13:03:37 1999
Return-Path: <bhughes@tcac.net>
Received: from tcac.net (s102-cdm55.amar.tcac.net [207.50.55.102])
	by hub.freebsd.org (Postfix) with SMTP id 4DA4914E2D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Sep 1999 13:03:33 -0700 (PDT)
	(envelope-from bhughes@tcac.net)
Received: (qmail 1295 invoked by uid 1000); 12 Sep 1999 20:03:31 -0000
Message-Id: <19990912200331.1294.qmail@taciturn.tcac.net>
Date: 12 Sep 1999 20:03:31 -0000
From: bhughes@tcac.net
Reply-To: bhughes@tcac.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: root fs not properly unmounted after shutdown -[rh], and not cl
X-Send-Pr-Version: 3.2

>Number:         13711
>Category:       bin
>Synopsis:       root fs not properly unmounted after shutdown -[rh], and not cl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 12 13:10:01 PDT 1999
>Closed-Date:    Wed Jun 6 17:46:07 PDT 2001
>Last-Modified:  Wed Jun 06 17:47:25 PDT 2001
>Originator:     Bradley T. Hughes
>Release:        FreeBSD 3.3-RC i386
>Organization:
>Environment:

FreeBSD taciturn.tcac.net 3.3-RC FreeBSD 3.3-RC #3: Tue Sep  7 23:33:17 CDT 1999
     root@taciturn.tcac.net:/usr/src/sys/compile/TACITURN  i386

>Description:

After upgrading to 3.3-RC, shutting down via shutdown(8), fasthalt(8),
and fastboot(8) will not properly unmount the root file system, while
my other fs' are umounted fine.  On next boot, the kernel reports that
/ was not unmounted properly, and fsck is run.  The problem is that fsck
run at boot doesn't fix the root file system, and I have to drop to
single user mode, run fsck / by hand (which marks the fs as clean) and
then the boot proceeds 


>How-To-Repeat:

For this machine, simply shutdown.

dmesg output:

opyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 3.3-RC #3: Tue Sep  7 23:33:17 CDT 1999
    root@taciturn.tcac.net:/usr/src/sys/compile/TACITURN
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 133222511 Hz
CPU: Pentium/P54C (133.22-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x52b  Stepping = 11
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 33554432 (32768K bytes)
avail memory = 30728192 (30008K bytes)
Probing for devices on PCI bus 0:
chip0: <Host to PCI bridge (vendor=10b9 device=1451)> rev 0xbd on pci0.0.0
wdc0: <CMD 640B IDE> rev 0x02 int a irq 255 on pci0.3.0
pn0: <82c169 PNIC 10/100BaseTX> rev 0x20 int a irq 10 on pci0.13.0
pn0: Ethernet address: 00:a0:cc:23:93:87
pn0: autoneg complete, link status good (half-duplex, 10Mbps)
pn1: <82c169 PNIC 10/100BaseTX> rev 0x20 int a irq 9 on pci0.14.0
pn1: Ethernet address: 00:a0:cc:28:3c:ca
pn1: autoneg complete, link status good (half-duplex, 10Mbps)
vga0: <S3 ViRGE graphics accelerator> rev 0x06 int a irq 255 on pci0.15.0
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa  
psm0 irq 12 on isa 
psm0: model Generic PS/2 mouse, device ID 0 
pcm0 at 0x220 irq 5 drq 1 flags 0x15 on isa
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold 
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: CMD640B workaround enabled
wdc0: unit 0 (wd0): <WDC AC22100H>
wd0: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 at 0x170-0x177 irq 15 on isa
wdc1: unit 0 (wd2): <Maxtor 71626 AP>
wd2: 1554MB (3183264 sectors), 3158 cyls, 16 heads, 63 S/T, 512 B/S
wdc1: unit 1 (wd3): <Maxtor 90845D4>
wd3: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard 
npx0: INT 16 interface
Intel Pentium detected, installing workaround for F00F bug
IP packet filtering initialized, divert enabled, rule-based forwarding disabled,
 logging disabled    
changing root device to wd2s1a
WARNING: / was not properly dismounted 
WARNING: R/W mount of / denied.  Filesystem is not clean - run fsck
stray irq 7
stray irq 7


kernel config file:

machine "i386"
cpu "I586_CPU"
ident TACITURN
maxusers 32 

options INET
options FFS
options FFS_ROOT
options PROCFS
options "COMPAT_43"
options UCONSOLE
options FAILSAFE     
options SYSVSHM
options SYSVMSG
options SYSVSEM
options "CMD640"
options IPFIREWALL
options IPDIVERT

config kernel root on wd2

controller isa0
controller pci0

controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2
disk fd0 at fdc0 drive 0

controller wdc0 at isa? port "IO_WD1" bio irq14
disk wd0 at wdc0 drive 0

controller wdc1 at isa? port "IO_WD2" bio irq 15
disk wd2 at wdc1 drive 0
disk wd3 at wdc1 drive 1

controller atkbdc0 at isa? port IO_KBD tty
device atkbd0 at isa? tty irq 1
device psm0 at isa? tty irq 12

device vga0 at isa? port ? conflicts

device sc0 at isa? tty

device npx0 at isa? port IO_NPX irq 13

device pn0

device pcm0 at isa? port 0x220 tty irq 5 drq 1 flags 0x15

pseudo-device pty 16
pseudo-device ether
pseudo-device loop
pseudo-device bpfilter 4



>Fix:




>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Sep 12 14:09:05 PDT 1999 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Wed Jun 6 17:46:07 PDT 2001 
State-Changed-Why:  

I assume this has been fixed; please submit further details if 
you can reproduce this on a recent release. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13711 
>Unformatted:
