zlacker

[parent] [thread] 7 comments
1. heinri+(OP)[view] [source] 2022-05-11 07:36:21
Now that we understand this can we please put all system tools into /bin?

Disk space for binaries has not been a problem for decades now.

replies(4): >>pilif+01 >>hulitu+r6 >>captai+78 >>mrspur+i8
2. pilif+01[view] [source] 2022-05-11 07:45:59
>>heinri+(OP)
having the system mounted in its own sub directory rather than be spread over multiple directories (there's /usr/bin, /usr/share, /usr/lib, etc) has the advantage that a single read-only mount can mount the whole OS.

Having the OS mounted read-only provides some security benefits.

The other option would of course be to have / mounted ro and then have rw mounts in /home, /etc, /var and /tmp, but this is more complicated than a a rw / and a ro /usr

replies(1): >>andrew+Y5
◧◩
3. andrew+Y5[view] [source] [discussion] 2022-05-11 08:27:49
>>pilif+01
While that's true, these days initramfs is what performs this job.
4. hulitu+r6[view] [source] 2022-05-11 08:34:50
>>heinri+(OP)
It depends. Fsck is slow on big hard drives. Also separating data from programs is a good idea.
5. captai+78[view] [source] 2022-05-11 08:51:43
>>heinri+(OP)
Disk space was not really the issue. Back in the day extra partitions would actually mean you waste space. It's more efficient to put them on one partition.

The issue is organisation. There is already so much junk in the bin folders. I think it would be much neater to further split the bins into various categories: "shell tools" like ls, [, echo; "applications" like firefox, inkscape, "helpers" like gnome-settings-daemon, ... There is no need to show weird daemons when pressing TAB in bash, and there is no need to show `ls` when picking an application via a GUI.

replies(1): >>pmoria+dq
6. mrspur+i8[view] [source] 2022-05-11 08:54:19
>>heinri+(OP)
A long time ago, as a novice sysadmin, I spent some unhappy time fixing a broken Solaris server. The problem was fsck was in /usr/sbin, /usr was a mount point on an external drive array that got its power yanked. Challenge: to boot you need to mount /usr, but first you have to fsck it using the binary in /usr/sbin ...

After that I would make sure to have some working (static) binaries for rescue on every *nix system, tar at least, and on Solaris an extra /usr/sbin/fsck under the /usr mount point). You can fix a lot of things with tar, sed and netcat.

replies(1): >>mjevan+Mc
◧◩
7. mjevan+Mc[view] [source] [discussion] 2022-05-11 09:47:47
>>mrspur+i8
These days a static-linked copy of busybox on the root partition is usually enough; assuming you have the space for that. A 'full' initramfs can also help in case you need to bring over a USB drive of tools from another system or have changed hardware.
◧◩
8. pmoria+dq[view] [source] [discussion] 2022-05-11 11:51:40
>>captai+78
The problem with that suggestion is that some things belong in more than one category.

A much more flexible way of organizing is to use tags. This way a file could have more than one tag.

Having a tag hierarchy would be even better, so you can browse down the hierarchy as you'd traverse the tree structure of a typical file system (with the added advantage of allowing a single file to have multiple categories that it could be in).

[go to top]