Find /boot/grub/stage1 Error 15
Contents |
Grub re-installation General support questions Post Reply Print view Search Advanced search 5 posts • Page 1 of 1 piottrek17 error 15 file not found linux redhat Posts: 4 Joined: 2013/07/13 16:10:06 [SOLVED] [Xen VM] Grub re-installation Quote
Error 15 File Not Found Centos
Postby piottrek17 » 2013/07/13 16:20:23 Hello,I have a problem during grub re-installation of my VM which is error 15 file not found press any key to continue running on Xen. This VM is an Centos6.4 x64.The reason why I need to re-install grub is most probably MBR filed with zeros.Partitons looks as follows:Code: Select
Checking If /boot/grub/stage1 Exists... No
all/dev/xvda1 /boot
/dev/xvda2 VolGroup
/dev/VolGroup/lv_root /
/dev/VolGroup/lv_swap swap
My attempts using CentOS rescue mode after chroot /mnt/sysimage:Code: Select all# grub
grub> find /boot/grub/stage1
Error 15: file not found
I have absolutely no idea why I get this error. device.map file contains: (hd0) grub error 15 /dev/xvdaDoes anyone has any idea why this is not working?Regards.Piotr Top TrevorH Forum Moderator Posts: 16845 Joined: 2009/09/24 10:40:56 Location: Brighton, UK [SOLVED] [Xen VM] Grub re-installation Quote Postby TrevorH » 2013/07/13 17:48:53 Since /dev/xvda1 is mounted on /boot during normal operations, you should be hunting for /grub/stage1 not /boot/grub/stage1 Top piottrek17 Posts: 4 Joined: 2013/07/13 16:10:06 Re: [Xen VM] Grub re-installation Quote Postby piottrek17 » 2013/07/14 14:56:08 Code: Select allgrub> find /grub/stage1
Error 15: File not found.Still the same error.Help, please. Top piottrek17 Posts: 4 Joined: 2013/07/13 16:10:06 Re: [SOLVED] [Xen VM] Grub re-installation Quote Postby piottrek17 » 2013/07/15 09:34:25 Solution found.Code: Select all# grub
grub> device (hd0) /dev/xvda
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Post Reply Print view 5 posts • Page 1 of 1 Return to “CentOS 6 - General Support” Jump to CentOS General Purpose CentOS - FAQ
Error 15: File not found Date: Sun, 30 Jan 2005 16:16:29 -0600 On Sun, Jan 30, 2005 at 10:11:10AM -0500, Cop7586 wrote: > > Hello, > >> > >> I've recently built a
Error 15 File Not Found Grub Windows 7
new kernel and can't boot into my new kernel. I've updated my /boot/grub/grub.conf file
Grub Setup
as follows with the new kernel. > >> > >> # grub.conf generated by anaconda > >> # > >> # grub rescue Note that you do not have to rerun grub after making changes to this file > >> # NOTICE: You have a /boot partition. This means that > >> # all kernel and initrd paths http://www.centos.org/forums/viewtopic.php?t=4350 are relative to /boot/, eg. > >> # root (hd0,0) > >> # kernel /vmlinuz-version ro root=/dev/hda2 > >> # initrd /initrd-version.img > >> #boot=/dev/hda > >> default=0 > >> timeout=10 > >> splashimage=(hd0,0)/grub/splash.xpm.gz > >> title Red Hat Linux (2.4.20-6) > >> root (hd0,0) > >> kernel /vmlinuz-2.4.20-6 ro root=LABEL=/ > >> initrd /initrd-2.4.20-6.img > >> title Red Hat Linux (2.4.20-6new) > >> root (hd0,0) > >> kernel /bzImage-2.4.20-6new https://www.redhat.com/archives/rhl-list/2005-January/msg08040.html ro root=LABEL=? > >> initrd /initrd-2.4.20-6new.img > >> > >> > >> > >> Filesystem 1K-blocks Used Available Use% Mounted on > >> /dev/hda2 7787744 1649900 5742244 23% / > >> /dev/hda1 202220 14004 177776 8% /boot > >> none 192560 0 192560 0% /dev/shm > >> > >> > >> I'm assuming I did everything correctly in the grub.conf file. When I reboot the system and try to load my new kernel all I get is > >> > >> Root (hd0,1) > >> Filesystem type is ext2fs, partition type is 0x83 > >> > >> Kernel /bzImage-2.4.20-6new ro root=/dev/hda2 ro root=/dev/hda2 > >> > >> Error 15: File not found > >> > >> Press any key to continue... The basic problem here is that identification of the root on the kernel line has to match the identification of the root in the fstab. The basic problem here is that identification of the root on the kernel line has to match the identification of the root in the fstab. You can't have root=LABEL=/ for one and /dev/hda2 for the other. > >> > >> > >> when I type in > >> > >> grub> find /grub/stage1 > >> (0,0) First you need to have a:
Jamben Member Registered: 2009-02-11 Posts: 5 /boot/grub/stage1 doesn't exsist, been at this for hours :( I'm attempting to install arch on my eee 900. I've got a 4 GB (sda) https://bbs.archlinux.org/viewtopic.php?id=65161 drive and a 16 GB (sdb) drive. the partitions are laid out as follows:sda1 - 150mb /boot partitionsda5 - / partitionsdb1 - /home partitionfstab:UUID=04a14de4-d76b-xxxx-xxxx-xxxxxxxxxxxx /home ext2 defaults 0 1UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /boot ext2 https://roshan18.wordpress.com/2008/02/03/reinstalling-grub-boot-loader/ defaultsn 0 1UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext2 defaults 0 1(the xs are just random hex numbers... didn't want to recopy them all but I will if it's important.)menu.lst# (0) Arch Linuxtitle Arch Linuxroot error 15 (hd0,0)kernel /vmlinuz26 root=/dev/disk/by-uuid/[the same hex as was the / partition in my fstab] roinitrd /kernel26.img# (1) Arch Linuxtitle Arch Linux Fallbackroot (hd0,0)kernel /vmlinuz26 root=/dev/disk/by-uuid/[the same hex as was the / partition in my fstab] roinitrd /kernel26-fallback.imgAll goes well until I attempt to install grub. It quits and tells me to check tty5. There, it sais:Checking if "/boot/grub/stage1" exists... noChecking if "/grub/stage1" exists... error 15 file noerror 15: File not foundI checked /boot/grub/ and stage1 isn't there. /grub doesn't exist.I'm stuck. Any help would be appreciated, as my google-fu seems to have failed me Edit: forgot 1 thing: grub then find /boot/grub/stage1 yields (hd2,0). Changing my menu.lst accordingly doesn't seem to do anything. Last edited by Jamben (2009-02-11 20:41:17) Offline #2 2009-02-12 18:03:37 konni Member From: berlin Registered: 2008-09-25 Posts: 98 Re: /boot/grub/stage1 doesn't exsist, been at this for hours :( you probably didnt have sda1 mounted to /boot when you installed grub.is grub/stage1 there when you unmount your boot-partition? if so, either copy the whole grub-dir to / mount /boot and copy it over again or make sure /boot is mounted and reinstall the grub-package. Offline #3 2009-02-12 18:24:01 whukes Member Registered: 2008-07-18 Posts: 34 Re: /boot/grub/stage1 doesn't exsist, been at this for hours :( In your fstab you have 'defaultsn' for /boot instead of 'defaults'. Offline #4 2009-02-12 20:12:15 Jamben Member Registered: 2009-02-11 Posts: 5 Re: /boot/grub/stage1 doesn't exsist, been at this for hours :( whukes wrote:In your fstab you have 'defaultsn' for /boot instead of 'defaults'.That was
When you try to install some other boot loader or try to install/reinstall Windows, the grub information in the MBR will be overwritten. So, Grub might have to be reinstalled. When some/any part of partition information is changed, the grub configuration won't be automatically notified of it and so, the grub configuration will remain as it is. There maybe many cases in which the partition information maybe changed like when you create an extra partition, which is something trivial and may or may not affect the grub boot loader. However, most of the times, changes in the partition information will result in errors when the grub boot loader is loaded. So, the grub configuration has to be updated and the easiest way is to reinstall Grub. There are many such cases and in these cases, people tend to treat the effect, more than the cause. By this, I mean people tend to usually reinstall Ubuntu or Fedora or whichever GNU/Linux operating system they are using, through which Grub will be automatically reinstalled. But is it necessary? No, Grub can be reinstalled without reinstalling the entire operating system! In fact, Fedora CD/DVD does offer to reinstall Grub if you choose to upgrade your system. However, I have tried to use that option in many of my friends' computers and it has never worked! I have no idea why it doesn't work. So I resort to the easiest fool-proof method I know - COMMANDS @ TERMINAL COMMANDS TO REINSTALL GRUB: All you need to do is access the terminal using the installation CD/DVD of your GNU/Linux operating system. Ubuntu installation CD is a live CD and so, when it loads, you can run the terminal from there. Fedora installation CD/DVD offers options through which you will have to choose to upgrade the system using commands(rescue mode). Once you are at the terminal, you will have to access the ‘grub' shell to change the grub configuration. So, give this command at the terminal: $ grub If it says that you don't have the permission, in which case you will not have logged in as root(as in Ubuntu), give this command at the terminal: $ sudo grub You will get the grub-shell prompt: grub> Now, you will have to find out in which partition Grub had been installed before, so that you reinstall in that partition only. Give this command at the terminal: grub> find /boot/grub/stage1 (returns value) It returns the number of the partition in which Grub i.e your GNU/