Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2000 13:55:54 -0500
From:      "Samuel Chow" <samchow@nortelnetworks.com>
To:        "'questions@freebsd.org'" <questions@freebsd.org>
Subject:   Bug found when mounting MFS overlaying Readonly partition
Message-ID:  <EB3F8E62A1E7D21180E80000F80836F6014040E2@zwnwb060.ca.nortel.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi there,

	I am running 3-STABLE on a 8 MB 486 acting
	as a firewall.  I think I found a bug, but
	I just want to run thru' you guys first.  And, 
	unless 4-STABLE runs in 8 MB, I can't really 
	upgrade.

	I have the following in /etc/fstab:
	# Device     Mountpoint  FStype  Options ...
	/dev/wd0s2a  /           ufs     ro      ...
	/dev/wd0s2f  /usr        ufs     ro      ...
	Please note the readonly options.  Partition 
	/var is created on the fly during initialization.
		
	Then I execuate the following as part of
	the initialization.  Basically, I am trying
	to get a read-write /etc on top of the 
	readonly / partitition.
	 tar cf /var/tmp/etcfile /etc 2>/dev/null
	 mount_mfs -s 1536 -T minimum dummy /etc
	 (cd /; tar xf /var/tmp/etcfile)

	This works most of the time.  However, once
	in a while, tar will come back and complain
	about trying to write a few (around 5) files 
	to a read-only file system.

	It seems under certain conditions, the system
	cannot see the MFS and write directly on
	the readonly / partition.  Any ideas?

---
Samuel Chow

This message is displayed using recycled electrons.
Segmentation Fault (core dumped)


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>Bug found when mounting MFS overlaying Readonly partition</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi there,</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>I am running 3-STABLE on a 8 MB 486 acting</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>as a firewall.&nbsp; I think I found a bug, but</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>I just want to run thru' you guys first.&nbsp; And, </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>unless 4-STABLE runs in 8 MB, I can't really </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>upgrade.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>I have the following in /etc/fstab:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2># Device&nbsp;&nbsp;&nbsp;&nbsp; Mountpoint&nbsp; FStype&nbsp; Options ...</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>/dev/wd0s2a&nbsp; /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ufs&nbsp;&nbsp;&nbsp;&nbsp; ro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>/dev/wd0s2f&nbsp; /usr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ufs&nbsp;&nbsp;&nbsp;&nbsp; ro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Please note the readonly options.&nbsp; Partition </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>/var is created on the fly during initialization.</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>Then I execuate the following as part of</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>the initialization.&nbsp; Basically, I am trying</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>to get a read-write /etc on top of the </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>readonly / partitition.</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=2> tar cf /var/tmp/etcfile /etc 2&gt;/dev/null</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=2> mount_mfs -s 1536 -T minimum dummy /etc</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=2> (cd /; tar xf /var/tmp/etcfile)</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>This works most of the time.&nbsp; However, once</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>in a while, tar will come back and complain</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>about trying to write a few (around 5) files </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>to a read-only file system.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>It seems under certain conditions, the system</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>cannot see the MFS and write directly on</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>the readonly / partition.&nbsp; Any ideas?</FONT>
</P>

<P><FONT SIZE=2>---</FONT>
<BR><FONT SIZE=2>Samuel Chow</FONT>
</P>

<P><FONT SIZE=2>This message is displayed using recycled electrons.</FONT>
<BR><FONT SIZE=2>Segmentation Fault (core dumped)</FONT>
</P>

</BODY>
</HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EB3F8E62A1E7D21180E80000F80836F6014040E2>