Creating a Ramdisk

Creating a ramdisk is quite simple: mkdir /ramdisk mount -t tmpfs -o size=1024M tmpfs /ramdisk This will mount a 1GB ramdisk to the folder /ramdisk. Increasing/Decreasing its size on the fly: mount -t tmpfs tmpfs /ramdisk -o size=2048M,nr_inodes=50k,noatime,nodiratime,remount Creating an entry in /etc/fstab: tmpfs    /ramdisk    tmpfs    size=2048M,nr_inodes=50k    0    0 This should work as is on […]

The file /etc/mtab explained

  All mounted drives on your system with their options are listed in the file /etc/mtab. This file is automatically generated and updated.   The options in the right order: Drive Mount point File system Options Dump Check   An example: dev/sda2 / ext3 rw,errors=remount-ro 0 0 tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0 proc /proc […]

Creating a software raid using mdadm

Installation: Gentoo: emerge mdadm && rc-update add mdadm default && /etc/init.d/mdadm start Debian/Ubuntu: apt-get install mdadm RedHat/Fedora: yum install mdadm You can activate the kernel module by executing: modprobe raid1 First of all, we are going to create some nodes: mknod /dev/md1 b 9 1 mknod /dev/md2 b 9 2 mknod /dev/md3 b 9 3 mknod /dev/md4 b […]

The file /etc/fstab explained

In the file /etc/fstab you'll have your your devices (Hard discs, cdrom/dvd drives, etc.) that may be mounted on your system. An example: # Root file system /dev/hda1 / ext2 defaults 1 1 # The directory /var gets its own partition /dev/hdb2 /var ext2 defaults 1 2 # The swap partition /dev/hda3 swap swap defaults […]