Date: Wed, 7 Jun 1995 15:31:26 -0700 (PDT) From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu> To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Cc: freebsd-hackers@freefall.cdrom.com Subject: Re: chgrp in /sbin? Message-ID: <199506072231.PAA08455@troutmask.apl.washington.edu> In-Reply-To: <199506072029.NAA03212@gndrsh.aac.dev.com> from "Rodney W. Grimes" at Jun 7, 95 01:29:52 pm
next in thread | previous in thread | raw e-mail | index | archive | help
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 |---------------------|
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506072231.PAA08455>