Archive for October, 2011

Displaying CPU temperatures on Linux hosts

Intel and AMD keep coming out with bigger and faster CPUs. Each time I upgrade (I’m currently eyeing one of these) to a newer CPU it seems like the heat sinks and cooling fans have tripled in size (I ran across this first hand when I purchased a Zalman CPU cooler last year). If you […]

Recovering the MBR from a Windows machine

I was chatting with a friend the other day about recovering the MBR on one of my Windows systems. He is a seasoned admin and recommended the following: 1. Boot from the Windows XP CD (the UBC may also work) and select the recovery console. 2. Once the recovery console comes up you can run […]

Fun times with the bash read function and subshells

There are a few shellisms that have bitten me over the years. One issue that has bitten me more than once is the interation of variable assignments when a pipe is used to pass data to a subshell. This annoyance can be easily illustrated with an example: $ cat test #!/bin/bash grep MemTotal /proc/meminfo | […]

Getting the number of bytes read and written by your Linux NFS kernel threads (nfsd)

Linux NFS server implementations export a number of statistics through the /proc file system. The nfsstat utility can parse this file and display various performance counters, and the data that is displayed comes from the /proc/net/rpc/nfsd proc entry: $ cat /proc/net/rpc/nfsd rc 0 2585 290 fh 0 0 0 0 0 io 1069882 10485760 th […]

To iPad or not to iPad, that is the question for my readers

Even though I’m your typical IT geek, I’m not one to jump on technology just because it’s new. I like to wait until technology stabilizes, prices drop and the lines at your favorite geek store decrease in size. I’m fortunate to have a Macbook Pro, and use it for just about everything I do. While […]

Checking ext3 file system consistency on production systems

As an admin, there is nothing worse that the feeling you get when you determine you are dealing with file system corruption. Wether it’s a lost inode or a corrupted superblock, I always get a big knot in my stomach when I figure out that corruption exists. With modern file systems like ZFS it’s trivial […]

« Older Entries