Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] grub-install
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
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Sep 20, 2014 1:58 pm    Post subject: [SOLVED] grub-install Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Sat Sep 20, 2014 2:39 pm    Post subject: Reply with quote

Zelt,

Code:
(hd0)/dev/vda
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
View user's profile Send private message
Zelt
n00b
n00b


Joined: 07 Jul 2014
Posts: 72

PostPosted: Sat Sep 20, 2014 3:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Zelt,

Code:
(hd0)/dev/vda
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
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