[Top][All Lists]

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

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

From: Pascal Hambourg
Subject: Re: "the 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/
(hd0)   /dev/loop0
(hd0,1) /dev/loop0p1 is supposed to contain only entire devices, not partitions.

address@hidden:~/nas$ sudo grub-install 
--root-directory=/home/manuel/nas/mount/ /dev/loop0
Installing for x86_64-efi platform.
grub-install: warning: the entry `hd0,1' is invalid. Ignoring it. 
Please correct or delete your
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]