TransWikia.com

Cant make use of grub-mkimage

Unix & Linux Asked on November 28, 2021

I am trying to create portable grub mbr with grub-mkimage to chainload as bootsector from windows. But when booting I get stuck at a black screen with bold "GRUB" and blinking curser. No key responce.

My codes:

grub-mkimage -p=(hd0,msdos9)/boot --target=i386-pc -o core.img biosdisk minicmd part_msdos terminal ntfs ext2
copy boot.img test.mbr
dd if=core.img of=test.mbr bs=512 seek=1

I made this work once, but cant remember how. How can i make a grub mbr without linux.
I used busybox for dd.

One Answer

Found answer to my own question.I had to use lnxboot instead of boot. Because it is made to read core next to it while boot needs cores location hardcoded into it even it is next to it

Answered by Riyadh Kabir on November 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP