From owner-freebsd-questions Fri Aug 13 6: 0:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (Postfix) with ESMTP id 67E8314C85 for ; Fri, 13 Aug 1999 05:59:59 -0700 (PDT) (envelope-from proot@iaces.com) Received: (from proot@localhost) by iaces.com (8.9.3/8.9.3) id IAA04773 for questions@freebsd.org; Fri, 13 Aug 1999 08:00:12 -0500 (CDT) From: "Paul T. Root" Message-Id: <199908131300.IAA04773@iaces.com> Subject: mount -o ro,update question To: questions@freebsd.org (Questions FreeBSD) Date: Fri, 13 Aug 1999 08:00:11 -0500 (CDT) X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I've written a program to create a backup disk for our servers. At the end of the script, it remounts everything to ro status. Here's the segment: #!/bin/sh export PATH PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin" REMOUNT="aces usr/local usr/X11R6 usr" ROPT="-o ro,update" . . . echo "Remounting backup filesystems Read-Only" for i in `echo $REMOUNT` do echo "mount $ROPT $HFS/$i" mount $ROPT $HFS/$i done echo mount $ROPT $HFS exit 0 Somewhere around the remount of usr/X11R6 or usr it panics the box and reboots. However if I just do it on the command line, it works fine. Sounds like a timing issue. Would putting some wait states in between remounts avert this. Sorry I don't have the actual panic. Something about a lock. (We're not allowed to leave a pad of paper in the server room, and I like a fool follow the rules). The other thing, I ran into, was the if a FS is marked as ro in the fstab, you can't "mount -o rw,update /fs". I guess that's good when I think of it. Just inconvient for what I'm doing. Paul. -- "Always nice to see that technical accuracy doesn't stand in the way of good television." --Derek Hart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message