GRUB2 - Boot to Partition with Custom Bootloader
I am a programmer hobbyist. I currently got a hold of an old Intel 386 Manual and I thought it would be fun to see if I could make a custom boot loader. Nothing professional, just something fun.
I do not want delete everything on my computer and write directly on my MBR. I would like to leave GRUB2 as well as all my other partitions. I have set up a small partition to experiment with. Is there a way to set GRUB2 to boot to a partition as if it was the computers MBR? Currently /etc/grub.d/40_custom looks like Code:
#!/bin/sh fdisk -l gives me: Quote:
I update-grub and reboot. When I execute my partition from the GRUB menu I get: Quote:
|
I have added a force flag to ignore the file signature. It boots successfully.
Code:
#!/bin/sh Quote:
|
You can remove the --force flag if you have the appropriate boot loader signature.
An empty bootloader could simply be used by typing" Code:
echo -ne '\x55\xAA' | sudo dd obs=1 seek=510 of=/dev/sda8 |
All times are GMT -5. The time now is 05:51 AM. |