From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HRBqS-0001Xs-8r for garchives@archives.gentoo.org; Tue, 13 Mar 2007 18:35:36 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l2DIXg5q009356; Tue, 13 Mar 2007 18:33:42 GMT Received: from euclid.r.igoro.us (209-242-5-195.rev.dls.net [209.242.5.195]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l2DIXfjp009348 for ; Tue, 13 Mar 2007 18:33:41 GMT Received: by euclid.r.igoro.us (Postfix, from userid 9000) id 443A26760; Tue, 13 Mar 2007 13:33:40 -0500 (CDT) Date: Tue, 13 Mar 2007 13:33:40 -0500 From: dustin@v.igoro.us To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] Re: Drive asignments for sata drives Message-ID: <20070313183340.GE29939@v.igoro.us> References: <45F5823D.2080708@singnet.com.sg> <45F669F2.30302@singnet.com.sg> <20070313140622.GA18489@v.igoro.us> <200703131731.44114.prh@gotadsl.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703131731.44114.prh@gotadsl.co.uk> X-PGP-Key: http://people.cs.uchicago.edu/~dustin/pubkey.txt User-Agent: mutt-ng/devel-r804 (Linux) X-Archives-Salt: cd77a752-f0f5-4fff-a7bd-5b5c2eb6fe67 X-Archives-Hash: b1a73b780d964db3eb8e76f79353a905 On Tue, Mar 13, 2007 at 05:31:44PM +0000, Peter Humphrey wrote: > > Not to be picky, but it's the kernel that parses that command line -- > > grub just supplies it to the kernel. > > Are you sure? It seems to me that the "root=" parameter is to grub, to tell > it where to find the kernel to which to pass the remaining arguments. Yep. kernel /boot/kernel-2.6.15-gentoo-r7-2006040301 root=/dev/sda2 The first argument, /boot/kernel-2.6.15-gentoo-r7-2006040301, is to grub, and tells it where to find the kernel. It then laods the kernel (and any initrd, etc.) and passes the rest of the stuff along as the command line -- it's similar to a shell command, where the shell specially interprets the first component, and the rest is left to the executable. You can verify this by messing up your 'root=xxx' line in grub.conf and rebooting. The kernel will load to the tune of lots of messages, but then panic when it looks for its root fs. FWIW, the same thing applies with the "magic words" used in ISOLINUX: some of those are flags to the kernel, while others are interpreted by the rc scripts later (the kernel makes its command line available in /proc/cmdline). Dustin -- gentoo-amd64@gentoo.org mailing list