From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from mxout2.netvision.net.il (mxout2.netvision.net.il [194.90.9.21]) by chiba.3jane.net (Postfix) with ESMTP id A0D62201D1CD for ; Fri, 15 Mar 2002 12:38:11 -0600 (CST) Received: from laptop.dan.net ([62.0.71.195]) by mxout2.netvision.net.il (iPlanet Messaging Server 5.1 (built Sep 5 2001)) with ESMTP id <0GT10047S29ME2@mxout2.netvision.net.il> for gentoo-dev@gentoo.org; Fri, 15 Mar 2002 20:34:39 +0200 (IST) Date: Fri, 15 Mar 2002 20:35:11 +0200 From: Dan Armak Subject: Re: [gentoo-dev] question about grub In-reply-to: To: gentoo-dev@gentoo.org Message-id: <200203152035.11907.danarmak@gentoo.org> Organization: Gentoo Technologies, Inc. MIME-version: 1.0 X-Mailer: KMail [version 1.4] Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT References: Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 612a5db2-11f9-4aa3-b890-7730115ac645 X-Archives-Hash: bbcf26bfddf00615e8922b1f106e16d3 On Friday 15 March 2002 20:00, Ryan McLean wrote: > Hello, > > I was reading your excellent installation documentation online, and I > ran into a question. Near the end you're breaking down the commands for > grub, but you leave some information out that I would like to know: > > # Below needed only for people who dual-boot > title=Windows NT Workstation > root (hd0,5) > chainloader +1 > > I'm unclear as to what the (hd0,5) are pointing to, is to say "boot of > off the FAT partition located at partition 5"? Normally MS likes to > reside on the primary partition of the drive, so I just want clarification > on this. For instance, if I have a dual boot, MS on the primary partition > and Gentoo's root at (sd0,3), then I would put root (sd0,1) under my > Windows boot section, correct? And also, what does the chainloader +1 > command do? Thank you fo your time, I'm an old fan of lilo, but I have > been cosidering migrating to a newer bootloader :) One thing you must be careful with is the partition numbers. In grub, unlike the /dev/hdxy devices, the first partition is numbered 0 not 1. So (hd0,5) is first harddisk, sixth partition. chainloader +1 boots a partition that has custom boot code in its boot sector. In our case, the windows boot code. Without it grub would mount the partition and load a linux-style kernel (with a kernel= line). -- Dan Armak Gentoo Linux Developer, Desktop Team (KDE) Matan, Israel