I'm trying to use the
grub-mkrescue command to produce a rescue disk. I invoke it like this:
grub-mkrescue -o grub.iso
This produces the .iso file, but when I try to boot from it using VirtualBox, it says that the boot medium cannot be read. When I open the file with an archiver, the .iso turns out to have just an empty /boot/grub directory.
I also noticed some people using the command like this:
grub-mkrescue -o grub.iso /boot/grub
But then it complains about that directory not existing. (Maybe it is relevant that I'm producing this on a Debian VPS, because I don't have access to an actual Linux PC currently.)
What could be causing this problem? Is it missing the GRUB files to store into the bootable image or am I using the command the wrong way?