Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-13-2004, 12:05 AM   #1
Registered: Sep 2004
Distribution: Ubuntu
Posts: 109

Rep: Reputation: 15
grub gripe (/boot/boot/boot/grub)

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:
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.
Old 11-14-2004, 03:05 AM   #2
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49

That's nothing, you could go for as long as you wanted on my system and it would still pick it up! Jokeing aside, many distributions place a sym link in /boot pointing to itself. On my system if I go to /boot and type "ls -l" then it tells me there is a "boot -> ." item in my /boot directory. the period is a short cut way to refer to whatever directory you are already in (.. refers to the next level up). This way, /boot has itself inside itself. /boot, /boot/boot, /boot/boot/boot, etc. are all really the same directory on this type of system.

I don't know why some things require access to /boot/boot, but apparently some do. This is the most common way around the problem that I have seen.
Old 11-14-2004, 08:01 AM   #3
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
What partition is your boot partition that has /grub/menu.lst on it? If it's hda3 (for example), subtract 1 from it and call it (hd0,2) so grub will understand you (grub counts from 0 so all numbers are one less than you'd expect. It uses numbers not letters, hence the 0 instead of a). Then run grub

> root (hd0,2)
> setup (hd0)
> quit

Make sure you change the root (hd0,2) line to reflect where menu.lst is. The setup (hd0) line means install grub on the MBR


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 06:45 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 04:13 AM
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 07:25 AM
need to access /boot/grub/menu.lst and /boot/grub/ neouto Linux - Newbie 8 09-04-2005 12:45 PM
Blank Screen after Suse Boot - HowTo boot from grub to command line benco420 Linux - Newbie 3 02-13-2005 06:50 AM

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration