Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Saturday, June 25, 2011

Dual boot Ubuntu and Windows 7 - how did I do it?

I've now got the dual-booting installation of Ubuntu 11.04 and Windows 7 that I wanted, but I'm buggered if I know how I managed it.

The steps I took were:

1. Made a Ubuntu live USB with unetbootin which I used to test hardware compatibility. The persistence feature on the USB didn't work, in fact it led to hangs every time I tried it, but Ubuntu itself worked fine.

2. Used Windows disc management to make two new partitions on the HD, a 40G one for Ubuntu and an 8G one for swap.

3. Made a Ubuntu installation USB with unetbootin and installed Ubuntu to the partition I'd made. I specifically didn't use the option to alter the boot setup at all because my experience with Windows XP and Linux was that doing this buggers up the Windows boot mechanism and it has to be fixed using a Windows tool.

4. Made a Super Grub Disc USB using unetbootin and tried to boot the HD Ubuntu with it. This didn't work, because as I found out later, Ubuntu uses Grub2 not 'Legacy' Grub.

5. Tried to make a Super Grub2 Disc USB with unetbootin. Although I got a boot menu off this it wouldn't work at all. As I found out later, unetbootin can't make SG2 USBs.

6. Made an SG2 USB with Windows dd. This worked perfectly, detecting Ubuntu and Windows 7. Booted into Ubuntu from it, all good.

7. Restarted the notebook intending to boot Windows and use bcdedit to put Ubuntu onto the Windows boot menu. But I got a Ubuntu-branded Grub2 menu - presumably Ubuntu had put that there when I installed it on the HD. (I'm sure I ran Windows at least once after that installation, though, and I didn't get the menu then).

8. Booted Ubuntu from this menu, worked fine. Restarted and booted Windows from this menu, worked fine. Have run both several times since with no problems.

So I'm pleased, but perplexed.

Followers

Blog Archive