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 1NNs3B-0001dg-62 for garchives@archives.gentoo.org; Thu, 24 Dec 2009 18:04:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBBEFE0781 for ; Thu, 24 Dec 2009 18:04:36 +0000 (UTC) Received: from etch.riddlemaster.org (unknown [209.170.146.89]) by pigeon.gentoo.org (Postfix) with ESMTP id ED1FEE06AF for ; Thu, 24 Dec 2009 16:32:23 +0000 (UTC) Received: from merlin ([192.168.2.12] helo=merlin.localnet) by etch.riddlemaster.org with esmtp (Exim 4.69) (envelope-from ) id 1NNqbu-0008CY-Ua for gentoo-user@lists.gentoo.org; Thu, 24 Dec 2009 11:32:23 -0500 From: Daniel D Jones To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Grub boots to command prompt Date: Thu, 24 Dec 2009 11:32:22 -0500 User-Agent: KMail/1.12.3 (Linux/2.6.31-gentoo-r6; KDE/4.3.3; i686; ; ) References: <200912240852.37144.ddjones@riddlemaster.org> <200912241752.08379.alan.mckinnon@gmail.com> In-Reply-To: <200912241752.08379.alan.mckinnon@gmail.com> 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 Message-Id: <200912241132.22438.ddjones@riddlemaster.org> X-Spam-Score: -1.4 (-) X-Spam_score_int: -13 X-Spam_bar: - X-Spam_report: Spam detection software, running on the system "etch.riddlemaster.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Thursday 24 December 2009 10:52:08 Alan McKinnon wrote: > On Thursday 24 December 2009 15:52:37 Daniel D Jones wrote: > > Just did a stage 3 install following a HD crash on a new HD. The initial > > install went without issue and I booted from the HD normally. I then > > went through and installed a bunch of packages - xorg, kde, etc. I > > installed genkernel, compiled a custom kernel, and updated > > /boot/grub/menu.lst. > > > > Upon rebooting, I ended up at a grub command line. I can setup the hard > > drive without errors: > > > > grub> root (hd0,0) > > Filesystem type is ext2fs, partition type 0x83 > > > > grub> setup (hd0) > > Checking if "/boot/grub/stage1" exists... yes > > Checking if "/boot/grub/stage2" exists... yes > > Checking if "/boot/grub/e2fs_stage1_5" exists... yes > > Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are > > embedded. succeeded > > Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p > > (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded > > Done. > > > > No errors, says everything's good. Reboot and I'm right back at the > > command line. > > > > I can do > > > > root (hd0,0) > > kernel = /vmlinuz-blah > > boot > > > > and boot into the system, so I know the system and hd0,0 is bootable. > > (I'm writing this message on it after doing the above.) > > > > There are three hard drives in the system. I've verified that the BIOS > > is set to boot from the first hard drive, which grub sees as hd0. I've > > also, just to test it out, setup grub on hd1 and hd2, with hd0,0 set as > > root. I > > ^^^^^^^^^^^^^^^^^^ > > > still get the same thing. > > Your next paragraph indicates that (hd0,0) is not in fact root, but (what > will eventually be) /boot. > > Your root is likely to be (hd0,2) [...] Content analysis details: (-1.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Archives-Salt: 9e2bcc7e-eb65-4e19-a217-045ac95ddc5c X-Archives-Hash: 1706f1168ed87b3d4a8d4f9e43eee75f On Thursday 24 December 2009 10:52:08 Alan McKinnon wrote: > On Thursday 24 December 2009 15:52:37 Daniel D Jones wrote: > > Just did a stage 3 install following a HD crash on a new HD. The initial > > install went without issue and I booted from the HD normally. I then > > went through and installed a bunch of packages - xorg, kde, etc. I > > installed genkernel, compiled a custom kernel, and updated > > /boot/grub/menu.lst. > > > > Upon rebooting, I ended up at a grub command line. I can setup the hard > > drive without errors: > > > > grub> root (hd0,0) > > Filesystem type is ext2fs, partition type 0x83 > > > > grub> setup (hd0) > > Checking if "/boot/grub/stage1" exists... yes > > Checking if "/boot/grub/stage2" exists... yes > > Checking if "/boot/grub/e2fs_stage1_5" exists... yes > > Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are > > embedded. succeeded > > Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p > > (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded > > Done. > > > > No errors, says everything's good. Reboot and I'm right back at the > > command line. > > > > I can do > > > > root (hd0,0) > > kernel = /vmlinuz-blah > > boot > > > > and boot into the system, so I know the system and hd0,0 is bootable. > > (I'm writing this message on it after doing the above.) > > > > There are three hard drives in the system. I've verified that the BIOS > > is set to boot from the first hard drive, which grub sees as hd0. I've > > also, just to test it out, setup grub on hd1 and hd2, with hd0,0 set as > > root. I > > ^^^^^^^^^^^^^^^^^^ > > > still get the same thing. > > Your next paragraph indicates that (hd0,0) is not in fact root, but (what > will eventually be) /boot. > > Your root is likely to be (hd0,2) Eh? Your grub root should be where grub is installed, shouldn't it? That's /dev/sda1 on my system, which grub sees as hd (0,0). When the file system is mounted, that partition mounted under /boot but grub still needs to know where to find the menu.lst and various stage files on initial boot, and that's hd (0,0). -- "Believe nothing, O monks, merely because you have been told it ... or because it is traditional, or because you yourselves have imagined it. Do not believe what your teacher tells you merely out of respect for the teacher. But whatsoever, after due examination and analysis, you find to be conducive to the good, the benefit, the welfare of all beings-that doctrine believe and cling to, and take it as your guide." - Gautama Buddha, Indian philosopher (536?-483? B.C.)