grub2 and a gamer’s problem.

As some of you may know, I am a gamer. Also, I am a software developer. I use Windows 7 for my gaming and Arch Linux for my dev work.

The problem I’ve ran into, and some of my friends have complained about as well, is that when you go to reboot to your Windows install you have to sit around and wait for the grub prompt, then select the right entry, then you are clear to walk away while it boots.

This is no longer a problem.

If you are running Grub2, there is a simple solution, if you are not, I recommend switching to it (Archers, the installer installs Grub1 there is a nice wiki page about Grub2 if you’d like to switch).

The solution makes it so we can choose what menu entry to boot before rebooting, then have it go back to the default before we set that on the next boot after that.

The start of this solution is enabling saving of defaults for grub. This requires changing /etc/default/grub:




Some distros have a update-grub command, Arch Linux is not one of them, so then you reinstall grub which is as simple as a: (replace sda with your boot drive)

sudo grub-install /dev/sda

Then you can do: (replace 3 with the number or name of your windows menu entry 0 indexed)

sudo grub-reboot 3
sudo reboot

And there ya go, you will boot into windows, and when you reboot it will go back to linux.


Back !

So here I am, back on blogger. Though I have my own domain name it still feels like a bit of a cop out.

I wrote my own blogging software, which seems like it should be an achievement and as a software developer I could customize it all I ever wanted etc, etc. The thing is, making things pretty is hard. I am not aesthetically talented, so when it comes to stylizing things, I get frustrated, and in the case of personal projects, give up.

I have been wanting to write again, blog about different technical hurdles I have overcome, at home and at work. Share things like how I got org-mode setup with org-protocol or the nginx setup I have switch to because of how much cleaner it feels than using apache. Things like that.

So you can look forward to updates on this blog, though I don’t know how often I will update it, and I wont make a promise for every day, every week or even every month. But every time I feel like writing about something technical or nerdy you can bet I’ll do it here (or rant on IRC)