Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 985  / 1 Year ago, thu, march 9, 2023, 5:30:04

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.


More From » dual-boot

 Answers
4

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.


[#44088] Thursday, March 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ateact

Total Points: 176
Total Questions: 130
Total Answers: 122

Location: Egypt
Member since Sun, Apr 23, 2023
1 Year ago
;