Short version: I just installed Slack 10.0 on an old box. I have /boot as a separate partition on which I wanted grub. Slack doesn't have grub, so I booted up Knoppix 3.3 and tried installing it from there. grub-install creates a /boot/boot/grub directory and puts all its files in there instead of /boot/grub.
Long version. I tried all of the following:
Code:
mount /dev/hda1 /mnt/hda1
grub-install --root-directory=/mnt/hda1 '(hd0)'
grub-install --root-directory=/mnt/hda1 /dev/hda
unlink /boot # this is a link to /KNOPPIX/boot by default
mkdir /boot
mount /dev/hda1 /boot # thinking maybe having "boot" in the name makes a difference
grub-install --root-directory=/boot '(hd0)'
grub-install --root-directory=/boot /dev/hda
None of those worked.
So then I went into the grub-install script, extracted the relevant parts (after the comment "Now perform the installation" in the script), and ran them manually with the appropriate tweaks. That didn't work either: it gave me "Error 15: file not found" (I'm quoting from memory). The "setup" command in grub-install seems to run an "install" command. I tried playing around with that too, with no results.
Having spent more than an hour on this, I just now decided to go with /boot/boot/grub (which after all works fine). At this point if grub wanted to give me /boot/boot/boot/boot/boot/boot/grub I would accept it. But it still seems strange. I can't imagine this is an unusual configuration (and in fact this is exactly the way I have my other desktop set up, and it works just fine!).
Any ideas? Thanks.