Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-25-2006, 12:21 PM   #1
Registered: Nov 2005
Location: Colorado
Posts: 127

Rep: Reputation: 15
Can't seem to install grub!

Okay, first off it has been way to long since I last fiddled with linux. Now I have a spare pc that I can hose to my hearts content!

I have Win98 on my first hd. Just because. On my second hd I have setup many partitions to play with several distributions of linux. I have successfully installed Slackware 10.2 onto hdb6. When installing I opted to not install lilo. I knew it would be easy to install grub later .

Searching these forums I found a to do list and printed it out:
(as root.)

1. locate stage1 and stage2 etc.
I found these at: /root/usr/grub/i386-pc/

2. I then created a grub folder in /boot and copied all the filed found in step 1 to this location.

3. I found grub-install at: /root/usr/sbin and tried to run it. I get an error: command not found!

What have I done incorrectly?
Old 06-25-2006, 12:29 PM   #2
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
/root/usr/sbin? that sounds like a weird place for it. seems like it should be in someplace like /sbin, /usr/sbin, etc. i've never heard of a /root/usr/ or /root/usr/sbin directory as a standard thing, but maybe. (?) you said you "found" it there -- how did you find it? with locate, whereis, ls, etc.? if it really is there, did you try running the command with the full path, or by just typing grub-install? how did you install grub?

Last edited by slackhack; 06-25-2006 at 12:31 PM.
Old 06-25-2006, 12:38 PM   #3
Registered: Nov 2005
Location: Colorado
Posts: 127

Original Poster
Rep: Reputation: 15
I used locate to find it. First off I tried to install onto a floppy first by cd to the directory and typing all kinds of variations I found here by searching including:
fdformat /dev/fd0
mount -t ext2 /dev/fdo /mnt/floppy
cd to: /root/usr/sbin
grub-install --root-directory=/mnt/floppy '(fd0)' <error command not found>
Old 06-25-2006, 02:15 PM   #4
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
I am not sure about Slackware, but in redhat you would do install the rpm of grub, then you would have the command grub-install available.
So what I mean to say is find the grub tar, install it and then you will have the grub-install command available, now you will be able to change your lilo.
/root/usr/sbin? that sounds like a weird place for it
the root here probably means a persons root directory which is "/" and not "/root", sr_25 misunderstood it I guess.
Old 06-25-2006, 02:44 PM   #5
Registered: Nov 2005
Location: Colorado
Posts: 127

Original Poster
Rep: Reputation: 15
Okay, I guess I don't understand why grub-install is not available to me now. I have downloaded several versions of grub from and I still get command not found errors!
Old 06-25-2006, 04:24 PM   #6
Registered: Nov 2005
Location: Colorado
Posts: 127

Original Poster
Rep: Reputation: 15
Okay, I have grub working now. But I still have a question. When I tried the grub-install command I first cd'd to the directory and then just typed grub-install... How I made it work was to type the full path: /root/usr/sbin/grub-install.

Now for my question does this mean linux doesn't look in the current dir. when running commands, because this is the only thing I did different?
Old 06-25-2006, 05:24 PM   #7
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
It looks in the path variable (in ~/.bashrc or /etc/profile) only, unless you specify to look in the current directory (./program).


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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 05:04 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 03:01 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM
[GRUB]how to install grub onto another partition Liquid_T<NL> Linux - Newbie 1 09-05-2005 10:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 AM.

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