From owner-freebsd-hackers Wed Jun 7 15:32:38 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA20749 for hackers-outgoing; Wed, 7 Jun 1995 15:32:38 -0700 Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.97.216]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA20743 for ; Wed, 7 Jun 1995 15:32:37 -0700 Received: (from kargl@localhost) by troutmask.apl.washington.edu (8.6.11/8.6.9) id PAA08455; Wed, 7 Jun 1995 15:31:27 -0700 From: "Steven G. Kargl" Message-Id: <199506072231.PAA08455@troutmask.apl.washington.edu> Subject: Re: chgrp in /sbin? To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Wed, 7 Jun 1995 15:31:26 -0700 (PDT) Cc: freebsd-hackers@freefall.cdrom.com In-Reply-To: <199506072029.NAA03212@gndrsh.aac.dev.com> from "Rodney W. Grimes" at Jun 7, 95 01:29:52 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 3850 Sender: hackers-owner@FreeBSD.org Precedence: bulk According to Rodney W. Grimes: > > > > > Guys, > > > > I just had a nice surprise. I built a custom kernel and rebooted > > to find that /dev/sd0s2[a-h] and /dev/sd1s1[a-h] were missing. (How > > these got deleted is a short story for another post maybe.) This > > drops you into single-user mode when the mount of the various > > partitions fail. No problem. > > > > #cd /dev > > #PATH=/bin:/sbin:/stand > > #EXPORT PATH > > #sh MAKEDEV sd0s2a > > chgrp not found > > > > Question: shouldn't chgrp reside with chown and chmod in /stand or /sbin > > or /bin? > > > > Yes, chgrp is in /usr/bin, but if you can't mount /usr then it is obviously > > useless. > > This is part of a long standing evaluation of what belongs in the root > partition and what belongs in usr. You could always mknod the thing > by hand, fix up your stuff, mount /usr and then run MAKEDEV to fix this, > so IMHO, chgrp/chown does not belong in /. > Two observations: (1) This assumes one knows the proper major and minor numbers of the various /dev/sd0s1 devices. Reading MAKEDEV does not provide much (immediate) insight (particularly for the minor number). The major number can be found in /usr/src/sys/i386/conf/devices.i386. Unfortunately, this is an umountable partition. So, #cd /dev #mknod sd0s1 b major? minor? [Does one guess major and minor here?] (2) After getting things mounted. I ran MAKEDEV to correct the chgrp problem noted above. %cd /dev %sh MAKEDEV all %ls -l sd0* brw-r----- 1 root operator 4, 65538 Jun 7 14:52 sd0 brw-r----- 1 root operator 4, 0 Jun 7 14:52 sd0a brw-r----- 1 root operator 4, 1 Jun 7 14:52 sd0b brw-r----- 1 root operator 4, 2 Jun 7 14:52 sd0c brw-r----- 1 root operator 4, 3 Jun 7 14:52 sd0d brw-r----- 1 root operator 4, 4 Jun 7 14:52 sd0e brw-r----- 1 root operator 4, 5 Jun 7 14:52 sd0f brw-r----- 1 root operator 4, 6 Jun 7 14:52 sd0g brw-r----- 1 root operator 4, 7 Jun 7 14:52 sd0h brw-r----- 1 root operator 4, 131074 Jun 7 14:52 sd0s1 brw-r----- 1 root operator 4, 196610 Jun 7 14:52 sd0s2 brw-r----- 1 root operator 4, 262146 Jun 7 14:52 sd0s3 brw-r----- 1 root operator 4, 327682 Jun 7 14:52 sd0s4 Where are the (sub)partitions for individual slices; i.e., sd0s#[a-h]? %sh MAKEDEV sd0s2a %ls -l sd0* brw-r----- 1 root operator 4, 65538 Jun 7 14:52 sd0 brw-r----- 1 root operator 4, 0 Jun 7 14:52 sd0a brw-r----- 1 root operator 4, 1 Jun 7 14:52 sd0b brw-r----- 1 root operator 4, 2 Jun 7 14:52 sd0c brw-r----- 1 root operator 4, 3 Jun 7 14:52 sd0d brw-r----- 1 root operator 4, 4 Jun 7 14:52 sd0e brw-r----- 1 root operator 4, 5 Jun 7 14:52 sd0f brw-r----- 1 root operator 4, 6 Jun 7 14:52 sd0g brw-r----- 1 root operator 4, 7 Jun 7 14:52 sd0h brw-r----- 1 root operator 4, 131074 Jun 7 14:52 sd0s1 brw-r----- 1 root operator 4, 196610 Jun 7 15:10 sd0s2 brw-r----- 1 root operator 4, 196608 Jun 7 15:10 sd0s2a brw-r----- 1 root operator 4, 196609 Jun 7 15:10 sd0s2b brw-r----- 1 root operator 4, 196610 Jun 7 15:10 sd0s2c brw-r----- 1 root operator 4, 196611 Jun 7 15:10 sd0s2d brw-r----- 1 root operator 4, 196612 Jun 7 15:10 sd0s2e brw-r----- 1 root operator 4, 196613 Jun 7 15:10 sd0s2f brw-r----- 1 root operator 4, 196614 Jun 7 15:10 sd0s2g brw-r----- 1 root operator 4, 196615 Jun 7 15:10 sd0s2h brw-r----- 1 root operator 4, 262146 Jun 7 14:52 sd0s3 brw-r----- 1 root operator 4, 327682 Jun 7 14:52 sd0s4 -- Steven G. Kargl | Phone: 206-685-4677 | Applied Physics Lab | Fax: 206-543-6785 | Univ. of Washington |---------------------| 1013 NE 40th St | FreeBSD 2.x-current | Seattle, WA 98105 |---------------------|