From owner-freebsd-small Wed Aug 5 23:17:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA07970 for freebsd-small-outgoing; Wed, 5 Aug 1998 23:17:28 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles231.castles.com [208.214.165.231]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA07958 for ; Wed, 5 Aug 1998 23:17:21 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id XAA00673; Wed, 5 Aug 1998 23:15:28 -0700 (PDT) Message-Id: <199808060615.XAA00673@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: randal@comtest.com cc: Mike Smith , Andrzej Bialecki , dinesh@alphaque.com, freebsd-small@FreeBSD.ORG Subject: Re: PicoBSD now runs in 4MB! In-reply-to: Your message of "Wed, 05 Aug 1998 13:53:14 -1000." <199808052348.NAA04396@oldyeller.comtest.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 05 Aug 1998 23:15:28 -0700 From: Mike Smith Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On 5 Aug 98, at 16:24, Mike Smith wrote: > > > > BTW, I also have noticed something odd. When booting from floppy with a > > > write protected disk, two write protect error messages comes up when just > > > mounting the floppy. Why is that? Does mounting the floppy cause a > > > write to it? This is not good if every time it boots it writes to disk. > > > This can reduce the life on a IDE Flash drive. > > > > Mount the filesystem readonly (-o ro). > > I guess I could try this. Is this the same as the -r option? Yes. Or '-o rdonly', as the manpage says. > > > I do not notice any write protect errors when mounting from a standard > > > FreeBSD system only from PicoBSD. > > > > If you're mounting as the root filesystem, it's likely that stuff in > > /dev/ is having its atime/mtime updated. > > AFAIK, it is just mounting the floppy /etc and copying the files over to > the mfs /etc. This is part of the rc script that is on the PicoBSD mfs > kernel. > > echo "Reading /etc from startup floppy..." > mount /dev/fd0c /start_floppy This mounts the floppy read/write, and updates the atime for the root directory on the floppy. > echo "debug - copying files over" > cd /start_floppy/etc > cp -r . /etc/ ... and then this will attept to update the atime records for all the files in the directory, as well as the directory itself. > The error occurs right after the mount command. Does anything look > suspicious? > > I will try changing the line to: > > mount -r /dev/fd0c /start_floppy That should do it. I would normally recommend the use of '-o rdonly' though, just for clarity's sake. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message