I’m loading FreeBSD 7 onto my ancient Toshiba Satellite 2800; I plan to use it as a terminal for some servers. Conky displays system stats on my Fluxbox desktop.

I was having trouble getting the drive stats to show up. Here are my .conkyrc tags:

Disk usage: ${fs_used /usr }/${fs_size /usr } - ${fs_used_perc /usr }%
${fs_bar 3,200 /usr }

I wanted the stats on the /usr directory because it is mapped to the largest partition on the hard drive. Conky was displaying zero values like it couldn’t find anything. Trouble! Consider:

Mansfield# df -ah
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a    496M    196M    260M    43%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s1e    496M    110K    456M     0%    /tmp
/dev/ad0s1f     15G    4.3G    9.9G    30%    /usr
/dev/ad0s1d    1.2G     99M    1.0G     9%    /var

After much Googling and head scratching, I discovered that I had inserted an extra space behind the device specifier. Conky will not display anything if there is an extra character between the drive label and the end of the tag! So here is the fix.

Disk usage: ${fs_used /usr}/${fs_size /usr} - ${fs_used_perc /usr}%
${fs_bar 3,200 /usr}

Live and learn.

Conky running!

Conky running!

Tags: , , , , , ,