Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
live dvd install. grub: command not found.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
infamous26
n00b
n00b


Joined: 30 Jan 2013
Posts: 2

PostPosted: Wed Jan 30, 2013 10:13 pm    Post subject: live dvd install. grub: command not found. Reply with quote

I've been following the instructions from this page: "http://en.gentoo-wiki.com/wiki/Install_LiveDVD_12.1_to_hard_disk_drive"

I've come to the end and when I go to enter the grub command it spits out "command not found"

I've done emerge grub and I receive the same response.

any help would be appreciated.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Wed Jan 30, 2013 10:22 pm    Post subject: Reply with quote

you have to copy paste the script in /usr/sbin/grub..... and chmod +x it

oops my bad....

wrong wiki... try the grub2 quickstart wiki page, that wiki your pointing at is for grub 0.97 i have grub 2 running great on all my gentoo machines

at that point of the install you should be able to emerge lilo grub original or grub2....
Back to top
View user's profile Send private message
infamous26
n00b
n00b


Joined: 30 Jan 2013
Posts: 2

PostPosted: Wed Jan 30, 2013 10:32 pm    Post subject: Reply with quote

thanks for the swift reply. just to verify:

Paste this script:

default 0
timeout 30
title Gentoo Linux
root (hd0,0)
kernel /boot/kernel real_root=/dev/sda3 vga=791 splash=silent,theme:livecd-12.0 console=tty1 quiet
initrd /boot/initramfs


in "usr/sbin/grub"...is that the full path? also in "/boot/grub/grub.conf"

and then run the command: "chmod +x"

I'm going to reinstall tonight so if you could just verify that this will do the trick it would be much appreciated.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Jan 31, 2013 3:29 am    Post subject: Reply with quote

boot the dvd, mount the gentoo partitions, enter the chroot, nominally:
Code:
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
emerge grub
watch to be sure it runs without error, then run
Code:
grub
find /boot/grub/stage1
this should output in the form (hdx,y), use the values provided for x and y in the following
Code:
root (hdx,y)
should output the file system used on the /boot partition. Then run
Code:
setup (hdx)
this will output that sectors were embedded and succeeded. Then
Code:
quit
Then
Code:
ls /boot/grub
Take note of the exact spelling of the kernel name and the initramfs name if you made one. Then
Code:
nano /boot/grub/grub.conf
If you did not make an initramfs, edit to:
Quote:
default 0
timeout 30
title Gentoo Linux
root (hd0,0)
kernel /boot/[your kernel name} root=/dev/sda3
If you did make an initramfs, edit to:
Quote:
efault 0
timeout 30
title Gentoo Linux
root (hd0,0)
kernel /boot/{your kernel namer} root=/dev/ram0 real_root=/dev/sda3
initrd /boot/{your initramfs name}
Then
Code:
exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Jan 31, 2013 2:35 pm    Post subject: Reply with quote

/usr/sbin/grub

chmod +x /usr/sbin/grub

grub

i did have to run the individual commands by hand above the script before the script started working on this computer..... other computer worked just fine, just so you know u might gotta do that (or just the bottom 2 commands of the script 1 by 1)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum