public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dan Armak <danarmak@gentoo.org>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] question about grub
Date: Fri, 15 Mar 2002 20:35:11 +0200	[thread overview]
Message-ID: <200203152035.11907.danarmak@gentoo.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0203151155340.6671-100000@rivendell.starshadow.com>

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


      parent reply	other threads:[~2002-03-15 18:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-15 18:00 [gentoo-dev] question about grub Ryan McLean
2002-03-15 18:03 ` Matthew T. Jachimstal
2002-03-15 18:35 ` Dan Armak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200203152035.11907.danarmak@gentoo.org \
    --to=danarmak@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox