error 15 File not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub
I have Windows OS on IDE 1 master and I want to install Gutsy on IDE 1 Slave.
To boot from one HD or the other I change the BIOS settings.
To install Gutsy on my computer, for safety, the first thing I did was to replace my HD on IDE 1 master (Windows OS) with an old and damage HD. BIOS recognized one HD IDE 1 master and one HD on IDE 1 slave.
I booted with the live CD and choose to install on IDE 1 slave (hdb) - partition 1 of IDE 1 slave as Ext3 and partition 5 of IDE 1 slave as Swap and I changed the boot loader (advanced tab) to hd1.
After installation it began a boot (yeeeeesss), but I was presented with Error 15: File not found. Hitting Esc on boot brings Grub options, and witch ever I choose the answer was Error 15: File not found.
I booted with the live CD and everything was where it should. So, witch file was missing?
After some research on internet I found some documentation on Grub (boot loader) that was very helpful.
- First was to find how Gutsy was looking my Hd's.
Using terminal:
sudo fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x057b3228
Device Boot Start End Blocks Id System
/dev/hda1 * 1 9729 78148161 b W95 FAT32
(hda1 means HD master, partition 1)
Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00075cf8
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4678 37576003+ 83 Linux
(hdb1 means HD slave, partition 1)
/dev/hdb2 4679 4865 1502077+ 5 Extended
/dev/hdb5 4679 4865 1502046 82 Linux swap / Solaris
- Second was to find where Grub was installed
sudo grub (to enter the grub program)
To find where Grub was installed
grub> find /boot/grub/stage1
(hd1,0)
(hd1,0 is = hdb1 and means HD slave, partition 1)
grub>quit (to quit he grub program)
- Third was to find how was grub instructing to boot (file grub menu file /boot/grub/menu.lst
)
Using terminal:
gksu gedit /boot/grub/menu.lst
( opens the file /boot/grub/menu.lst
in gedit)
* at the very end you find the grub boot menu
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd1,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
title Ubuntu 7.10, memtest86+
root (hd1,0)
kernel /boot/memtest86
quiet
Resuming:
- Linux is installed on /dev/hdb1 (HD slave, partition 1)
- /boot/grub/stage1 is on (hd1,0) * (hd1,0 is = hdb1 and means HD slave, partition 1)
- Grub menu point's to root on (hd1,0) * (hd1,0 is = hdb1 and means HD slave, partition 1)
At this point you have the classic “Everything is all right but nothing works”
At this point I was almost giving up when I remembered that all Grub menus options gave the same Error 15: File not found and that on /boot/grub/menu.lst hd1,0 were common on the three options.
So I tried to edit /boot/grub/menu.lst and replace (hd1,0) by (hd0,0) and for my surprise, it worked. Remember that (hd0,0) is my Windows HD.
I would appreciate if someone could explain what is going on.
Ubuntu is a great Linux OS, but to be used by ordinary users, for those who never typed a command line, it will take a long, long way.
Hope my experience can help someone.
This issue is caused by the way you boot Ubuntu. When you select to boot from your second hard disk in the bios, the drive numbers for the first and second had disk are swapped. So while your Ubuntu hard disk is hd1 during installation, it becomes hd0 when you boot from that disk.
You could prevent this problem by installing grub on your first (windows) hard disk. Grub would then give you a menu to boot either Windows (on the first disk) or Ubuntu (on the second disk), and you would not need to change the boot order in the bios anymore.
If you have further questions on this issue, the support tracker https:/ /answers. launchpad. net/ubuntu is probably a better place to get good answers.