* [gentoo-user] grub boot problem @ 2008-07-05 23:04 Matthew R. Lee 2008-07-05 23:15 ` Mick 2008-07-06 13:49 ` Neil Bothwick 0 siblings, 2 replies; 20+ messages in thread From: Matthew R. Lee @ 2008-07-05 23:04 UTC (permalink / raw To: gentoo-user I've just compiled a new kernel, but when I reboot grub will not load the new kernel. I get error 15 (file not found). But the file is there. Yes grub is install properly and yes the boot partition was mounted when I copied the new kernel across and changed the grub.conf. What's really confusing me is there's no syntax error in the grub.conf that I can see, and the first kernel on the list boots fine. Anyone got any cluse as to why grub can't see the second kernel? [grub.conf] default 0 timeout 30 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title=Gentoo 2.6.22-r2 root (hd0,0) kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 video=vesafb:mtrr,ywrap,1280x800-24@70 title=Gentoo 2.6.24-r8 root (hd0,0) kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 video=vesafb:mtrr,ywrap,1280x800-24@70 -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dr. Matthew R. Lee Instituto Biologia Marina 'Jurgen Winter' Universidad Austral de Chile Campus Isla Teja Valdivia matt@matthewlee.org URL: meiochile.matthewlee.org %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-05 23:04 [gentoo-user] grub boot problem Matthew R. Lee @ 2008-07-05 23:15 ` Mick 2008-07-05 23:38 ` Matthew R. Lee 2008-07-06 13:49 ` Neil Bothwick 1 sibling, 1 reply; 20+ messages in thread From: Mick @ 2008-07-05 23:15 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1006 bytes --] On Sunday 06 July 2008, Matthew R. Lee wrote: > I've just compiled a new kernel, but when I reboot grub will not load the > new kernel. I get error 15 (file not found). But the file is there. > Yes grub is install properly and yes the boot partition was mounted when I > copied the new kernel across and changed the grub.conf. What's really > confusing me is there's no syntax error in the grub.conf that I can see, > and the first kernel on the list boots fine. Anyone got any cluse as to > why grub can't see the second kernel? > > [grub.conf] > default 0 > > timeout 30 > > splashimage=(hd0,0)/boot/grub/splash.xpm.gz > > title=Gentoo 2.6.22-r2 > > root (hd0,0) > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > video=vesafb:mtrr,ywrap,1280x800-24@70 > > title=Gentoo 2.6.24-r8 > > root (hd0,0) > kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 > video=vesafb:mtrr,ywrap,1280x800-24@70 Could you please show us: $ mount and # ls -la /boot -- Regards, Mick [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-05 23:15 ` Mick @ 2008-07-05 23:38 ` Matthew R. Lee 2008-07-05 23:47 ` Matt Harrison 2008-07-06 0:27 ` Volker Armin Hemmann 0 siblings, 2 replies; 20+ messages in thread From: Matthew R. Lee @ 2008-07-05 23:38 UTC (permalink / raw To: gentoo-user On Saturday 05 July 2008 19:15:05 Mick wrote: > On Sunday 06 July 2008, Matthew R. Lee wrote: > > I've just compiled a new kernel, but when I reboot grub will not load the > > new kernel. I get error 15 (file not found). But the file is there. > > Yes grub is install properly and yes the boot partition was mounted when > > I copied the new kernel across and changed the grub.conf. What's really > > confusing me is there's no syntax error in the grub.conf that I can see, > > and the first kernel on the list boots fine. Anyone got any cluse as to > > why grub can't see the second kernel? > > > > [grub.conf] > > default 0 > > > > timeout 30 > > > > splashimage=(hd0,0)/boot/grub/splash.xpm.gz > > > > title=Gentoo 2.6.22-r2 > > > > root (hd0,0) > > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > video=vesafb:mtrr,ywrap,1280x800-24@70 > > > > title=Gentoo 2.6.24-r8 > > > > root (hd0,0) > > kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 > > video=vesafb:mtrr,ywrap,1280x800-24@70 > > Could you please show us: > > $ mount > > and > > # ls -la /boot /dev/sda3 on / type ext3 (rw,noatime) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw,nosuid) devpts on /dev/pts type devpts (rw,nosuid,noexec) shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) /dev/sda1 on /boot type ext2 (rw) total 17256 drwxr-xr-x 5 root root 1024 Jul 5 18:28 . drwxr-xr-x 21 root root 4096 Dec 29 2007 .. drwxr-xr-x 4 root root 1024 Aug 16 2007 boot -rw-r--r-- 1 root root 37395 Dec 25 2006 config-2.6.18-r5 -rw-r--r-- 1 root root 35286 Dec 28 2006 config-2.6.18-r6 -rw-r--r-- 1 root root 29907 Jul 19 2007 config-2.6.21-r4 -rw-r--r-- 1 root root 39449 Aug 4 2007 config-2.6.22-r2 -rw-r--r-- 1 root root 44583 Jul 5 18:48 config-2.6.24-r8 -rw-r--r-- 1 root root 44541 Jun 23 18:25 config-2.6.25-r5 drwxr-xr-x 2 root root 1024 Jun 23 17:02 grub -rw-r--r-- 1 root root 486761 Oct 7 2006 initrd.img-2.6.17-sata -rw-r--r-- 1 root root 1637016 Dec 25 2006 kernel-2.6.18-r5 -rw-r--r-- 1 root root 1606118 Dec 28 2006 kernel-2.6.18-r6 -rw-r--r-- 1 root root 1916280 Jul 19 2007 kernel-2.6.21-r4 -rw-r--r-- 1 root root 1740624 Aug 4 2007 kernel-2.6.22-r2 -rw-r--r-- 1 root root 1847000 Jul 5 18:48 kernel-2.6.24-r8 -rw-r--r-- 1 root root 2952220 Jun 23 18:24 kernel-2.6.25-r5 drwx------ 2 root root 12288 Dec 27 2007 lost+found -rw-r--r-- 1 root root 738926 Dec 25 2006 system.map-2.6.18-r5 -rw-r--r-- 1 root root 712206 Dec 28 2006 system.map-2.6.18-r6 -rw-r--r-- 1 root root 813409 Jul 19 2007 system.map-2.6.21-r4 -rw-r--r-- 1 root root 810321 Aug 4 2007 system.map-2.6.22-r2 -rw-r--r-- 1 root root 870491 Jul 5 18:48 system.map-2.6.24-r8 -rw-r--r-- 1 root root 1183038 Jun 23 18:25 system.map-2.6.25-r5 I should probably give /boot a clean, but could this be the problem? -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dr. Matthew R. Lee Instituto Biologia Marina 'Jurgen Winter' Universidad Austral de Chile Campus Isla Teja Valdivia matt@matthewlee.org URL: meiochile.matthewlee.org %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-05 23:38 ` Matthew R. Lee @ 2008-07-05 23:47 ` Matt Harrison 2008-07-05 23:59 ` Dale 2008-07-06 0:13 ` Matthew R. Lee 2008-07-06 0:27 ` Volker Armin Hemmann 1 sibling, 2 replies; 20+ messages in thread From: Matt Harrison @ 2008-07-05 23:47 UTC (permalink / raw To: gentoo-user Matthew R. Lee wrote: > On Saturday 05 July 2008 19:15:05 Mick wrote: >> On Sunday 06 July 2008, Matthew R. Lee wrote: >>> I've just compiled a new kernel, but when I reboot grub will not load the >>> new kernel. I get error 15 (file not found). But the file is there. >>> Yes grub is install properly and yes the boot partition was mounted when >>> I copied the new kernel across and changed the grub.conf. What's really >>> confusing me is there's no syntax error in the grub.conf that I can see, >>> and the first kernel on the list boots fine. Anyone got any cluse as to >>> why grub can't see the second kernel? >>> >>> [grub.conf] >>> default 0 >>> >>> timeout 30 >>> >>> splashimage=(hd0,0)/boot/grub/splash.xpm.gz >>> >>> title=Gentoo 2.6.22-r2 >>> >>> root (hd0,0) >>> kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 >>> video=vesafb:mtrr,ywrap,1280x800-24@70 >>> >>> title=Gentoo 2.6.24-r8 >>> >>> root (hd0,0) >>> kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 >>> video=vesafb:mtrr,ywrap,1280x800-24@70 >> Could you please show us: >> >> $ mount >> >> and >> >> # ls -la /boot > > /dev/sda3 on / type ext3 (rw,noatime) > proc on /proc type proc (rw) > sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) > udev on /dev type tmpfs (rw,nosuid) > devpts on /dev/pts type devpts (rw,nosuid,noexec) > shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) > usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) > /dev/sda1 on /boot type ext2 (rw) > > total 17256 > drwxr-xr-x 5 root root 1024 Jul 5 18:28 . > drwxr-xr-x 21 root root 4096 Dec 29 2007 .. > drwxr-xr-x 4 root root 1024 Aug 16 2007 boot > -rw-r--r-- 1 root root 37395 Dec 25 2006 config-2.6.18-r5 > -rw-r--r-- 1 root root 35286 Dec 28 2006 config-2.6.18-r6 > -rw-r--r-- 1 root root 29907 Jul 19 2007 config-2.6.21-r4 > -rw-r--r-- 1 root root 39449 Aug 4 2007 config-2.6.22-r2 > -rw-r--r-- 1 root root 44583 Jul 5 18:48 config-2.6.24-r8 > -rw-r--r-- 1 root root 44541 Jun 23 18:25 config-2.6.25-r5 > drwxr-xr-x 2 root root 1024 Jun 23 17:02 grub > -rw-r--r-- 1 root root 486761 Oct 7 2006 initrd.img-2.6.17-sata > -rw-r--r-- 1 root root 1637016 Dec 25 2006 kernel-2.6.18-r5 > -rw-r--r-- 1 root root 1606118 Dec 28 2006 kernel-2.6.18-r6 > -rw-r--r-- 1 root root 1916280 Jul 19 2007 kernel-2.6.21-r4 > -rw-r--r-- 1 root root 1740624 Aug 4 2007 kernel-2.6.22-r2 > -rw-r--r-- 1 root root 1847000 Jul 5 18:48 kernel-2.6.24-r8 > -rw-r--r-- 1 root root 2952220 Jun 23 18:24 kernel-2.6.25-r5 > drwx------ 2 root root 12288 Dec 27 2007 lost+found > -rw-r--r-- 1 root root 738926 Dec 25 2006 system.map-2.6.18-r5 > -rw-r--r-- 1 root root 712206 Dec 28 2006 system.map-2.6.18-r6 > -rw-r--r-- 1 root root 813409 Jul 19 2007 system.map-2.6.21-r4 > -rw-r--r-- 1 root root 810321 Aug 4 2007 system.map-2.6.22-r2 > -rw-r--r-- 1 root root 870491 Jul 5 18:48 system.map-2.6.24-r8 > -rw-r--r-- 1 root root 1183038 Jun 23 18:25 system.map-2.6.25-r5 > > I should probably give /boot a clean, but could this be the problem? > According to your grub.conf your default is the top entry, but the kernel image for that doesn't exist in your boot partition. kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 should probably be kernel /boot/kernel-2.6.22-r2 root=/dev/sda3 Thats if 2.6.22-r2 is the kernel your trying to boot. HTH Matt -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-05 23:47 ` Matt Harrison @ 2008-07-05 23:59 ` Dale 2008-07-06 0:13 ` Matthew R. Lee 1 sibling, 0 replies; 20+ messages in thread From: Dale @ 2008-07-05 23:59 UTC (permalink / raw To: gentoo-user Matt Harrison wrote: > Matthew R. Lee wrote: >> On Saturday 05 July 2008 19:15:05 Mick wrote: >>> On Sunday 06 July 2008, Matthew R. Lee wrote: >>>> I've just compiled a new kernel, but when I reboot grub will not >>>> load the >>>> new kernel. I get error 15 (file not found). But the file is there. >>>> Yes grub is install properly and yes the boot partition was mounted >>>> when >>>> I copied the new kernel across and changed the grub.conf. What's >>>> really >>>> confusing me is there's no syntax error in the grub.conf that I can >>>> see, >>>> and the first kernel on the list boots fine. Anyone got any cluse >>>> as to >>>> why grub can't see the second kernel? >>>> >>>> [grub.conf] >>>> default 0 >>>> >>>> timeout 30 >>>> >>>> splashimage=(hd0,0)/boot/grub/splash.xpm.gz >>>> >>>> title=Gentoo 2.6.22-r2 >>>> >>>> root (hd0,0) >>>> kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 >>>> video=vesafb:mtrr,ywrap,1280x800-24@70 >>>> >>>> title=Gentoo 2.6.24-r8 >>>> >>>> root (hd0,0) >>>> kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 >>>> video=vesafb:mtrr,ywrap,1280x800-24@70 >>> Could you please show us: >>> >>> $ mount >>> >>> and >>> >>> # ls -la /boot >> >> /dev/sda3 on / type ext3 (rw,noatime) >> proc on /proc type proc (rw) >> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) >> udev on /dev type tmpfs (rw,nosuid) >> devpts on /dev/pts type devpts (rw,nosuid,noexec) >> shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) >> usbfs on /proc/bus/usb type usbfs >> (rw,noexec,nosuid,devmode=0664,devgid=85) >> /dev/sda1 on /boot type ext2 (rw) >> >> total 17256 >> drwxr-xr-x 5 root root 1024 Jul 5 18:28 . >> drwxr-xr-x 21 root root 4096 Dec 29 2007 .. >> drwxr-xr-x 4 root root 1024 Aug 16 2007 boot >> -rw-r--r-- 1 root root 37395 Dec 25 2006 config-2.6.18-r5 >> -rw-r--r-- 1 root root 35286 Dec 28 2006 config-2.6.18-r6 >> -rw-r--r-- 1 root root 29907 Jul 19 2007 config-2.6.21-r4 >> -rw-r--r-- 1 root root 39449 Aug 4 2007 config-2.6.22-r2 >> -rw-r--r-- 1 root root 44583 Jul 5 18:48 config-2.6.24-r8 >> -rw-r--r-- 1 root root 44541 Jun 23 18:25 config-2.6.25-r5 >> drwxr-xr-x 2 root root 1024 Jun 23 17:02 grub >> -rw-r--r-- 1 root root 486761 Oct 7 2006 initrd.img-2.6.17-sata >> -rw-r--r-- 1 root root 1637016 Dec 25 2006 kernel-2.6.18-r5 >> -rw-r--r-- 1 root root 1606118 Dec 28 2006 kernel-2.6.18-r6 >> -rw-r--r-- 1 root root 1916280 Jul 19 2007 kernel-2.6.21-r4 >> -rw-r--r-- 1 root root 1740624 Aug 4 2007 kernel-2.6.22-r2 >> -rw-r--r-- 1 root root 1847000 Jul 5 18:48 kernel-2.6.24-r8 >> -rw-r--r-- 1 root root 2952220 Jun 23 18:24 kernel-2.6.25-r5 >> drwx------ 2 root root 12288 Dec 27 2007 lost+found >> -rw-r--r-- 1 root root 738926 Dec 25 2006 system.map-2.6.18-r5 >> -rw-r--r-- 1 root root 712206 Dec 28 2006 system.map-2.6.18-r6 >> -rw-r--r-- 1 root root 813409 Jul 19 2007 system.map-2.6.21-r4 >> -rw-r--r-- 1 root root 810321 Aug 4 2007 system.map-2.6.22-r2 >> -rw-r--r-- 1 root root 870491 Jul 5 18:48 system.map-2.6.24-r8 >> -rw-r--r-- 1 root root 1183038 Jun 23 18:25 system.map-2.6.25-r5 >> >> I should probably give /boot a clean, but could this be the problem? >> > > According to your grub.conf your default is the top entry, but the > kernel image for that doesn't exist in your boot partition. > > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > should probably be > > kernel /boot/kernel-2.6.22-r2 root=/dev/sda3 > > Thats if 2.6.22-r2 is the kernel your trying to boot. > > HTH > > Matt Hi, Another thing you can try is tab completion in the grub menu. Just hit the "e" key twice and let grub help you with what kernels it can see. Hope that helps. Dale :-) :-) -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-05 23:47 ` Matt Harrison 2008-07-05 23:59 ` Dale @ 2008-07-06 0:13 ` Matthew R. Lee 2008-07-06 0:33 ` Matthew R. Lee 1 sibling, 1 reply; 20+ messages in thread From: Matthew R. Lee @ 2008-07-06 0:13 UTC (permalink / raw To: gentoo-user On Saturday 05 July 2008 19:47:10 Matt Harrison wrote: > Matthew R. Lee wrote: > > On Saturday 05 July 2008 19:15:05 Mick wrote: > >> On Sunday 06 July 2008, Matthew R. Lee wrote: > >>> I've just compiled a new kernel, but when I reboot grub will not load > >>> the new kernel. I get error 15 (file not found). But the file is there. > >>> Yes grub is install properly and yes the boot partition was mounted > >>> when I copied the new kernel across and changed the grub.conf. What's > >>> really confusing me is there's no syntax error in the grub.conf that I > >>> can see, and the first kernel on the list boots fine. Anyone got any > >>> cluse as to why grub can't see the second kernel? > >>> > >>> [grub.conf] > >>> default 0 > >>> > >>> timeout 30 > >>> > >>> splashimage=(hd0,0)/boot/grub/splash.xpm.gz > >>> > >>> title=Gentoo 2.6.22-r2 > >>> > >>> root (hd0,0) > >>> kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > >>> video=vesafb:mtrr,ywrap,1280x800-24@70 > >>> > >>> title=Gentoo 2.6.24-r8 > >>> > >>> root (hd0,0) > >>> kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 > >>> video=vesafb:mtrr,ywrap,1280x800-24@70 > >> > >> Could you please show us: > >> > >> $ mount > >> > >> and > >> > >> # ls -la /boot > > > > /dev/sda3 on / type ext3 (rw,noatime) > > proc on /proc type proc (rw) > > sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) > > udev on /dev type tmpfs (rw,nosuid) > > devpts on /dev/pts type devpts (rw,nosuid,noexec) > > shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) > > usbfs on /proc/bus/usb type usbfs > > (rw,noexec,nosuid,devmode=0664,devgid=85) /dev/sda1 on /boot type ext2 > > (rw) > > > > total 17256 > > drwxr-xr-x 5 root root 1024 Jul 5 18:28 . > > drwxr-xr-x 21 root root 4096 Dec 29 2007 .. > > drwxr-xr-x 4 root root 1024 Aug 16 2007 boot > > -rw-r--r-- 1 root root 37395 Dec 25 2006 config-2.6.18-r5 > > -rw-r--r-- 1 root root 35286 Dec 28 2006 config-2.6.18-r6 > > -rw-r--r-- 1 root root 29907 Jul 19 2007 config-2.6.21-r4 > > -rw-r--r-- 1 root root 39449 Aug 4 2007 config-2.6.22-r2 > > -rw-r--r-- 1 root root 44583 Jul 5 18:48 config-2.6.24-r8 > > -rw-r--r-- 1 root root 44541 Jun 23 18:25 config-2.6.25-r5 > > drwxr-xr-x 2 root root 1024 Jun 23 17:02 grub > > -rw-r--r-- 1 root root 486761 Oct 7 2006 initrd.img-2.6.17-sata > > -rw-r--r-- 1 root root 1637016 Dec 25 2006 kernel-2.6.18-r5 > > -rw-r--r-- 1 root root 1606118 Dec 28 2006 kernel-2.6.18-r6 > > -rw-r--r-- 1 root root 1916280 Jul 19 2007 kernel-2.6.21-r4 > > -rw-r--r-- 1 root root 1740624 Aug 4 2007 kernel-2.6.22-r2 > > -rw-r--r-- 1 root root 1847000 Jul 5 18:48 kernel-2.6.24-r8 > > -rw-r--r-- 1 root root 2952220 Jun 23 18:24 kernel-2.6.25-r5 > > drwx------ 2 root root 12288 Dec 27 2007 lost+found > > -rw-r--r-- 1 root root 738926 Dec 25 2006 system.map-2.6.18-r5 > > -rw-r--r-- 1 root root 712206 Dec 28 2006 system.map-2.6.18-r6 > > -rw-r--r-- 1 root root 813409 Jul 19 2007 system.map-2.6.21-r4 > > -rw-r--r-- 1 root root 810321 Aug 4 2007 system.map-2.6.22-r2 > > -rw-r--r-- 1 root root 870491 Jul 5 18:48 system.map-2.6.24-r8 > > -rw-r--r-- 1 root root 1183038 Jun 23 18:25 system.map-2.6.25-r5 > > > > I should probably give /boot a clean, but could this be the problem? > > According to your grub.conf your default is the top entry, but the > kernel image for that doesn't exist in your boot partition. > > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > should probably be > > kernel /boot/kernel-2.6.22-r2 root=/dev/sda3 > > Thats if 2.6.22-r2 is the kernel your trying to boot. > > HTH > > Matt This is wierd, I hadn't noticed that, but that's not causing the problem. I'm running the 2.6.22-r2 kernel now, that's the one that boots, the 2.6.24-r8 is the one grub can't find. Matt -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dr. Matthew R. Lee Instituto Biologia Marina 'Jurgen Winter' Universidad Austral de Chile Campus Isla Teja Valdivia matt@matthewlee.org URL: meiochile.matthewlee.org %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 0:13 ` Matthew R. Lee @ 2008-07-06 0:33 ` Matthew R. Lee 2008-07-06 7:05 ` Dirk Heinrichs 0 siblings, 1 reply; 20+ messages in thread From: Matthew R. Lee @ 2008-07-06 0:33 UTC (permalink / raw To: gentoo-user On Saturday 05 July 2008 20:13:20 Matthew R. Lee wrote: > On Saturday 05 July 2008 19:47:10 Matt Harrison wrote: > > Matthew R. Lee wrote: > > > On Saturday 05 July 2008 19:15:05 Mick wrote: > > >> On Sunday 06 July 2008, Matthew R. Lee wrote: > > >>> I've just compiled a new kernel, but when I reboot grub will not load > > >>> the new kernel. I get error 15 (file not found). But the file is > > >>> there. Yes grub is install properly and yes the boot partition was > > >>> mounted when I copied the new kernel across and changed the > > >>> grub.conf. What's really confusing me is there's no syntax error in > > >>> the grub.conf that I can see, and the first kernel on the list boots > > >>> fine. Anyone got any cluse as to why grub can't see the second > > >>> kernel? > > >>> > > >>> [grub.conf] > > >>> default 0 > > >>> > > >>> timeout 30 > > >>> > > >>> splashimage=(hd0,0)/boot/grub/splash.xpm.gz > > >>> > > >>> title=Gentoo 2.6.22-r2 > > >>> > > >>> root (hd0,0) > > >>> kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > >>> video=vesafb:mtrr,ywrap,1280x800-24@70 > > >>> > > >>> title=Gentoo 2.6.24-r8 > > >>> > > >>> root (hd0,0) > > >>> kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 > > >>> video=vesafb:mtrr,ywrap,1280x800-24@70 > > >> > > >> Could you please show us: > > >> > > >> $ mount > > >> > > >> and > > >> > > >> # ls -la /boot > > > > > > /dev/sda3 on / type ext3 (rw,noatime) > > > proc on /proc type proc (rw) > > > sysfs on /sys type sysfs (rw,nosuid,nodev,noexec) > > > udev on /dev type tmpfs (rw,nosuid) > > > devpts on /dev/pts type devpts (rw,nosuid,noexec) > > > shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev) > > > usbfs on /proc/bus/usb type usbfs > > > (rw,noexec,nosuid,devmode=0664,devgid=85) /dev/sda1 on /boot type ext2 > > > (rw) > > > > > > total 17256 > > > drwxr-xr-x 5 root root 1024 Jul 5 18:28 . > > > drwxr-xr-x 21 root root 4096 Dec 29 2007 .. > > > drwxr-xr-x 4 root root 1024 Aug 16 2007 boot > > > -rw-r--r-- 1 root root 37395 Dec 25 2006 config-2.6.18-r5 > > > -rw-r--r-- 1 root root 35286 Dec 28 2006 config-2.6.18-r6 > > > -rw-r--r-- 1 root root 29907 Jul 19 2007 config-2.6.21-r4 > > > -rw-r--r-- 1 root root 39449 Aug 4 2007 config-2.6.22-r2 > > > -rw-r--r-- 1 root root 44583 Jul 5 18:48 config-2.6.24-r8 > > > -rw-r--r-- 1 root root 44541 Jun 23 18:25 config-2.6.25-r5 > > > drwxr-xr-x 2 root root 1024 Jun 23 17:02 grub > > > -rw-r--r-- 1 root root 486761 Oct 7 2006 initrd.img-2.6.17-sata > > > -rw-r--r-- 1 root root 1637016 Dec 25 2006 kernel-2.6.18-r5 > > > -rw-r--r-- 1 root root 1606118 Dec 28 2006 kernel-2.6.18-r6 > > > -rw-r--r-- 1 root root 1916280 Jul 19 2007 kernel-2.6.21-r4 > > > -rw-r--r-- 1 root root 1740624 Aug 4 2007 kernel-2.6.22-r2 > > > -rw-r--r-- 1 root root 1847000 Jul 5 18:48 kernel-2.6.24-r8 > > > -rw-r--r-- 1 root root 2952220 Jun 23 18:24 kernel-2.6.25-r5 > > > drwx------ 2 root root 12288 Dec 27 2007 lost+found > > > -rw-r--r-- 1 root root 738926 Dec 25 2006 system.map-2.6.18-r5 > > > -rw-r--r-- 1 root root 712206 Dec 28 2006 system.map-2.6.18-r6 > > > -rw-r--r-- 1 root root 813409 Jul 19 2007 system.map-2.6.21-r4 > > > -rw-r--r-- 1 root root 810321 Aug 4 2007 system.map-2.6.22-r2 > > > -rw-r--r-- 1 root root 870491 Jul 5 18:48 system.map-2.6.24-r8 > > > -rw-r--r-- 1 root root 1183038 Jun 23 18:25 system.map-2.6.25-r5 > > > > > > I should probably give /boot a clean, but could this be the problem? > > > > According to your grub.conf your default is the top entry, but the > > kernel image for that doesn't exist in your boot partition. > > > > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > > > should probably be > > > > kernel /boot/kernel-2.6.22-r2 root=/dev/sda3 > > > > Thats if 2.6.22-r2 is the kernel your trying to boot. > > > > HTH > > > > Matt > > This is wierd, I hadn't noticed that, but that's not causing the problem. > I'm running the 2.6.22-r2 kernel now, that's the one that boots, the > 2.6.24-r8 is the one grub can't find. > Matt Ok, I figured out the problem, but no why it's happened. If you look at the output of ls -la /boot there is another folder /boot and within this a symlink /boot (./) By copying the kernel to this folder and modifiying the grub.conf in the associated /grub folder the the new kernel boots. Question is how did I come to have a cascade of boot folders and how do I get things back the way they should be? Matt -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Dr. Matthew R. Lee Instituto Biologia Marina 'Jurgen Winter' Universidad Austral de Chile Campus Isla Teja Valdivia matt@matthewlee.org URL: meiochile.matthewlee.org %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 0:33 ` Matthew R. Lee @ 2008-07-06 7:05 ` Dirk Heinrichs 0 siblings, 0 replies; 20+ messages in thread From: Dirk Heinrichs @ 2008-07-06 7:05 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1703 bytes --] Am Sonntag, 6. Juli 2008 schrieb Matthew R. Lee: > > > >>> [grub.conf] > > > >>> default 0 > > > >>> > > > >>> timeout 30 > > > >>> > > > >>> splashimage=(hd0,0)/boot/grub/splash.xpm.gz > > > >>> > > > >>> title=Gentoo 2.6.22-r2 > > > >>> > > > >>> root (hd0,0) > > > >>> kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > > >>> video=vesafb:mtrr,ywrap,1280x800-24@70 > > > >>> > > > >>> title=Gentoo 2.6.24-r8 > > > >>> > > > >>> root (hd0,0) > > > >>> kernel /boot/kernel-2.6.24-r8 root=/dev/sda3 > > > >>> video=vesafb:mtrr,ywrap,1280x800-24@70 > > Ok, > I figured out the problem, but no why it's happened. If you look at the > output of ls -la /boot there is another folder /boot and within this a > symlink /boot (./) By copying the kernel to this folder and modifiying the > grub.conf in the associated /grub folder the the new kernel boots. > Question is how did I come to have a cascade of boot folders and how do I > get things back the way they should be? Don't know how you got there, but to get things back to normal you should remove /boot/boot and make it a symlink to /boot: cd /boot rm -rf boot ln -s . boot I would also revise grub.conf a bit: default 0 timeout 30 root (hd0,0) splashimage=/grub/splash.xpm.gz title=Gentoo 2.6.22-r2 kernel /kernel-2.6.22-r2 root=/dev/sda3 video=vesafb:mtrr,ywrap,1280x800-24@70 <- On one line, of course title=Gentoo 2.6.24-r8 kernel /kernel-2.6.24-r8 root=/dev/sda3 video=vesafb:mtrr,ywrap,1280x800-24@70 Optionally, you could also reinstall grub to your MBR, by running grub (or was it grub-shell?) and issue the following commands: root (hd0,0) setup (hd0) HTH... Dirk [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-05 23:38 ` Matthew R. Lee 2008-07-05 23:47 ` Matt Harrison @ 2008-07-06 0:27 ` Volker Armin Hemmann 1 sibling, 0 replies; 20+ messages in thread From: Volker Armin Hemmann @ 2008-07-06 0:27 UTC (permalink / raw To: gentoo-user one question: why don't you use 'make install' and have a 'vmlinuz' and 'vmlinuz.old' entry in menu.lst/grub.conf? that solves/prevents lots of errors. -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-05 23:04 [gentoo-user] grub boot problem Matthew R. Lee 2008-07-05 23:15 ` Mick @ 2008-07-06 13:49 ` Neil Bothwick 2008-07-06 14:23 ` Volker Armin Hemmann 1 sibling, 1 reply; 20+ messages in thread From: Neil Bothwick @ 2008-07-06 13:49 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 413 bytes --] On Sat, 5 Jul 2008 19:04:08 -0400, Matthew R. Lee wrote: > root (hd0,0) > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > video=vesafb:mtrr,ywrap,1280x800-24@70 If hd0,0 is your boot partition, you shouldn't have /boot in the kernel line, just kernel /kernel-2.6.22-r2-2 root=/dev/sda3 In GRUB, all paths are relative to the root. -- Neil Bothwick Not tonight dear, I have a Modem!!! [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 13:49 ` Neil Bothwick @ 2008-07-06 14:23 ` Volker Armin Hemmann 2008-07-06 14:41 ` Mick 2008-07-06 14:47 ` Dirk Heinrichs 0 siblings, 2 replies; 20+ messages in thread From: Volker Armin Hemmann @ 2008-07-06 14:23 UTC (permalink / raw To: gentoo-user On Sonntag, 6. Juli 2008, Neil Bothwick wrote: > On Sat, 5 Jul 2008 19:04:08 -0400, Matthew R. Lee wrote: > > root (hd0,0) > > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > video=vesafb:mtrr,ywrap,1280x800-24@70 > > If hd0,0 is your boot partition, you shouldn't have /boot in the kernel > line, just > > kernel /kernel-2.6.22-r2-2 root=/dev/sda3 > > In GRUB, all paths are relative to the root. really? I boot this for years, after nothing else worked: title=2.6 root (hd0,0) kernel (hd0,0)/boot/vmlinuz root=/dev/sda3 nmi_watchdog=0 -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 14:23 ` Volker Armin Hemmann @ 2008-07-06 14:41 ` Mick 2008-07-06 14:47 ` Dirk Heinrichs 2008-07-06 15:12 ` Volker Armin Hemmann 2008-07-06 14:47 ` Dirk Heinrichs 1 sibling, 2 replies; 20+ messages in thread From: Mick @ 2008-07-06 14:41 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 756 bytes --] On Sunday 06 July 2008, Volker Armin Hemmann wrote: > On Sonntag, 6. Juli 2008, Neil Bothwick wrote: > > On Sat, 5 Jul 2008 19:04:08 -0400, Matthew R. Lee wrote: > > > root (hd0,0) > > > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > > video=vesafb:mtrr,ywrap,1280x800-24@70 > > > > If hd0,0 is your boot partition, you shouldn't have /boot in the kernel > > line, just > > > > kernel /kernel-2.6.22-r2-2 root=/dev/sda3 > > > > In GRUB, all paths are relative to the root. > > really? I boot this for years, after nothing else worked: > > title=2.6 > root (hd0,0) > kernel (hd0,0)/boot/vmlinuz root=/dev/sda3 nmi_watchdog=0 Hmm, have you this in place? lrwxrwxrwx 1 root root 1 Mar 26 2006 boot -> . -- Regards, Mick [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 14:41 ` Mick @ 2008-07-06 14:47 ` Dirk Heinrichs 2008-07-06 15:08 ` Alan McKinnon 2008-07-06 15:12 ` Volker Armin Hemmann 1 sibling, 1 reply; 20+ messages in thread From: Dirk Heinrichs @ 2008-07-06 14:47 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 174 bytes --] Am Sonntag, 6. Juli 2008 schrieb Mick: > Hmm, have you this in place? > > lrwxrwxrwx 1 root root 1 Mar 26 2006 boot -> . I still wonder why it's needed. Bye... Dirk [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 14:47 ` Dirk Heinrichs @ 2008-07-06 15:08 ` Alan McKinnon 0 siblings, 0 replies; 20+ messages in thread From: Alan McKinnon @ 2008-07-06 15:08 UTC (permalink / raw To: gentoo-user On Sunday 06 July 2008, Dirk Heinrichs wrote: > Am Sonntag, 6. Juli 2008 schrieb Mick: > > Hmm, have you this in place? > > > > lrwxrwxrwx 1 root root 1 Mar 26 2006 boot -> . > > I still wonder why it's needed. So that people who can't wrap their brains around how grub works (i.e. it is NOT linux) can get the thing to work. So kernel /boot/vmlinuz root=... will boot, as well as kernel /vmlinuz root=... -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 14:41 ` Mick 2008-07-06 14:47 ` Dirk Heinrichs @ 2008-07-06 15:12 ` Volker Armin Hemmann 1 sibling, 0 replies; 20+ messages in thread From: Volker Armin Hemmann @ 2008-07-06 15:12 UTC (permalink / raw To: gentoo-user On Sonntag, 6. Juli 2008, Mick wrote: > On Sunday 06 July 2008, Volker Armin Hemmann wrote: > > On Sonntag, 6. Juli 2008, Neil Bothwick wrote: > > > On Sat, 5 Jul 2008 19:04:08 -0400, Matthew R. Lee wrote: > > > > root (hd0,0) > > > > kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 > > > > video=vesafb:mtrr,ywrap,1280x800-24@70 > > > > > > If hd0,0 is your boot partition, you shouldn't have /boot in the kernel > > > line, just > > > > > > kernel /kernel-2.6.22-r2-2 root=/dev/sda3 > > > > > > In GRUB, all paths are relative to the root. > > > > really? I boot this for years, after nothing else worked: > > > > title=2.6 > > root (hd0,0) > > kernel (hd0,0)/boot/vmlinuz root=/dev/sda3 nmi_watchdog=0 > > Hmm, have you this in place? > > lrwxrwxrwx 1 root root 1 Mar 26 2006 boot -> . yes. -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 14:23 ` Volker Armin Hemmann 2008-07-06 14:41 ` Mick @ 2008-07-06 14:47 ` Dirk Heinrichs 2008-07-06 15:12 ` Volker Armin Hemmann 1 sibling, 1 reply; 20+ messages in thread From: Dirk Heinrichs @ 2008-07-06 14:47 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 649 bytes --] Am Sonntag, 6. Juli 2008 schrieb Volker Armin Hemmann: > On Sonntag, 6. Juli 2008, Neil Bothwick wrote: > > If hd0,0 is your boot partition, you shouldn't have /boot in the kernel > > line, just > > > > kernel /kernel-2.6.22-r2-2 root=/dev/sda3 > > > > In GRUB, all paths are relative to the root. > > really? I boot this for years, after nothing else worked: > > title=2.6 > root (hd0,0) > kernel (hd0,0)/boot/vmlinuz root=/dev/sda3 nmi_watchdog=0 Hmm, you should usually be able to transform this to: root (hd0,0) title=whatever kernel /vmlinuz root=/dev/sda3 nmi_watchdog=0 What's this nmi_watchdog=0 good for (just curious)? Bye... Dirk [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 14:47 ` Dirk Heinrichs @ 2008-07-06 15:12 ` Volker Armin Hemmann 2008-07-06 16:36 ` Dirk Heinrichs 0 siblings, 1 reply; 20+ messages in thread From: Volker Armin Hemmann @ 2008-07-06 15:12 UTC (permalink / raw To: gentoo-user On Sonntag, 6. Juli 2008, Dirk Heinrichs wrote: > What's this nmi_watchdog=0 good for (just curious)? to make sure it is off ;) I once read (also a long time ago) that the nmi-watchdog could/would/does slow down disk io. -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 15:12 ` Volker Armin Hemmann @ 2008-07-06 16:36 ` Dirk Heinrichs 2008-07-06 18:13 ` Volker Armin Hemmann 0 siblings, 1 reply; 20+ messages in thread From: Dirk Heinrichs @ 2008-07-06 16:36 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 255 bytes --] Am Sonntag, 6. Juli 2008 schrieb Volker Armin Hemmann: > On Sonntag, 6. Juli 2008, Dirk Heinrichs wrote: > > What's this nmi_watchdog=0 good for (just curious)? > > to make sure it is off ;) Got me ;) So what's this nmi_watchdog good for? Bye... Dirk [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 16:36 ` Dirk Heinrichs @ 2008-07-06 18:13 ` Volker Armin Hemmann 2008-07-07 6:58 ` Dirk Heinrichs 0 siblings, 1 reply; 20+ messages in thread From: Volker Armin Hemmann @ 2008-07-06 18:13 UTC (permalink / raw To: gentoo-user On Sonntag, 6. Juli 2008, Dirk Heinrichs wrote: > Am Sonntag, 6. Juli 2008 schrieb Volker Armin Hemmann: > > On Sonntag, 6. Juli 2008, Dirk Heinrichs wrote: > > > What's this nmi_watchdog=0 good for (just curious)? > > > > to make sure it is off ;) > > Got me ;) So what's this nmi_watchdog good for? in theory it should be able to 'break' some kinds of lockups. just read this: /usr/src/linux/Documentation/nmi_watchdog.txt its a good read. -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] grub boot problem 2008-07-06 18:13 ` Volker Armin Hemmann @ 2008-07-07 6:58 ` Dirk Heinrichs 0 siblings, 0 replies; 20+ messages in thread From: Dirk Heinrichs @ 2008-07-07 6:58 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 934 bytes --] Am Sonntag, 6. Juli 2008 schrieb ext Volker Armin Hemmann: > On Sonntag, 6. Juli 2008, Dirk Heinrichs wrote: > > Am Sonntag, 6. Juli 2008 schrieb Volker Armin Hemmann: > > > On Sonntag, 6. Juli 2008, Dirk Heinrichs wrote: > > > > What's this nmi_watchdog=0 good for (just curious)? > > > > > > to make sure it is off ;) > > > > Got me ;) So what's this nmi_watchdog good for? > > in theory it should be able to 'break' some kinds of lockups. > > just read this: > /usr/src/linux/Documentation/nmi_watchdog.txt > > its a good read. Ok. Thanks for the clarification. Bye... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2008-07-07 6:59 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-07-05 23:04 [gentoo-user] grub boot problem Matthew R. Lee 2008-07-05 23:15 ` Mick 2008-07-05 23:38 ` Matthew R. Lee 2008-07-05 23:47 ` Matt Harrison 2008-07-05 23:59 ` Dale 2008-07-06 0:13 ` Matthew R. Lee 2008-07-06 0:33 ` Matthew R. Lee 2008-07-06 7:05 ` Dirk Heinrichs 2008-07-06 0:27 ` Volker Armin Hemmann 2008-07-06 13:49 ` Neil Bothwick 2008-07-06 14:23 ` Volker Armin Hemmann 2008-07-06 14:41 ` Mick 2008-07-06 14:47 ` Dirk Heinrichs 2008-07-06 15:08 ` Alan McKinnon 2008-07-06 15:12 ` Volker Armin Hemmann 2008-07-06 14:47 ` Dirk Heinrichs 2008-07-06 15:12 ` Volker Armin Hemmann 2008-07-06 16:36 ` Dirk Heinrichs 2008-07-06 18:13 ` Volker Armin Hemmann 2008-07-07 6:58 ` Dirk Heinrichs
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox