I've been searching for some time here and on other websites for a way to install Grub(legacy)/Grub2 (NOT GRUB4DOS) on a USB key/drive, but I didn't find anything.
I need a way that can be automated (so something like the command-line grubinst.exe would be nice)
I saw that grubinst.exe from Grub4DOS has a --grub2 command-line parameter, but if I use it it requires a file called 'g2ldr' and I can't find it. I found g2ldr.mbr and g2ldr.img in the grubutil packages, but I didn't find the real g2ldr file (apart some dead mirror links).
What's the best way to install Grub/Grub2 on a USB drive from Windows?
EDIT: I've just found two g2ldr files, and I've tried putting them on an USB key with grubinst.exe --grub2 ran on them:
Grub 1.98+20100804-14 ftp://ftp.nz.freebsd.org/pub/squeeze64-bpo-3.2/g2ldr
Grub 1.96 http://kebo.pens.ac.id/debian-hp/g2ldr