Page 1 of 2

"file not found" during boot [Solved]

PostPosted: Thu Nov 05, 2009 10:12
by Zunden
so, i just upgraded to sabayon 5 from 4.2. i dual boot windows on this computer ... so grub has 3 options for me: the normal sabayon one, sabayon safe mode, and windows. but now when i get to this screen if i select sabayon or sabayon safe mode it gives me an error saysing "file not found" and then on the next line it says "press any key to continue". but then when i select the windows option sabayon boots up just fine.... i have no idea how to fix this or even where to start looking...


this is my /boot/grub/menu.lst file:

Code: Select all
# grub.conf generated by the Sabayon Linux Installer
#
# 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 are relative to /boot/, eg.
#          root (hd0,4)
#          kernel /kernel-genkernel real_root=/dev/VolGroup00/LogVol00
#          initrd /initramfs-genkernel
#boot=sda
default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz

title Sabayon Linux x86 (genkernel-x86-2.6.29-sabayon)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.29-sabayon  root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/mapper/VolGroup00-LogVol01
   initrd /initramfs-genkernel-x86-2.6.29-sabayon
   savedefault

title Sabayon Linux x86 (genkernel-x86-2.6.29-sabayon) (safe mode)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc console=tty1 resume=swap:/dev/mapper/VolGroup00-LogVol01 gentoo=nox acpi=off ide=nodma vga=normal
   initrd /initramfs-genkernel-x86-2.6.29-sabayon
   savedefault

title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1
   savedefaulttitle=Sabayon Linux (kernel-genkernel-x86-2.6.31-sabayon)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/mapper/VolGroup00-LogVol01
   initrd /initramfs-genkernel-x86-2.6.31-sabayon
   savedefault



and here is my /boot/grub/device.map file:

Code: Select all
# this device map was generated by the Sabayon Linux Installer
(fd0)     /dev/fd0
(hd0)     /dev/sda


this one seems a little odd to me...i think i should have 3 devices...but i'm really not sure how to find out...would that be a problem?

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 10:23
by crisandbea
Can you post complete error.... ???

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 10:27
by joeoden
Code: Select all
title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1
   savedefaulttitle=Sabayon Linux (kernel-genkernel-x86-2.6.31-sabayon)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/mapper/VolGroup00-LogVol01
   initrd /initramfs-genkernel-x86-2.6.31-sabayon
   savedefault

Your problem is in the code above, should be
Code: Select all
title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1
   savedefaul

ttitle=Sabayon Linux (kernel-genkernel-x86-2.6.31-sabayon)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/mapper/VolGroup00-LogVol01
   initrd /initramfs-genkernel-x86-2.6.31-sabayon
   savedefault


Thanks micia for pointing out the typo
I have ttitle instead of title the extra t should be on the end of savedefaul :oops: (that's 2 today)

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 11:22
by micia
joeoden wrote:Your problem is in the code above, should be
Code: Select all
title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1
   savedefaul

ttitle=Sabayon Linux (kernel-genkernel-x86-2.6.31-sabayon)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/mapper/VolGroup00-LogVol01
   initrd /initramfs-genkernel-x86-2.6.31-sabayon
   savedefault


Be careful, there is an error in the title line, it should be title, not ttitle

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 11:28
by totedati
title Other Operating System - Microsoft Windows
title Sabayon Linux x86 (genkernel-x86-2.6.29-sabayon)

both have

Code: Select all
real_root=/dev/VolGroup00/LogVol00


i think something is wrong here ... linux and windows installed on the same lvm partition!?

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 11:31
by totedati
in fact all
Code: Select all
title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1
   savedefaulttitle=Sabayon Linux (kernel-genkernel-x86-2.6.31-sabayon)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/mapper/VolGroup00-LogVol01
   initrd /initramfs-genkernel-x86-2.6.31-sabayon
   savedefault


is a simple penguin copycat ... should be a simple
Code: Select all
title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1


but with rootnoverify (hd0,0) pointing to real windoze partition ....

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 11:34
by Zunden
the complete error reads "Error 15: File not found" below that it says "press any key to continue". which then just takes me back to the grub screen. right before the error it says "console=tty1 quiet resume= swap:/dev/mapper/volgroup00-logvol101".

i made the change suggested by joeoden and my /boot/grub/menu.lst now reads:

Code: Select all
title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1
   savedefault

title=Sabayon Linux (kernel-genkernel-x86-2.6.31-sabayon)
   root (hd0,4)
   kernel /kernel-genkernel-x86-2.6.31-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/VolGroup00/LogVol00 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/mapper/VolGroup00-LogVol01
   initrd /initramfs-genkernel-x86-2.6.31-sabayon
   savedefault


and what this change did was add another option for sabayon to the grub menu. the windows option is booting into windows now and the new sabayon option boots into sabayon...but the other 2 options are still there an not working. i don't see any problem with removing the sabayon option that doesn't work. but now i just want to get that safe mode option working again just in case....

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 11:36
by crisandbea

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 11:40
by totedati
linux safe mode boot variant is identical to normal linux boot but with some more or less safe options ... like this:

Code: Select all
sudo cat /boot/grub/menu.lst                                           
Password:                                                                                     
# grub.conf generated by the Sabayon Linux Installer                                         
#                                                                                             
# 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 are relative to /boot/, eg.
#          root (hd1,0)
#          kernel /kernel-genkernel real_root=/dev/vg1/sabayon
#          initrd /initramfs-genkernel
### AUTOMAGIC BOOT DEVICE DETECTION -- DO NOT REMOVE ###
#boot=sda
### AUTOMAGIC BOOT DEVICE DETECTION END ###
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz


title Sabayon Linux (kernel-genkernel-x86_64-2.6.31-sabayon)
        root (hd1,0)
        kernel /kernel-genkernel-x86_64-2.6.31-sabayon  root=/dev/ram0 ramdisk=8192 real_root=/dev/vg1/sabayon dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda1 real_resume=/dev/sda1
        initrd /initramfs-genkernel-x86_64-2.6.31-sabayon
        savedefault


title Sabayon Linux (kernel-genkernel-x86_64-2.6.31-sabayon) (safe mode)
        root (hd1,0)
        kernel /kernel-genkernel-x86_64-2.6.31-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/vg1/sabayon dolvm init=/linuxrc console=tty1 resume=swap:/dev/sda1 real_resume=/dev/sda1 nox gentoo=nox acpi=off ide=nodma vga=normal
        initrd /initramfs-genkernel-x86_64-2.6.31-sabayon
        savedefault


as you can see, safe mode have things like vga=normal or nox or gentoo=nox or acpi=off or ide=nodma or any combinations like this blablabla ...
;-D

Re: "file not found" during boot

PostPosted: Thu Nov 05, 2009 12:53
by Zunden
everything is working again just like normal.... it looks like all i had to do was change the lines that said:

kernel-genkernel-x86-2.6.29-sabayon

to

kernel-genkernel-x86-2.6.31-sabayon

thank you all for your help.... i probably never would have noticed that otherwise...