why is it said that /lib, /sbin directories should not be mounted on a separate partition ?
Laurenz Albe
Because they belong to the root file system.Without the files in these directories the system is unusable.These files should be there after / is mounted.
How, for example, do you want to start the init process, that eventually mounts the other file systems? The executable is /sbin/init.
Doug FreyBurger
Compiled binaries in a bin directory tend to reference compiled libraries in a lib directory. Most of the binaries in /sbin are statically linked but some can reference /lib. Since the first
filesystem mounted is root and the first binaries referenced are in /sbin they must be capable of running with no reference at all to any directory tree outside of /.
At install time there are options to move all sorts of directories to their own mount points. /opt and /usr don't have any issues like that. /sbin and /lib do have that issue.
The other directory that absolutely must be in the boot mount point is /etc because /etc/inittab lives there plus the scripts that do the mounts of all the other local file systems. Once
the rest of the local file systems are mounted it becomes less important where a executable binary is versus where its library binaries are.
No comments:
Post a Comment