Forums

Skip to content

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

grub-install does not work

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
8 posts • Page 1 of 1
Author
Message
Rosetta
n00b
n00b
Posts: 34
Joined: Sat Feb 19, 2011 7:21 am

grub-install does not work

  • Quote

Post by Rosetta » Sun Feb 20, 2011 5:00 pm

I write the following command but it does not work.
"(chroot) livecd/#grub-install /dev/hda"
It says that "bash: grub-install: command not found"

I do as it is described in the following instruction:

"http://www.gentoo.org/doc/sv/handbook/h ... #doc_chap3"

How can i get it work?

------------------------------------
The partitions are as follows:

/dev/sda1 = boot
/dev/sda2 = swap
/dev/sda3 = root
-------------------------------------------
The "/boot/grub/grub.conf" is as follows:

default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.36-r5
root (hd0,0)
kernel /boot/kernel-amd64-2.6.36-gentoo-r5 root=/dev/sda3
title Gentoo Linux 2.6.36-gentoo-r5
root (hd0,0)
kernel /boot/kernel-2.6.36-gentoo-r5 root=/dev/sda3 init=/bin/bb
---------------------------
Top
The Doctor
Bodhisattva
Bodhisattva
User avatar
Posts: 2678
Joined: Tue Jul 27, 2010 10:56 pm

  • Quote

Post by The Doctor » Sun Feb 20, 2011 7:52 pm

Try running this.

Code: Select all

grub-install /dev/sda
if that fails, then try the alternative manual install.
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Top
Rosetta
n00b
n00b
Posts: 34
Joined: Sat Feb 19, 2011 7:21 am

  • Quote

Post by Rosetta » Sun Feb 20, 2011 8:09 pm

penguin swordmaster wrote:Try running this.

Code: Select all

grub-install /dev/sda
if that fails, then try the alternative manual install.
I got the same result!

In which directory should i run the command "grub-install /dev/sda"?
I am thinking about we use the command emerge for installing. Is that why the system can not find the comman grub-install?
Top
disi
Veteran
Veteran
User avatar
Posts: 1354
Joined: Fri Nov 28, 2003 4:33 am
Location: Out There ...

  • Quote

Post by disi » Sun Feb 20, 2011 9:35 pm

If it says grub-install command not found, then it's not installed yet.
Install via:

Code: Select all

# emerge grub
Then run the command with /dev/sda again.
Gentoo on Uptime Project - Larry is a cow
Top
Rosetta
n00b
n00b
Posts: 34
Joined: Sat Feb 19, 2011 7:21 am

  • Quote

Post by Rosetta » Sun Feb 20, 2011 10:13 pm

disi wrote:If it says grub-install command not found, then it's not installed yet.
Install via:

Code: Select all

# emerge grub
Then run the command with /dev/sda again.
The same result again!
"bash:grub-install: No such file or directory"

the commands i run are as following:

(chroot) livecd /#emerge grub (It works!)

(chroot) livecd /#grub-install --no-floppy /dev/sda
bash:grub-install: No such file or directory

(chroot) livecd /#grub-install /dev/sda
bash:grub-install: No such file or directory
Top
The Doctor
Bodhisattva
Bodhisattva
User avatar
Posts: 2678
Joined: Tue Jul 27, 2010 10:56 pm

  • Quote

Post by The Doctor » Sun Feb 20, 2011 10:36 pm

Ok, two questions:

are you using amd64?

if yes, are you using a non-multilib profile? if you are, then you need grub-static.
if you disabled IA-32 emulation in your kernel, then you need to use lilo.

if you answer to the previous questions are no, then try the alternative config.
like so: (copied from the handbook)

# grub --no-floppy
grub> root (hd0,0) (Specify where your /boot partition resides)
grub> setup (hd0) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell)
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Top
Rosetta
n00b
n00b
Posts: 34
Joined: Sat Feb 19, 2011 7:21 am

  • Quote

Post by Rosetta » Mon Feb 21, 2011 5:34 pm

penguin swordmaster wrote:Ok, two questions:

are you using amd64?

if yes, are you using a non-multilib profile? if you are, then you need grub-static.
if you disabled IA-32 emulation in your kernel, then you need to use lilo.

if you answer to the previous questions are no, then try the alternative config.
like so: (copied from the handbook)

# grub --no-floppy
grub> root (hd0,0) (Specify where your /boot partition resides)
grub> setup (hd0) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell)

Thanks! Now i can boot without the CD. When it boots i can see "grub>". But how can i get a grafic interface? I dont know how i should use the "grub>".
Is it possible to get a grafical intercase like Ubuntu in Gentoo Linux?

//Rosetta
Top
The Doctor
Bodhisattva
Bodhisattva
User avatar
Posts: 2678
Joined: Tue Jul 27, 2010 10:56 pm

  • Quote

Post by The Doctor » Mon Feb 21, 2011 6:01 pm

Gub should look like it does in Ubuntu, minus the Ubuntu specific image.
The instructions I think you need to follow are these:

Alternativ: Konfigurera GRUB manuellt

make sure that you remember this bit:

Code: Select all

cp /proc/mounts /etc/mtab
If you did, then I am out of ideas. You might need to wait for someone who is better acquainted with grub, or try lilio. :?
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Top
Post Reply

8 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