The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Warner Losh <imp@bsdimp.com>
To: Grant Taylor <gtaylor@tnetconsulting.net>
Cc: TUHS <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] /bin vs /sbin
Date: Tue, 21 Jul 2020 12:15:26 -0600	[thread overview]
Message-ID: <CANCZdfovp1TveWcL-fXUqyYfWVvtS6EmMbnYC+Xug964R9Mxfg@mail.gmail.com> (raw)
In-Reply-To: <862d8a34-456d-33c1-7ef0-58c6e8089de9@tnetconsulting.net>

[-- Attachment #1: Type: text/plain, Size: 2351 bytes --]

On Tue, Jul 21, 2020 at 11:56 AM Grant Taylor via TUHS <tuhs@minnie.tuhs.org>
wrote:

> One of the things that I've noticed in my explorations into the H.J. Lu
> bootable root disks is that some of them predate the /sbin split in Linux.
>
> One of them has exactly one file in /sbin and other commands spread
> across /bin, /usr/bin, and /etc.  The single file in /sbin is sln.
>
> To me, this makes it fairly self evident that /sbin was originally for
> statically linked binaries.  At least in Linux.
>

The root disks date from a time before Linux had shared libraries, I
thought, though I've not looked at HJ Lu's disks in a very, very long time.
And I stopped looking very early on once I had my system bootstrapped... I
do recall going through some pain to bootstrap shared libraries on my
system...


> Does anyone have any history of /sbin from other traditional Unixes?
> I'd be quite interested in learning more.
>

/sbin has never been for static binaries in BSD land. It's always for
system admin binaries that used to live in /etc. They moved to /sbin or
/usr/sbin. This split is due to historically tiny / filesystems and the
need to have just enough binaries on them to check and mount /usr later in
boot. It dates from 4.3-RENO. There were no shared libraries in BSD at the
time (though I think contemporaneous Sun systems had them, which is where
Linux got its first a.out shared library scheme from (kinda, sorta, more
inspired by with some code snatched from gcc/binutils SunOS compat impl,
but with more limitations)).


> I also noticed that (at least) one of the early versions of the H.J. Lu
> disks had root's home directory in /usr/root.
>
> I seem to recall that one version used an atypical of /users vs /usr.
> Which as I understand it, goes back to the original / vs /usr split in
> Unix, before /home became a thing.
>

Early days this was actually quite common. You put your users under
/usr/foo because there weren't many of them, and you'd save a inode lookup
over /usr/users/foo and you didn't need a separate filesystem for your
users. I saw it more on 'small' systems with limited number of users rather
than big, university systems with student populations on them (which needed
a separate filesystem to hold all the user content, even with draconian
quota limits).

Warner


> --
> Grant. . . .
> unix || die
>
>

[-- Attachment #2: Type: text/html, Size: 3299 bytes --]

  reply	other threads:[~2020-07-21 18:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-21 17:55 Grant Taylor via TUHS
2020-07-21 18:15 ` Warner Losh [this message]
2020-07-21 22:42   ` David Arnold
2020-07-22  3:33     ` Warner Losh
2020-07-21 18:22 ` arnold
2020-07-21 18:33   ` Warner Losh
2020-07-21 18:43     ` Larry McVoy
2020-07-22  1:16     ` tytso
2020-07-22  3:27       ` Grant Taylor via TUHS
2020-07-22  3:35         ` Warner Losh
2021-01-27  5:56         ` Greg A. Woods
2021-01-27 19:06           ` Grant Taylor via TUHS
2021-01-27 22:22             ` Warner Losh
2021-01-27 22:35             ` Greg A. Woods
2021-01-28  5:24               ` Grant Taylor via TUHS
2020-07-22  1:44     ` Dan Cross
2020-07-22  2:17       ` Jon Forrest
2020-07-22  2:20         ` Adam Thornton
2020-07-22 13:30           ` Clem Cole
2020-07-22 13:43             ` Richard Salz
2020-07-22  2:27       ` Kurt H Maier
2020-07-21 19:24   ` Clem Cole
2020-07-22 13:39     ` Clem Cole
2021-01-29 23:50   ` Chris Hanson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANCZdfovp1TveWcL-fXUqyYfWVvtS6EmMbnYC+Xug964R9Mxfg@mail.gmail.com \
    --to=imp@bsdimp.com \
    --cc=gtaylor@tnetconsulting.net \
    --cc=tuhs@minnie.tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).