Linked by Thom Holwerda on Mon 30th Jan 2012 20:39 UTC
General Unix Finally something really interesting to talk about. If you've used UNIX or any of its derivatives, you've probably wondered why there's /bin, /sbin, /usr/bin, /usr/sbin in the file system. You may even have a rationalisation for the existence of each and every one of these directories. The thing is, though - all these rationalisations were thought up after these directories were created. As it turns out, the real reasoning is pretty damn straightforward.
Thread beginning with comment 505188
To view parent comment, click here.
To read all comments associated with this story, please click here.
Member since:

You're not understanding the problem domain here, this is more about maintaining a collection of machines that all share the same set of binaries at the same patch level, etc. Snapshotting and sharing / includes things such as /etc and potentially /var which would have to be excluded in a lot of cases since they're not generic enough to want to share across machines. There's plenty of situations where you will want to maintain the binaries separate from the configuration, such as hosting scenarios.

But hey, you know, no one working on Solaris or Fedora or anything has put any thought into this at all and they're just doing it for kicks really.

Edited 2012-01-30 21:41 UTC

Reply Parent Score: 1

phoenix Member since:

I understand the problem domain perfectly. I support over 3000 diskless Linux stations as my day job. And every day I fight with the asinine Linux directory structure (coming from a FreeBSD background where things make sense).

We share out / via NFS, including /etc. And /usr, /var, /home are also shared via NFS. And other filesystems.

If you're going to amalgamate directories, then leaving / with a bunch of empty directories and symlinks is not the way to do it.

I've read all the mailing list threads about this project, and all of the reasonings given boil down to "this is how we're doing it, deal with it". There's no actual, good, solid, evidence-based reasons given.

Yes, Linux filesystem hierarchy is a mess. But this doesn't do anything to help fix that.

Reply Parent Score: 1

Aristocracies Member since:

No, you really don't seem to understand this. You've yet to present a SINGLE compelling reason why this should not be done and how a merged /usr collection is somehow damaging. Instead, you present credentials similar to my own as if I'm supposed to bow to your authority and then counter with 'nuh uh'. Thankfully no one has to listen to you. ;)

Reply Parent Score: 2

leech Member since:

Which Linux distributions are you referring to when you say that the file system hierarchy is a mess? I use mostly Debian, and from what I understand, it sounds like it's just like FreeBSD's. I've been trying to get a BSD system installed lately, but for one reason or another, the install seems to fail (was trying PCBSD 9 recently under Linux KVM and it choked during the install process. But I have played a little bit with FreeBSD 8 and the only real difference I noticed was that the device names are totally illogical (coming from a Linux standpoint). ports is cool though.

Reply Parent Score: 3