Subject: port-i386/10790: ro mounted msdos partition is writeable
To: None <gnats-bugs@gnats.netbsd.org>
From: None <al.fred@gmx.de>
List: netbsd-bugs
Date: 08/08/2000 19:31:11
>Number:         10790
>Category:       port-i386
>Synopsis:       ro mounted msdos partition is writeable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 08 19:32:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Alfred Zimmel
>Release:        1.4.1
>Organization:
>Environment:
NetBSD mickey 1.4.1 NetBSD 1.4.1 (MP3PLAYER) #14: Sat Jul 22 12:56:13 CEST 2000
    root@player:/usr/src/sys/arch/i386/compile/MP3PLAYER i386

>Description:
My hard disk has two partitions, one with ffs for NetBSD's / and /usr,
and one for msdos/vfat32. The msdos partition is mounted ro on
startup of the system, but it can be written to with cp and mv commands,
although trying to rm something states that it is mounted ro.

>How-To-Repeat:
create two partitions on hard disk
install NetBSD on one of them using ffs
install msdos filesystem on other one using win98-bootdisk (fdisk and format)
create disklabel for mounting msdos with NetBSD
then type the following:
mickey# cd /
mickey# mkdir bla
mickey# mount -t msdos -r /dev/wd0f /bla
mickey# cp /boot /bla/boot
mickey# cd /bla
mickey# ls
boot
mickey# rm boot
rm: boot: Read-only file system

>Fix:

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