Date: Wed, 05 Aug 1998 23:15:28 -0700 From: Mike Smith <mike@smith.net.au> To: randal@comtest.com Cc: Mike Smith <mike@smith.net.au>, Andrzej Bialecki <abial@nask.pl>, dinesh@alphaque.com, freebsd-small@FreeBSD.ORG Subject: Re: PicoBSD now runs in 4MB! Message-ID: <199808060615.XAA00673@antipodes.cdrom.com> In-Reply-To: Your message of "Wed, 05 Aug 1998 13:53:14 -1000." <199808052348.NAA04396@oldyeller.comtest.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808060615.XAA00673>