5 ms·
7. Write a new MBR to a disk, keeping the partition table: dd bs=440 count=1 if=/usr/lib/syslinux/bios/mbr.bin of=/dev/sda Even in the age of EFI/GPT, tha
by matja 4y ago
7. Write a new MBR to a disk, keeping the partition table:
dd bs=440 count=1 if=/usr/lib/syslinux/bios/mbr.bin of=/dev/sda
Even in the age of EFI/GPT, that still gets used often (usually VM providers that only offer MBR boot).
- jhugo 4y agohead -b 440 /usr/lib/syslinux/bios/mbr.bin > /dev/sda
- inopinatus 4y agoI suspect you meant -c 440; I can’t find a variant of head(1) that has a -b operand on any Unix. Note that -c is not POSIX but does have widespread support. Notably missing on Solaris. Fun fact, the -c usage comes from ksh, where head is a shell builtin.
- jhugo 4y agoOops, yes, -c indeed! Thanks!