Posts

How to force fsck at every boot in Linux

In /etc/init.d/checkfs.sh is the line if [ -f /forcefsck ] || grep -s -w -i "forcefsck" /proc/cmdline, so providing forcefsck on the kernel command line or generating a /forcefsck file on shutdown should cause an fsck on the next reboot. To…

Linux – iproute2 Cheat Sheet

Overview iproute2 is the Linux networking toolkit that replaced net-tools (ifconfig, route, arp etc.) Old style network utilities like ifconfig and route are still there just for backwards compatibility and do not provide access to…
Linux File Permissions

Linux – Permissions

  In order to update and change file permissions, you can use the chmod command. The format of the command is as follows: [crayon-6872411398dac685436179/] for each action   Changing Permissions VALUE MEANING rwx+ugo No…

How to Disable or Enable Disk Write Caching in Linux

ATA-Based Disks Check out whether disk caching is enabled on your disk or not: [crayon-68724113991bc604123576/] To disable write caching, you need to edit hdparm.conf using your favorite editor (e.g. gedit, vi). [crayon-68724113991c4436947854/] …