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

manuel@manuelthinkpad:~/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.

manuel@manuelthinkpad:~/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.

_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to