I tried installing Ubuntu Server (after numerous installs) on my partitioned hard drive. I remember them as sda5 and sda6. The install was to dual boot with Windows 7.
When I first install grub, I used the i386 iso, but after I found out that I could use the amd version to optimize, I installed that.

Now, grub has an error and I don't know what to do.

Almost all the help tell me to use a CD-ROM, but I used a flash drive. Now, I just want to either repair grub, or get rid of Ubuntu and grub entirely, as long as I can save my Windows7 partitioned on my sda1-3.

There is a very easy and interactive way to fix the grub problem.. Using this method it will start reading all your boot partition and also you will be able to use any operating system. All operating system installed in your computer will be displayed in grub menu.

You have to follow these very simple steps..

Boot from LiveCD or your bootable USB, Select 'Try Ubuntu'.

Install boot-repair ( a good s/w to fix grub )

2.1: $ sudo add-apt-repository ppa:yannubuntu/boot-repair

2.2: $ sudo apt-get update

2.3: $ sudo apt-get install -y boot-repair

2.4: Run boot-repair from your system or type: (boot-repair &)

When started select Option 'Recommended Repair' from out of two options: