View previous topic :: View next topic |
Author |
Message |
infamous26 n00b
Joined: 30 Jan 2013 Posts: 2
|
Posted: Wed Jan 30, 2013 10:13 pm Post subject: live dvd install. grub: command not found. |
|
|
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 |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Wed Jan 30, 2013 10:22 pm Post subject: |
|
|
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 |
|
|
infamous26 n00b
Joined: 30 Jan 2013 Posts: 2
|
Posted: Wed Jan 30, 2013 10:32 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Jan 31, 2013 3:29 am Post subject: |
|
|
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 followingshould output the file system used on the /boot partition. Then run this will output that sectors were embedded and succeeded. Then Then 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 |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Thu Jan 31, 2013 2:35 pm Post subject: |
|
|
/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 |
|
|
|