From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PFPLB-0006nX-C5 for garchives@archives.gentoo.org; Mon, 08 Nov 2010 10:52:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9BF12E077B; Mon, 8 Nov 2010 10:52:03 +0000 (UTC) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by pigeon.gentoo.org (Postfix) with ESMTP id 87B5DE077B for ; Mon, 8 Nov 2010 10:52:03 +0000 (UTC) Received: from [192.168.0.4] (ool-43505ef2.dyn.optonline.net [67.80.94.242]) by mta5.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0LBK00JM1BIQ3F80@mta5.srv.hcvlny.cv.net> for gentoo-user@lists.gentoo.org; Mon, 08 Nov 2010 05:52:03 -0500 (EST) Date: Mon, 08 Nov 2010 05:48:56 -0500 From: dhk Subject: Re: [gentoo-user] kernel panic on manually built kernel In-reply-to: <4CD7D0BB.50606@waagmeester.co.za> To: gentoo-user@lists.gentoo.org Message-id: <4CD7D598.5030205@optonline.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Enigmail-Version: 1.1.2 References: <4CD2E093.5030008@optonline.net> <201011051652.44199.volkerarmin@googlemail.com> <4CD7D0BB.50606@waagmeester.co.za> User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101030 Lightning/1.0b3pre Thunderbird/3.1.6 X-Archives-Salt: 5adf886e-f91a-4b4b-8f60-2d9f9d41b2cd X-Archives-Hash: 35afb3c2b627715dfdb76b62e06dc05b On 11/08/2010 05:28 AM, Coert Waagmeester wrote: > Volker Armin Hemmann wrote: >> On Thursday 04 November 2010, dhk wrote: >>> I've always used the genkernel, but now am trying to make a manual one. >>> I think the kernel is alright since all the default setting seemed >>> reasonable and the build was easy enough. However, when I boot to it I >>> get a kernel panic and it complains about the root device /dev/hda3. So >>> I think the problem has to do with my parameters or syntax in grub.conf. >>> Below are three grub menu options. The first two have the problem and >>> the third is the genkernel that works fine. Is there something wrong >>> with the way the first two are? Thanks. >>> >>> # This is a Manually built kernel with default settings. kernel panic >>> title Gentoo Linux x86 2.6.34-r12 >>> root (hd0,0) >>> kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 >>> >>> # This is a Manually built kernel with default settings. kernel panic >>> title Gentoo Linux x86 2.6.34-r12 >>> root (hd0,0) >>> kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791 >>> splash=verbose video=vesafb:mtrr,ywrap udev >>> # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768-32@85 >>> >>> # This a genkernel and works >>> title Gentoo Linux x86 2.6.34-r6 >>> root (hd0,0) >>> kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc >>> ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose >>> video=vesafb:mtrr,ywrap udev >>> initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6 >>> >>> --dhk >> >> grub must point to sda3 not hda3 >> >> > > Yes, I had a similar problem. > The device names are different on my machine between genkernel and my > own kernel. > Make sure to change that in your /etc/fstab as well. > > Dont know if this is always the case though. > > Regards, > Coert Waagmeester > > I'm booting to an IDE hard disk. Are you say the device name should change from /dev/hda3 to /dev/sda3? If I change it in /etc/fstab and it doesn't work, I'll have problems, I'll probably have to boot to the livecd. Thanks, --dhk