The Plan

Jan. 9th, 2012 05:57 pm
chebe: (AliceWithTea), Made by <lj site="livejournal.com" user="vblackangelv">, from her <lj site="livejournal.com" user="icon_goddess"> commun
For the laptop, so far; things haven't changed that much, and most of what has is a clear improvement.

- For one, you can resize Windows partitions inside of Windows now. I did run into a problem where it would only shrink it by less-than half the total space. Turned out that that was where the system restore points were saved, and defragmenters couldn't move them. So instead, I turned off system restore and Windows deleted them for me. Resize, then re-enable if you wish. This problem didn't become clear until I used Auslogics Disk Defrag which has a nice block-level visualisation that you can query. (However, you download it through CNet, and my machine started doing funny things, until I uninstalled it. You've heard about CNets antics?)

- Then, as usual, reboot into System Rescue CD, and with gparted create a new partition, formatted NTFS, and label it 'storage'. However, the laptop came with three primary partitions, and this made four (which is the maximum allowed). So I had to make the rest an extended partition.

- Boot into your linux install disc, use all the empty space (of the extended partition), and install. It must have been a common bugbear, because now there is a nice little checkbox during the Fedora install asking whether or not you want to use LVM! (It's easy to make me happy.) It asked where to put the bootloader, and I pointed it at the extended partition as well. (So that's; /, /home, swap, and /boot in total.)

- Reboot back into System Rescue CD, use gparted again to get the name of the boot partition path (e.g. /dev/sda6), then as usual, copy the first 512-bytes using dd. I must have been using an old System Rescue CD because it was loading the NTFS partitions read-only, but having a FAT32 usb-key around is always handy. I saved the bytes of the boot partition there, then rebooted into Windows.

- This for me was the newest bit. boot.ini has been replaced with bcdedit. Found a couple helpful walkthroughs though, and it's simple enough. Edit the boot file through cmd-line instead of directly in text file. When done, reboot, and choose whichever OS you want :)

Excellent tutorial/walkthroughs I found very helpful;
chebe: (SplitMirror), Photo by John Hamill
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 :)
Page generated Feb. 23rd, 2012 11:41 am
Powered by Dreamwidth Studios