To jefro
Your link is for legacy grub .
To yancek ,
i have a computer with backtrack (latest version called kali) installed . It is ubuntu based distro .
First I created /mnt/sdb2/etc/grub.d/41_tc (permission 777) file containing
My /mnt/sdb2 already has boot folder containing vmlinuz63 and core63.gz .
Code:
#!/bin/sh -e
echo "Adding tiny core Linux to GRUB 2"
cat << EOF
menuentry "Tiny Core 6.3" {
set root=(hd0,2)
linux /boot/vmlinuz63 waitusb=10 loop.max_loop=256
initrd /boot/core63.gz
}
EOF
I ran following command
#grub-install --root-directory=/mnt/sdb2/ /dev/sdb
Installation finished. No error reported.
Now the issue is
It created /mnt/sdb2/boot/grub folder containing a lot of files .
But no grub.cfg .
Now pendrive boots me to a prompt as follows
[log]
GNU grub version 1.98 -1ubuntu 13
minimal bash-like editing is supported .For the first word , TAB lists possible command completions , Anywhere else tab lists possible device or file completions.
grub>
[/log]
https://www.gnu.org/software/grub/ma...2dinstall.html tells me that grub-install is a script that uses grub-mkimage and grub-setup commands .
grub-mkimage help tells me that it uses images and modules of /usr/lib/grub/i386-pc by default .
I am beginning to think that scripts from grub.d are useful only in update-grub .
grub-mkconfig can make grub.cfg file but cannot be pointed to any device (like my removable usb) .
http://ubuntuguide.net/how-to-restor...ble-hard-drive offers hope.