Switch to full style
In-depth technology research: finding new ways to recover data, accessing firmware, writing programs, reading bits off the platter, recovering data from dust.

Forum rules

Please do not post questions about data recovery cases here (use this forum instead). This forum is for topics on finding new ways to recover data. Accessing firmware, writing programs, reading bits off the platter, recovering data from dust...
Post a reply

How can I edit MBR hex code so that grub only boots UEFI.

August 6th, 2020, 4:21

I tried looking up some documentation but they are so limited.
It's a really long story why i need this so if anybody knows please help me. Don't ask me why otherwise please.

So this iso boots both UEFI and legacy but i want to destroy its ability to boot BIOS. I burn the iso to HDD btw.

I just need to know how UEFI is different than BIOS in terms of MBR structure.

Re: How can I edit MBR hex code so that grub only boots UEFI

August 6th, 2020, 17:41

UEFI doesn't use the MBR code for booting. Instead it searches for a boot partition. Therefore you should be able to write zeros to the MBR without affecting a normal UEFI bootup. I don't know how GRUB fits in, though.

Someone please correct me if I'm wrong.

Re: How can I edit MBR hex code so that grub only boots UEFI

August 16th, 2020, 6:41

Late thanks, filling with zeroes does work.

dd if=/dev/zero of=/dev/sdX bs=446 count=1

example

dd if=/dev/zero of=/dev/sda bs=446 count=1
Post a reply