*BSD News Article 12815


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: Disklabel/newfs -
Message-ID: <1993Mar10.210635.1879@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <1993Mar4.181535.4302@coe.montana.edu> <1993Mar5.061516.17253@oz.plymouth.edu> <CGD.93Mar4224626@eden.CS.Berkeley.EDU>
Date: Wed, 10 Mar 93 21:06:35 GMT
Lines: 41

In article <CGD.93Mar4224626@eden.CS.Berkeley.EDU> cgd@eden.CS.Berkeley.EDU (Chris G. Demetriou) writes:
>In article <1993Mar5.061516.17253@oz.plymouth.edu> ted@oz.plymouth.edu (The Wizard of Oz) writes:
>=>that I was in "multi-user mode" so when I did "shutdown -h now" it did
>=>not update the disks, thus not saving my partition information. Duh.
>
>umm, as long as you wait for the > prompt telling you to press any key,
>the disks *will* get updated...

I've seen that blocks don't necessarily get synced out on unmount; you either
have to sync them out manually, then unmount.  If the shutdown didn't sync
before the unmount (and wait sufficient time between the two), then you
could get the data-not-written problem.

I saw this on a boot.fs floppy I had mounted to put a new kernel on for one
of the dist.fs uploads I did; this resulted in a puked-out image on the
disk and many problems (I was ftp'ing images of the disk from a Sun rather
than doing it from a 386BSD machine -- this was back before I did the first
patchkit -- dark ages 8-).

If I sync'ed first, the floppy was written; if I unmounted first, it blew
up the data on the disk.

The label problem on the hd is a different animal, but the problem might
be the same:  The buffer cache code in ufs where the device node lives,
or fbwrite.

Since I normally type "sync" 3-5 times between each command (I do a lot of
kernel work 8-), I haven't sen the problem in quite some time.


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------