Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2009 14:11:10 -0600
From:      Tim Judd <tajudd@gmail.com>
To:        Scott Schappell <archon@silvertree.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Remounting a drive as read/write crashes the system and no  dmesg.boot
Message-ID:  <ade45ae90908181311w1c34218as5a2e13bf6cba3634@mail.gmail.com>
In-Reply-To: <00B06063-9872-4ACE-8767-1221C22E33EE@silvertree.org>
References:  <00B06063-9872-4ACE-8767-1221C22E33EE@silvertree.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/18/09, Scott Schappell <archon@silvertree.org> wrote:
> I have a drive (/dev/ad2s1d) mounted to /backup that I want to be read
> only until the backup scripts run and then it will be read/write.  If
> I set /etc/fstab to:
>
> /dev/ad2s1d             /backup         ufs     ro
> 0       0

On my CF-based devices (firewalls.. nagios boxes, etc), I run:

mount -uw /
to update the mount (not mount again) the filesystem.  If you're
trying to mount again, I could understand why the box panics.


Try in your script:
  mount -u -w /backups
or shorter by a little:
  mount -uw /backups

do your stuff, then go back to read-only:
  mount -ur /backups


HTH

>
> to mount it read only most of the time then do:
>
> umount /backup
> mount -o rw /backup
>
> the system crashes, it just reboots about 10 seconds into writing
> data.  The system is perfectly stable with it mounted read/write.
>
> Also, dmesg.boot has completely disappeared from the system, and
> touch /var/log/dmesg.boot it does not get populated.
>
> # uname -a
> FreeBSD arthur.silvertree.org 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3
> #1: Fri Aug 14 13:27:47 PDT 2009     root@arthur.silvertree.org:/usr/
> obj/usr/src/sys/ARTHUR  i386
>
> Any suggestions on the remounting drive and dmesg.boot?
>
> Thanks!
>
> Scott
>
> P.S. It's good to be off of FreeBSD 4.11 :)
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



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