Monitoring FreeBSD installations

I decided to re-partition my x86 laptop hard drive today, which required me to re-install FreeBSD (the disk label changed rather drastically). After I hit “commit” to propogate the changes, I hit “control-alt-F2” and was thrown into virtual terminal #2. This virtual terminal contained the output from the package extractions, and I found it a bit more useful that the progress meter that was updating in virtual terminal #1. I digs me some FreeBSD!

Fixing FreeBSD /etc/rc.conf typos

I just finished installing gnome 2.12 this afternoon on my FreeBSD 6.0 desktop, and wanted to reboot the system to test out the gdm_enable line I added to /etc/rc.conf. When I rebooted the box, I was greeted with the following error:

Loading configuration files.
/etc/rc.conf: 20: Syntax error: Unterminated quoted string

Ack — it looks like I forgot to properly quote the “YES” value of the name=value pair in /etc/rec.conf. I thought to myself, no problem, I will just fire up vi and fix this anomaly:

$ vi /etc/rc.conf
ex/vi: Error: /var/tmp/vi.recover: Read-only file system

Ack — now the file system is mounted Read-only and I need to write to it! Not to fear, mount’s “-w” option is here:

$ mount -w /

$ vi /tmp/rc.conf
[ edit here ]
:wq!

I have done this numerous times with Solaris using “mount -o remount,” but this was the first time I needed to do this with FreeBSD. Nice!