2010-Mar-14, Sunday

chebe: (Default)
Problem: Grub replaced MBR without asking.

I'm a dual-booter. I keep the XP installation that my laptop came with because some proprietary software, especially the newest stuff, only really works on Windows. I also have a partition for work purposes, with crazy-strict security. And then, then I like to install different flavours to play around with. So happened one day I was playing with Ubuntu. Then it did something that I disliked very much, it replaced my Windows MBR with grub. But not just any grub, one with config files bloated with comments and talk of auto-updating. I quickly decided that Ubuntu (at least that release) wasn't for me*, but I couldn't delete for fear of what it would do to my booting ability. Fast forward a few months and I've managed to get the grub menu to be chain-loaded from the default Windows MBR. (I did it mostly ass-about-backwards, but these are the important steps.)


Solution:
1. Burn yourself a linux rescue cd, just in case. Personally I like SystemRescueCd (also, wget for Windows? *glee*). Backing up all the files in question is a good idea as well.

2. Boot into your Linux that maintains the active grub menu. Copy the boot sector to a file (name unimportant).
dd if=/dev/sda4 of=/mnt/external/bootfile.lnx bs=512 count=1

3. Boot into Windows XP, copy the bootfile.lnx somewhere, and edit your boot.ini. It's probably hidden, so from cmd.exe:
cd C:\
edit boot.ini


Append to end of file (under operating systems) something like:
C:\bootfile.lnx="Linux Grub"
Save and exit.

4. Insert a Windows Installation disc, or Windows rescue disc. Reboot into cd. Go to the Recovery Console (R), select which Windows partition (generally 1), enter password (may be null, in which case just press return), and at prompt enter:
fixmbr
Accept warning. When complete, reboot.

5. Try out your new menu.


I am almost back to where I was. One of my Linux partitions is still buried inside the grub menu. I was unable to create a working bootfile for it to give it it's own MBR entry, but I haven't given up. Also, I did most of this in reverse order, and used the linux rescue cd to reinstall/re-setup grub on the Ubuntu partition. I don't think that was necessary, but I was/am just figuring things out. Maybe that's what allowed me to create the working bootfile? I don't know yet, but I'll keep looking.




*(I don't intend to do any kind of flavour bashing here, this is just personal opinion. If you disagree, good, variety is, as they say, the spice of life :)

This Paddy's Day

2010-Mar-14, Sunday 02:07 pm
chebe: (Wild)
Wednesday 17th March. If you're Irish (and not working in hospitality) you likely have the day off. Before you head off to kill a few braincells consider heading over to tog for a hackaton painted green! There will be general green-/Irish- themed projects going on. And I'll be around with lots of things to share:
- Green fabric paint, green black-light pigment, green thermochromatic paint, glow-in-the-dark pigment (which is pretty much green), and hopefully some green electroluminescent wire.
- There may even be face paint and green glitter (if I can find it…).
- Will probably bring some wax and pre-made candles for decorating (everything looks better painted with shamrocks).
- Am considering throwing together shamrock-shaped handbags as well, just to see if I can.

It's free, it's open (in the sense that if you're a non-member just let me know you're coming beforehand), and it should be crazy fun. Even if you just want to take a look, that's cool too :)
Page generated 2017-Oct-18, Wednesday 09:54 pm
Powered by Dreamwidth Studios