Next: , Previous: , Up: binfmt   [Index]


I.2 Loading the module

If the module is installed on the system, we will find it in:

/lib/modules/<version>/kernel/fs/binfmt_misc.ko

and to load it we do (as root):

/sbin/modprobe binfmt_misc

for example on a Slackware Linux installation, loading can be done by uncommenting the relevant line in /etc/rc.d/rc.modules.

Then we add the following line to /etc/fstab:

none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0

so that the binfmt_misc directory can be mounted and will be mounted when booting the system. We can freely mount and unmount this virtual file system with (as root):

# mount  /proc/sys/fs/binfmt_misc
# umount /proc/sys/fs/binfmt_misc

but this is rarely useful. There are other means of enabling and disabling the feature.