Subject: misc/14654: mount_mfs fails
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rquinn@sec.sprint.net>
List: netbsd-bugs
Date: 11/20/2001 04:56:32
>Number:         14654
>Category:       misc
>Synopsis:       mount_mfs fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 20 04:57:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Robert Quinn
>Release:        current, i386 and sparc
>Organization:
>Environment:
NetBSD strike 1.5Y NetBSD 1.5Y (STRIKE) #172: Mon Nov 19 07:12:04 EST 2001     rquinn@strike:/usr/obj/STRIKE i386

>Description:
This morning I noticed on my i386 and sparc consoles:
mount_mfs: /dev/wd0b: open for read: Operation not supported by device

This doesn't go to syslog, so I don't know how long it's been going on.
I rolled back to yesterday's kernel and it didn't help.

#grep wd0b /etc/fstab
/dev/wd0b       none    swap    sw              0 0
/dev/wd0b       /tmp    mfs     rw,-s=32m       0 0 
#swapctl -l
Device      1K-blocks     Used    Avail Capacity  Priority
/dev/wd0b      529200        0   529200     0%    0

>How-To-Repeat:
#mount /tmp
mount_mfs: /dev/wd0b: open for read: Operation not supported by device

>Fix:
Change the device name to "swap" in /etc/fstab:
#grep swap /etc/fstab
/dev/wd0b       none    swap    sw              0 0
swap            /tmp    mfs     rw,-s=32m       0 0 

 Or change the device name to "wd0":
wd0             /tmp    mfs     rw,-s=32m       0 0 

 Or change the device name to the raw device:
/dev/rwd0b      /tmp    mfs     rw,-s=32m       0 0 

>Release-Note:
>Audit-Trail:
>Unformatted: