Scripting

Rescue a damaged disk using GNU ddrescue

GNU ddrescue (gddrescue) is a linux data recovery tool. It copies data from one file or block device (harddisc, cdrom, etc) to another, trying hard to rescue data in case of read errors. It can also be used as a forensic cloning tool. Installing gddrescue in Ubuntu linux # aptitude install gddrescue The command to […]

Read More
Linux

Manual download and install of VMware Tools in linux

This post describes how you can download and install the latest version of VMware Tools to a linux guest from a ESXi 5.0 host. You need SSH access rights to a VMware host to follow this guide. Allow SSH access to the VMware host you are about to access. This can be done in the […]

Read More
Linux

Change how the swap memory behave in Ubuntu

This post is just a cut and paste job from the Ubuntu SwapFaq for my future reference Ubuntu installation. The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for […]

Read More
Linux

Recursively symlinking files

This is a short script I use to symlink all my JPG image files on my file server to a flat folder accessible to my DLNA enabled devices. My files are organized in year folders and under each year there are month folders: -2011 –2011-01 –2011-02 –2011-03 … -2012 –2012-01 I avoid duplicate symlinks by […]

Read More