From: Friedrich L. <fl...@fl...> - 2001-09-15 01:24:27
|
Hi! I suggest the following layout for the new Devil-Linux 0.5 Beta: / .... CD-Rom directly mounted as root so nobody can change anything *) /dev/shm .... virtual memory file system (max. size limited!) [see below] /etc -> /dev/shm /tmp -> /dev/shm/var/tmp /var -> /dev/shm/var optional we can mount the follwing: /var/mount .... /dev/hdx, /dev/sdx (do we have to care about partitioning? :) This would be useful for: * squid * sendmail/qmail/postfix/exim * amavis * you name it :-) *) yes I'm paranoid :-) [ from kernel tree Documentation/Configure.help ] Virtual memory file system support CONFIG_TMPFS Tmpfs is a file system which keeps all files in virtual memory. In contrast to RAM disks, which get allocated a fixed amount of physical RAM, tmpfs grows and shrinks to accommodate the files it contains and is able to swap unneeded pages out to swap space. Everything is "virtual" in the sense that no files will be created on your hard drive; if you reboot, everything in tmpfs will be lost. You should mount the filesystem somewhere to be able to use POSIX shared memory. Adding the following line to /etc/fstab should take care of things: tmpfs /dev/shm tmpfs defaults 0 0 Remember to create the directory that you intend to mount tmpfs on if necessary (/dev/shm is automagically created if you use devfs). You can set limits for the number of blocks and inodes used by the filesystem with the mount options "size", "nr_blocks" and "nr_inodes". These parameters accept a suffix k, m or g for kilo, mega and giga and can be changed on remount. The initial permissions of the root directory can be set with the mount option "mode". -- MfG / Regards Friedrich Lobenstock |