I know it's stupid now, after I checked the internet, but I just formatted a partition that I had installed GRUB to.
Now, whenever I boot, I end up with ERROR 15 (which means "FILE NOT FOUND").
So, I got my Ubuntu 11.04 live disk out and installed it on top of the formatted partitition, and now at least I can boot - but I want to get rid of the duplicate Ubuntu now.
I think what I need to do is make GRUB look back on my first partition - which I have established to be /dev/sda1, or (hd0,0) in GRUB-talk. But, when trying
grub> root (hd0,0)
grub> setup (hd0)
or trying:
grub> root (hd0,0)
grub> setup (hd0,0)
I end up with:
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found
Which is NOT good!
My sudo fdisk -l
looks like this (run from the live installation):
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ce6db
Device Boot Start End Blocks Id System
/dev/sda1 * 1 28210 226594816 83 Linux
/dev/sda2 29255 30402 9212929 5 Extended
/dev/sda3 28210 29255 8388608 83 Linux
/dev/sda5 29255 30402 9212928 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 7948 MB, 7948206080 bytes
245 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 15190 * 512 = 7777280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00077236
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1021 7754464 b W95 FAT32
(Note: sdb1 is my livedisk, an 8GB SD Card)
PS: The reason I'm going through all this is because I want to install Android-x86, but the GRUB it comes with wont recognize Ubuntu, so it's not much of a dual-boot.
/boot/grub/stage1
inside my main Ubuntu partition. So, effectively, there was only GRUB on that partition. My Ubuntu is, thankfully safe.