help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "the device.map entry `hd0, 1' is invalid" when trying to install gr


From: Pascal Hambourg
Subject: Re: "the device.map entry `hd0, 1' is invalid" when trying to install grub in loopback device
Date: Mon, 3 Jul 2017 22:53:51 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Le 03/07/2017 à 21:56, Manuel Wagesreither a écrit :

address@hidden:~/nas$ cat mount/boot/grub/device.map
(hd0)   /dev/loop0
(hd0,1) /dev/loop0p1

device.map is supposed to contain only entire devices, not partitions.

address@hidden:~/nas$ sudo grub-install 
--grub-mkdevicemap=/home/manuel/nas/mount/boot/grub/device.map 
--root-directory=/home/manuel/nas/mount/ /dev/loop0
Installing for x86_64-efi platform.
grub-install: warning: the device.map entry `hd0,1' is invalid. Ignoring it. 
Please correct or delete your device.map.
grub-install: error: /home/manuel/nas/mount/ doesn't look like an EFI partition.

You may want to add "--target=i386-pc" to force installation of GRUB BIOS even in an EFI environment.

Also, not sure what --root-directory means with GRUB 2. It was an option with the old GRUB legacy grub-install, but is not documented for GRUB 2. Looks like it may be a synonym for --efi-directory. If you meant --boot-directory, you must add boot/ to the path.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]