Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63602 - grub-install example in code listing 7 has wrong arguments specified
Summary: grub-install example in code listing 7 has wrong arguments specified
Status: RESOLVED NEEDINFO
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-10 15:10 UTC by Eric Reinecke
Modified: 2004-09-10 19:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Reinecke 2004-09-10 15:10:49 UTC
Code Listing
Comment 1 Eric Reinecke 2004-09-10 15:10:49 UTC
Code Listing 7: Running grub-install reads:
# grub-install --root-directory=/boot /dev/hda
when it should read something like:
# grub-install --root-directory=/ /dev/hda

The effect is that grub files are installed into "/boot/boot/grub" instead of "/boot/grub". This causes grub to go to the grub prompt at boot instead of displaying the boot menu.

Reproducible: Always
Steps to Reproduce:
1. Type in: "# grub-install --root-directory=/boot /dev/hda" to install grub as expected
2. Re-boot getting only the grub prompt instead of the boot menu
Actual Results:  
Got the grub prompt instead of the boot menu.

Expected Results:  
Boot to a grub boot menu.

On my system I am using an adaptec 2940 Ultra2 SCSI card with a boot disk on ID 0.
In my setup I used the command:
# grub-install --root-directory=/boot /dev/sda
and had it not work. It worked with the command:
# grub-install --root-directory=/ /dev/sda
Comment 2 SpanKY gentoo-dev 2004-09-10 15:45:16 UTC
what kind of partitioning schema are you using ?

there should be a symlink in /boot/ that points to . so that /boot/boot/ resolves to /boot/ anyways ...
Comment 3 Eric Reinecke 2004-09-10 16:06:42 UTC
I'm using the partition scheme as follows:
/dev/sda1     32MB ext2 partition for /boot
/dev/sda2     1024MB swap partition
/dev/sda3     rest of drive ext3 partition for /

I don't seem to have a /boot/boot symlink. I think I may have deleted it thinking I had accidentally hit up arrow and did a mkdir. Looks like a PEBKAC :) sorry.
I checked my old gentoo install on my other computer(from about 3 or 4 months ago) and it lacks the /boot/boot symlink as well. Perhaps it would make sense to recommend to the grub ebuild maintainer to on emerge make sure this symlink is created.
I will also suggest restoring this symlink to the gentoo forum sticky item on grub problems.
Thank you.
Comment 4 SpanKY gentoo-dev 2004-09-10 18:09:43 UTC
did you look at /boot/ on sda3 or on sda1 ?
Comment 5 Eric Reinecke 2004-09-10 19:27:20 UTC
I mounted /dev/sda1 to the dir /boot on /dev/sda3 and looked at that.