"file not found" during boot [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

"file not found" during boot [Solved]

Postby Zunden » Thu Nov 05, 2009 10:12

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?
Last edited by Zunden on Thu Nov 05, 2009 12:55, edited 1 time in total.
Zunden
Baby Hen
 
Posts: 9
Joined: Tue Jul 14, 2009 0:12

Re: "file not found" during boot

Postby crisandbea » Thu Nov 05, 2009 10:23

Can you post complete error.... ???
crisandbea
Old Dear Hen
 
Posts: 651
Joined: Tue Feb 12, 2008 11:36
Location: Bosco(SA)

Re: "file not found" during boot

Postby joeoden » Thu Nov 05, 2009 10:27

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)
Last edited by joeoden on Thu Nov 05, 2009 12:29, edited 1 time in total.
Desktop ASUS M2N-MX SE Plus, AMD 64 X2 Dual Core 5200, 4 Gb RAM, GeForce 9500 1GB
Notebook HP CQ61-311AX, AMD CPU M320, 4 Gb RAM, Radeon HD 4300 512 MB
Wireless AR9285, Audio ATI SBx00 (IDT 92hd75B2x5)
Some mistakes are too much fun to only make once!
joeoden
Old Dear Hen
 
Posts: 477
Joined: Sun Mar 15, 2009 10:35
Location: Back in the 'swamp land' Moe, Australia 38°10′20″S 146°16′04″E

Re: "file not found" during boot

Postby micia » Thu Nov 05, 2009 11:22

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
micia
Sagely Hen
 
Posts: 2718
Joined: Wed Nov 26, 2008 16:41

Re: "file not found" during boot

Postby totedati » Thu Nov 05, 2009 11:28

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!?
linux is free, the expertise to harness it is not!
you don't make so much money selling open source software!
You make MORE money USING it, just like google!
linux registered user #352479
totedati
Technological Hen
 
Posts: 417
Joined: Thu Jan 11, 2007 0:24
Location: Sibiu, Romania

Re: "file not found" during boot

Postby totedati » Thu Nov 05, 2009 11:31

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 ....
Last edited by totedati on Thu Nov 05, 2009 11:36, edited 1 time in total.
linux is free, the expertise to harness it is not!
you don't make so much money selling open source software!
You make MORE money USING it, just like google!
linux registered user #352479
totedati
Technological Hen
 
Posts: 417
Joined: Thu Jan 11, 2007 0:24
Location: Sibiu, Romania

Re: "file not found" during boot

Postby Zunden » Thu Nov 05, 2009 11:34

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....
Zunden
Baby Hen
 
Posts: 9
Joined: Tue Jul 14, 2009 0:12

Re: "file not found" during boot

Postby crisandbea » Thu Nov 05, 2009 11:36

crisandbea
Old Dear Hen
 
Posts: 651
Joined: Tue Feb 12, 2008 11:36
Location: Bosco(SA)

Re: "file not found" during boot

Postby totedati » Thu Nov 05, 2009 11:40

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
linux is free, the expertise to harness it is not!
you don't make so much money selling open source software!
You make MORE money USING it, just like google!
linux registered user #352479
totedati
Technological Hen
 
Posts: 417
Joined: Thu Jan 11, 2007 0:24
Location: Sibiu, Romania

Re: "file not found" during boot

Postby Zunden » Thu Nov 05, 2009 12:53

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...
Zunden
Baby Hen
 
Posts: 9
Joined: Tue Jul 14, 2009 0:12

Next

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 7 guests

cron