Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
Dif you formatted the partition where there were only grub or the whole Ubuntu? –  Matteo Pagliazzi Jul 27 '11 at 21:05
    
The partition I formatted had GRUB installed, and it was Android-x86. I think my GRUB is installed to the MBR, because as mentioned there doesn't seem to be a /boot/grub/stage1 inside my main Ubuntu partition. So, effectively, there was only GRUB on that partition. My Ubuntu is, thankfully safe. –  drnessie Jul 27 '11 at 21:13
    
I should probably mention that I can boot into my main Ubuntu - though only through the Ubuntu I installed from my livedisk 30 mins ago. That's not what I want, as it takes up disk space, and time when booting up (it means I have to watch the screen util GRUB is up then use the arrow keys to select the main Ubuntu). –  drnessie Jul 27 '11 at 21:15
add comment

1 Answer

up vote 0 down vote accepted

You say you can boot into your old Ubuntu. If that is the case, it should be fairly easy to fix this. Open a handy terminal and try this on the main Ubuntu:

sudo update-grub
sudo grub-install /dev/sda
sudo grub-install /dev/sda --recheck

As for getting Android to work, you might be able to install it without a bootloader. Then boot into the main Ubuntu and run

sudo update-grub

and see if that finds it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.