Thursday, September 23, 2010

Damn Bollywood

I was recently reading the article Films considered the greatest ever on Wikipedia. Being a fan of Korean movies (of course I have watched only 4!), I got hold of the movie `Old Boy'. And in the midway of watching it, I realized that Bollywood has a remake in the name of Zinda.

Wikipedia `Zinda' entry says:

Most reviewers considered it to be a rip-off of the South Korean film Oldboy. Show East, the producers of Oldboy, initially expressed concerns but took no legal action as the studio had shut down.

Looks like these guys haven't paid for the rights, damn you. And you talk about piracy.

Monday, September 20, 2010

NetBSD drops down to single user mode after etcupdate?

The reason for this is carelessness. The comments in /etc/rc.conf clearly states:

# If this is not set to YES, the system will drop into single-user mode.
#
rc_configured=YES

This is a common symptom of carelessness which can be attributed to the large number of questions asked by the etcupdate program. After carefully answering first few questions, I resorted to answering i to all the other questions.And etcupdate promptly replaced all my other configuration files including rc.conf and overwrote:

rc_configured=YES with rc_configured=NO

I paid for my carelessness by googling for next fifteen minutes, thank you.

Saturday, September 4, 2010

Dual booting *BSD with the new GRUB

With the new version of GRUB (1.98) there have been a lot of changes in the way things work. In the earlier versions of GRUB, the following entry was added to /boot/grub/menu.lst to boot into OpenBSD

title OpenBSD 3.0
root (hd0,0)
makeactive
chainloader +1

The newer versions of Grub do not have the menu.lst anymore but are replaced by /boot/grub/grub.cfg.

Unlike menu.lst this file is never hand edited but gets auto-generated by the /usr/sbin/grub-mkconfig
using templates from /etc/grub.d and settings from /etc/default/grub.

To add entries for other operating systems, the entries are made in /etc/grub.d/40_custom file and grub-mkconfig is run, which generates /boot/grub/grub.cfg

One change that has to be noticed is the partition entry numbering start from 1. First partition in hd0 is (hd0, 1) which was (hd0, 0) in earlier versions.

To dual boot the *BSD systems, the following entries have to be added to /etc/grub.d/40_custom and run grub-mkconfig -o /boot/grub/grub.cfg, by default grub-mkconfig outputs to stdout.

menuentry "NetBSD 5.0.2" {
set root=(hd0,1)
parttool (hd0,1) boot+
chainloader +1
}

menuentry "FreeBSD 8.0" {
set root=(hd0,2)
parttool (hd0,2) boot+
chainloader +1
}

menuentry "OpenBSD 4.7" {
set root=(hd0,3)
parttool (hd0,3) boot+
chainloader +1
}