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
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C05BC8.5516AC70
Content-Type: text/plain;
	charset="iso-8859-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)


------_=_NextPart_001_01C05BC8.5516AC70
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

<P><FONT SIZE=3D2>Hi there,</FONT>
</P>

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

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

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

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

<P><FONT SIZE=3D2>---</FONT>
<BR><FONT SIZE=3D2>Samuel Chow</FONT>
</P>

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

</BODY>
</HTML>
------_=_NextPart_001_01C05BC8.5516AC70--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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