Missing operating system

Distro hopping may sometimes lead to borked bootloaders and/or installs. Grub/Lilo are usually relatively easy to google around for a fix but fixing a borked windows install wasn’t as easy to find a fix. Borked mine so I’m posting this over here so I can use it for later reference.

Boot from the Windows 8 install CD and navigate to the command prompt. I somehow managed to disable the “active” (bootable?) option for the partition Windows was installed so “bootrec /fixmbr” and “bootrec /fixboot” weren’t working.

list volume
# Select the volume where Windows is installed:
select volume X

This activates and turns the partition bootable.

At this point “bootrec /fixmbr” and “bootrec /fixboot” were reporting success but the computer still failed to boot, something about a damaged BCD. “bootrec /rebuildbcd” did the trick.



Sub Ohm Battery Chart

Found it. Lost it. Found it again, posting it here so I won’t lose it again.



Using LaTeX in Portuguese

I’ve been using LaTeX for a couple of small projects recently and I had some trouble figuring out how to make the accented characters as well as stuff like ‘Ç’ render correctly in the end product. After some mucking about I learned that we have to use three extra packages so everything shows up nicely in the end. It probably works just as well for other languages but you may want to refer to the documentation. Here are the packages you have to use:


My .bashrc

Here’s something I keep forgetting to save and/or backup, my .bashrc. The last couple of times I reinstalled or switched to another distribution I did remember to backup my dotfiles but I figured I might as well just post it here in case I ever need it again.

Most of it comes from the Arch Linux Wiki, a great place for Linux information even if you don’t use Arch. I have then made a few tweaks from snippets I found on other websites. I can’t remember all of them since at the time I had no intention of posting this here. If you find anything that you think is yours please send me the article link so I can pingback to it. Keep in mind there are some Arch specific sections in there, feel free to edit and redistribute as you see fit.

Since it’s quite a wall of text, I’ll drop it after a break for the website proper. If you’re reading this through an RSS reader, sorry for the wall of text.

Read the rest of this entry »


Changing Nvidia Fan Speed on Arch Linux

Quite some time ago I made a post about the coolbits option as a way to be able to control nvidia cards fan speed manually on Ubuntu. Things are a little bit different on Arch Linux. For starters xorg.conf has been somewhat deprecated and it’s preferable to make a file such as /etc/X11/xorg.conf.d/20-nvidia.conf with just the bit of information we want to change. We’ll edit/create that file and add something like:

Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        Option "NoLogo" "true"
        Option "Coolbits" "4"

The speed itself can still be configured through the nvidia-settings application under Thermal Settings. Keep in mind you’ll need nvidia’s proprietary driver for this to work and not the open source nouveau driver.

More info on how to configure other aspects of the driver may be found here at Arch’s Wiki.