From your installed Linux system with the flash drive attached as root user:
Quote:
mkdir /mnt/sdb1
mount -t ext4 /dev/sdb1 /mnt/sdb1
grub-install --root-directory=/mnt/sdb1 /dev/sdb1
|
If that doesn't do it try this:
Quote:
mkdir /mnt/sdb1
mount -t ext4 -o rw /dev/sdb1 /mnt/sdb1
mount -t proc none /mnt/sdb1/proc
mount -o bind /dev /mnt/sdb1/dev
mount -o bind /sys /mnt/sdb1/sys
mount -t devpts devpts /mnt/sdb1/dev/pts
chroot /mnt/sdb1
grub-install --force --root-directory=/mnt/sdb1 /dev/sdb1
update-grub
|
Then in order to boot from your installed system, you would need to put an entry in the grub.cfg file for it as it can't boot from the flash if just installed to a partition.