Remounting a drive as read/write crashes the system and no
dmesg.boot
Tim Judd
tajudd at gmail.com
Tue Aug 18 20:11:11 UTC 2009
On 8/18/09, Scott Schappell <archon at 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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list