On 10 July 2017 at 22:06, Harry Putnam <rea...@newsguy.com> wrote: > grub-install /dev/sda Installing for i386-pc platform. > grub-install: error: cannot find a GRUB drive for /dev/sda1. Check > your device.map. > > Where might I find `device.map'... it isn't part of grub2. At least > grep doesn't find it with `qlist grub' >
As far as I understand it, grub2 will dynamically create the device.map when it needs it, so it doesn't actually exist as a file. On my grub legacy system it is installed as /boot/grub/device.map, with the only contents being "(hd0) /dev/sda". How you would feed grub this information *before* it is installed I'm not sure, but maybe look into the USE=device-mapper flag, maybe it installs the grub-mkdevicemap executable. Arve