On Wed 18 Jun 2014 at 21:01:52 +0900, Joel Rees wrote: > 2014/06/18 0:35 "roberto" <robert...@gmail.com>: > > > > #grub-install --root-directory=/ /dev/sda > > We wish this approach were reliable, but /dev/sda at boot-time, within > grub, and /dev/sda from bash/dash are often two different drives. If you > have more than one drive, of course. I don't remember. Do you have more > than one drive?
When you use 'grub-install /dev/sda' you are telling GRUB to install into the boot sector of /dev/sda and put core.img into a post-MBR portion of the disk. The boot block knows where the first sector of core.img is and core.img can search for and find the configuration. I don't think GRUB uses system device names to do any of this when booting the OS. > Anyway there seems to be some sort of trick to using grub-install. For some > people it works fine. For others (myself included) it doesn't. No tricks needed as far as I am concerned. You maybe have to realise that --boot-directory needs a grub.cfg as one of its contents but, as we hope roberto has discovered, update-grub takes care of that. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140620215917.gf29...@copernicus.demon.co.uk