Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] grub error I've never seen in many installs
Date: Mon, 10 Jul 2017 20:06:17
Message-Id: 86pod8jbvb.fsf@local.lan
1 Installing from install-amd64-minimal-20170706.iso into vbox vm
2
3 I've done this many times and never saw this grub error:
4
5 Attempting to run grub-install /dev/sda I get:
6
7 grub-install /dev/sda Installing for i386-pc platform.
8 grub-install: error: cannot find a GRUB drive for /dev/sda1. Check
9 your device.map.
10
11 When I started googling I find hits all of which are involved with efi
12 drives.
13
14 I don't really even know for sure what an `efi' drive is and certainly
15 never had any dealings with it when installing gentoo in a vbox vm.
16
17 (Even after googling efi ... still didn't really understand what it
18 is. Other than what it stands for. wikipaedia talks about a fat file
19 system being involved... .. all news to me)
20
21 I found something even more curious... I tried unmounting boot
22 (dev/sda1) and recreating the ext2 file system.
23
24 I left the computer for a bit, and when I came back I forgot I had
25 not remounted boot, and ran `grub-install /dev/sda' again with /dev/sda1
26 unmounted.
27
28 It ran with no errors and created a grub directory on / (/dev/sda4)
29
30 I don't understand why grub is looking for a GRUB drive on /dev/sda1
31 when I asked it to install on /dev/sda
32
33 The error tells me to check `device.map'. But gives no clue where it
34 might be found.
35
36 Where might I find `device.map'... it isn't part of grub2. At least
37 grep doesn't find it with `qlist grub'
38
39 Near as I can tell I've done things ... so far in the same way I have
40 before several times... probably within 4 to 6 mnths. So I may be
41 forgetting something important... but I know I have never run across
42 this error before.
43
44 And I have followed the handbook at least mostly.

Replies

Subject Author
Re: [gentoo-user] grub error I've never seen in many installs Arve Barsnes <arve.barsnes@×××××.com>