I am trying to boot my own simple OS kernel using GRUB stage2_eltorito. However, the compiled ISO simply leads to a GRUB prompt. I looked up online, and I saw I need to load my kernel. However, when I try to load my kernel, it says I need to load a hard disk first, using the root command. How do I load my ISO file's partition to load my kernel? Thanks in advance!
2 Answers
There is your howto:
or here:
In short:
grub> set pager=1
grub> ls
(hd0) (hd0,msdos2) (hd0,msdos1)
grub> ls (hd0,1)/
lost+found/ bin/ boot/ cdrom/ dev/ etc/ home/ lib/
lib64/ media/ mnt/ opt/ proc/ root/ run/ sbin/
srv/ sys/ tmp/ usr/ var/ vmlinuz vmlinuz.old
initrd.img initrd.img.oldThis is just example, you have to modify it to your situation. You have examples in linked howtos.
1The grub ls -l command will show all devices and partitions with their UUID-s.