zlacker

[parent] [thread] 5 comments
1. hpb42+(OP)[view] [source] 2022-05-11 12:25:13
ArchLinux symlinks /sbin, /bin and /usr/sbin to /usr/bin. And also /lib, /lib64, /usr/lib64 to /usr/lib:

$ ls -la / | grep -e bin -e lib lrwxrwxrwx 1 root root 7 Dec 6 23:41 bin -> usr/bin lrwxrwxrwx 1 root root 7 Dec 6 23:41 lib -> usr/lib lrwxrwxrwx 1 root root 7 Dec 6 23:41 lib64 -> usr/lib lrwxrwxrwx 1 root root 7 Dec 6 23:41 sbin -> usr/bin

replies(3): >>red_tr+Ob >>salmo+gC >>stouse+2n1
2. red_tr+Ob[view] [source] 2022-05-11 13:26:19
>>hpb42+(OP)
Same on my (X)Ubuntu 20.04.
3. salmo+gC[view] [source] 2022-05-11 15:20:02
>>hpb42+(OP)
I think nearly all Linux distros did this when they adopted systemd. That’s where I first read this argument.

I know RHEL, Debian, and Arch do. Not a lot outside of those families.

4. stouse+2n1[view] [source] 2022-05-11 18:49:19
>>hpb42+(OP)
I'm actually a bit surprised about `/bin` there. Maybe it's archaic but I've always considered the point of `/bin` to be a minimal set of tools that could allow an otherwise-hosed system to be booted/debugged. So it (and `/lib` and a few other directories) might be on a small, read-only partition while `/usr` and friends are on a much larger read-write partition.

Of course in the last twenty-five years I don't think I've ever really used a system set up like that. But it does seem nice to at least be able to do so.

replies(2): >>xjrk+2O1 >>waters+Db2
◧◩
5. xjrk+2O1[view] [source] [discussion] 2022-05-11 21:12:17
>>stouse+2n1
I've used to setup my system exactly like that, but that was in 20xx. Since then I've got lazy.
◧◩
6. waters+Db2[view] [source] [discussion] 2022-05-11 23:25:30
>>stouse+2n1
IIRC, you are correct. And OpenBSD still sets up distinct partitions for `/bin` and `/lib` etc.

The first PC I built had 7 disk drives in a tower case, four distinct hard drives. Yes it was crazy. But the largest of these by far was 540 MB. It made sense to keep the boot stuff on its own hard drive.

Linux has `boot`, of course, but `boot` should never appear in $PATH. I think.

[go to top]