From owner-freebsd-current Thu Oct 19 0:39:43 2000 Delivered-To: freebsd-current@freebsd.org Received: from sol.cc.u-szeged.hu (sol.cc.u-szeged.hu [160.114.8.24]) by hub.freebsd.org (Postfix) with ESMTP id D4D9D37B4C5; Thu, 19 Oct 2000 00:39:34 -0700 (PDT) Received: from petra.hos.u-szeged.hu by sol.cc.u-szeged.hu (8.9.3+Sun/SMI-SVR4) id JAA13612; Thu, 19 Oct 2000 09:40:03 +0200 (MEST) Received: from sziszi by petra.hos.u-szeged.hu with local (Exim 3.12 #1 (Debian)) id 13mAIR-0003Ci-00; Thu, 19 Oct 2000 09:39:27 +0200 Date: Thu, 19 Oct 2000 09:39:27 +0200 From: Szilveszter Adam To: "John W. De Boskey" Cc: freebsd-current@FreeBSD.org Subject: Re: Cleanout & rebuild of /dev on -current Message-ID: <20001019093927.A11070@petra.hos.u-szeged.hu> Mail-Followup-To: "John W. De Boskey" , freebsd-current@FreeBSD.org References: <20001018215052.A51062@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <20001018215052.A51062@FreeBSD.org>; from jwd@FreeBSD.org on Wed, Oct 18, 2000 at 09:50:52PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello On Wed, Oct 18, 2000 at 09:50:52PM -0700, John W. De Boskey wrote: > Hi, > > Interesting question was posed to me which I can't > locate a straight answer to. > > We've been following -current for a few years now. > Over time, the devices in /dev have moved around, new > added, and old deleted (ie: we've never had to restage > one of these machines and/or purge it and reinstall). > > So, what would the correct sequence be to wipeout > /dev and recreate it? (create /dev in an alternate > location and compare the two...??) I think that just running MAKEDEV with all options you might need (like snd0 or whatever) and then (after making sure you did not forget anything, eg disk slices:-) simply do a find(1) for anything that is older than the recreated devices and removing them should be fine. (I remember doing this once sometime between 3.x and 4.x with no ill effects.) But your solution is certainly also workable. > Given that the above can be automated on a live > system, is this something that can/should be added > to make installworld/world? (or atleast generate > a report of changed devices, or devices that can > nolonger be created..) It already is, if you do it the recommended way, also running mergemaster(8) during the process, that is. It also does a MAKEDEV in /var/tmp/root *and* automatically checks for differences. Hope this helps:-) -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message