Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

grub-install problem [SOLVED]

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Rithe
n00b
n00b
Posts: 26
Joined: Mon Aug 30, 2004 6:22 pm

grub-install problem [SOLVED]

  • Quote

Post by Rithe » Wed Feb 22, 2006 3:51 pm

Here's the error I'm getting when I run grub-install:
/dev/root.old: Not found or not a block device.

Up to this point, everything has gone fine. I'm just not sure what I did wrong to get this.

My partitions are:
/dev/hda1 - /
/dev/hda2 - swap

My grub.conf is:

Code: Select all

default 0
default 0

title=Gentoo Linux 2.6.15-r1
root (hd0,0)
kernel /boot/gentoo-2.6.15-r1 root=/dev/hda1
Any ideas?
Last edited by Rithe on Wed Feb 22, 2006 7:46 pm, edited 1 time in total.
Top
no idea
n00b
n00b
User avatar
Posts: 43
Joined: Tue Jan 03, 2006 8:29 pm
Location: Zagreb

  • Quote

Post by no idea » Wed Feb 22, 2006 5:21 pm

first, you have 2 default lines. get rid of one :)

second, what command did you use to install grub?

it should be

Code: Select all

grub-install /dev/hda
if your hard disk is set as master
Top
Rithe
n00b
n00b
Posts: 26
Joined: Mon Aug 30, 2004 6:22 pm

  • Quote

Post by Rithe » Wed Feb 22, 2006 6:10 pm

I am using grub-install /dev/hda. I'll check the default lines. I'll bet that is the problem.
Top
Rithe
n00b
n00b
Posts: 26
Joined: Mon Aug 30, 2004 6:22 pm

  • Quote

Post by Rithe » Wed Feb 22, 2006 6:36 pm

now I realized what I typed... It should be:

default 0
timeout 0

I got rid of one, and it makes no difference.

Also, it seems like manually installing it works. I'm booting to find out right now...

And it worked... Interesting. I guess it's fixed, but I have no clue why.
Last edited by Rithe on Wed Feb 22, 2006 7:43 pm, edited 1 time in total.
Top
no idea
n00b
n00b
User avatar
Posts: 43
Joined: Tue Jan 03, 2006 8:29 pm
Location: Zagreb

  • Quote

Post by no idea » Wed Feb 22, 2006 7:41 pm

Hm, did you follow exact steps from Gentoo Handbook?

It says:
Default: Setting up GRUB using grub-install

To install GRUB you will need to issue the grub-install command. However, grub-install won't work off-the-shelf since we are inside a chrooted environment. We need to create /etc/mtab which lists all mounted filesystems. Fortunately, there is an easy way to accomplish this - just copy over /proc/mounts to /etc/mtab, excluding the rootfs line if you haven't created a separate boot partition. The following command will work in both cases:

Code Listing 5: Creating /etc/mtab

# grep -v rootfs /proc/mounts > /etc/mtab

Now we can install GRUB using grub-install:

Code Listing 6: Running grub-install

# grub-install /dev/hda
Top
Rithe
n00b
n00b
Posts: 26
Joined: Mon Aug 30, 2004 6:22 pm

  • Quote

Post by Rithe » Wed Feb 22, 2006 7:45 pm

I did follow it. I tried a manual installation, instead of the automatic grub-install, and it booted up with no problems it seems. Although I'm missing network stuff right now, but that's more minor right this second.
Top
Abraxa
Apprentice
Apprentice
Posts: 174
Joined: Tue Jun 14, 2005 8:57 pm
Location: Germany

  • Quote

Post by Abraxa » Sat Feb 25, 2006 1:23 am

I had the same problem - the cause was that I forgot to copy the mount table:

Code: Select all

cp /proc/mounts /etc/mtab
Once I did that it worked like a charm.

-Soeren
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic