zlacker

[return to "Understanding the bin, sbin, usr/bin, usr/sbin split (2010)"]
1. heinri+l8[view] [source] 2022-05-11 07:36:21
>>taubek+(OP)
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.

◧◩
2. mrspur+Dg[view] [source] 2022-05-11 08:54:19
>>heinri+l8
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.

◧◩◪
3. mjevan+7l[view] [source] 2022-05-11 09:47:47
>>mrspur+Dg
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.
[go to top]