On Mon, Sep 09, 2024 at 07:59:58PM +0000, Andy Smith wrote: > I was kind of hoping that there would be something I could run which > would say "yes, this MBR has grub v<whatever> and is set to find its > grub.cfg on (hdX)", then I might be able to see some difference in > what the MBR of sda wants to do. I'm particularly interested in > seeing if the binary grub data in the MBR actually comes from the > grub that is installed from the grub-pc package in the OS.
$ xxd /usr/lib/grub/i386-pc/boot.img > /tmp/img.hex $ sudo dd if=/dev/sda bs=1 count=512 2>/dev/null | xxd > /tmp/sda.hex $ sudo dd if=/dev/sdb bs=1 count=512 2>/dev/null | xxd > /tmp/sdb.hex $ diff /tmp/sda.hex /tmp/img.hex | wc -l 66 $ diff /tmp/sdb.hex /tmp/img.hex | wc -l 28 Interesting. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting