From owner-freebsd-bugs Sun Jan 12 22:34:19 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA22383 for bugs-outgoing; Sun, 12 Jan 1997 22:34:19 -0800 (PST) Received: from labs.usn.blaze.net.au (labs.usn.blaze.net.au [203.17.53.30]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id WAA22368 for ; Sun, 12 Jan 1997 22:34:04 -0800 (PST) Received: (from davidn@localhost) by labs.usn.blaze.net.au (8.8.4/8.8.4) id RAA00604; Mon, 13 Jan 1997 17:32:43 +1100 (EST) Message-ID: Date: Mon, 13 Jan 1997 17:32:43 +1100 From: davidn@unique.usn.blaze.net.au (David Nugent) To: bde@zeta.org.au (Bruce Evans) Cc: freebsd-bugs@freefall.freebsd.org, j@uriah.heep.sax.de Subject: Re: misc/2470: "sh ./MAKEDEV all" can't generate disk slice device. References: <199701130533.QAA06026@godzilla.zeta.org.au> X-Mailer: Mutt 0.56 Mime-Version: 1.0 In-Reply-To: <199701130533.QAA06026@godzilla.zeta.org.au>; from Bruce Evans on Jan 13, 1997 16:33:02 +1100 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Bruce Evans writes: > > > I get src only, "make world", copy $(SRC)/etc/etc.i386/MAKEDEV > > > to /dev/MAKEDEV and "sh ./MAKEDEV all". > > > it removes all disk device nodes and can't generate disk partition > > > such as sd0s1e. So I lost all disk partitions. > > > "sh ./MAKEDEV sd0" can't generate disk partition, I must do > > > "sh ./MAKEDEV sd0s1". > > > > That's intentional. It would be blatant to create device nodes > > for 30 slices per disk. > > But it shouldn't remove device nodes that it doesn't re-create. Cetainly true. I rememeber being hit by this once myself and it was unexpected. But (in theory) MAKEDEV should be able to check the device major minor numbers of existing device entries to ensure that they are correct. I can't see any other reason why MAKEDEV would want to delete them first unless this was the intention. Of course, doing that from a shell script would be a little difficult - possible, but slow. I only mention this since it has some relevence to other discussion. :-) Regards, David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/