View previous topic :: View next topic |
Author |
Message |
Zelt n00b
Joined: 07 Jul 2014 Posts: 72
|
Posted: Sat Sep 20, 2014 1:58 pm Post subject: [SOLVED] grub-install |
|
|
I am trying to install grub legacy - here in the handbook - http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=10#doc_chap4_sect4
Default: Setting up GRUB using grub-install
Whilst in chroot I run the following
nano -w /boot/grub/grub.conf
Code: | default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Gentoo Linux 3.14.14
root (hd0,1)
kernel kernel-genkernel-x86_64-3.14.14-gentoo root=/dev/sda4
initrd initramfs-genkernel-x86_64-3.14.14-gentoo
title Gentoo Linux 3.14.14 (rescue)
root (hd0,1)
kernel initramfs-genkernel-x86_64-3.14.14-gentoo root=/dev/sda4 init=/bin/bb
# vim:ft=conf: |
Executed cmds
grep -v rootfs /proc/mounts > /etc/mtab
echo "(hd0) /dev/vda" >> /boot/grub/device.map
nano /boot/grub/device.map
Code: | (fd0) /dev/fd0
(hd0) /dev/sda
(hd0)/dev/vda
|
Last cmd returns error
grub-install --no-floppy /dev/sda
Code: | The drive (hd0) is defined multiple times in the device map /boot/grub/device.map |
My parition layout is
/dev/sda3 = swap
/dev/sda4 = root
Should I delete (hd0) /dev/sda and (hd0)/dev/vda from the device.map?
Thanks in advance. _________________ k.
Last edited by Zelt on Sat Sep 20, 2014 3:37 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54266 Location: 56N 3W
|
Posted: Sat Sep 20, 2014 2:39 pm Post subject: |
|
|
Zelt,
is what you would need for an install in a KVM.
As /dev/vda has no BIOS equivelent, it needs to be declared in a device.map file.
For installing an real hardware, no device.map should be required. Grub will write one during the course of the install. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Zelt n00b
Joined: 07 Jul 2014 Posts: 72
|
Posted: Sat Sep 20, 2014 3:36 pm Post subject: |
|
|
NeddySeagoon wrote: | Zelt,
is what you would need for an install in a KVM.
As /dev/vda has no BIOS equivelent, it needs to be declared in a device.map file.
For installing an real hardware, no device.map should be required. Grub will write one during the course of the install. |
Thanks for the info. _________________ k. |
|
Back to top |
|
|
|