System Management
Before changing the partition table on a BIOS-based server, an administrator wants a backup of only the first 512-byte sector of /dev/sda, which holds the boot code and the MBR partition table. The copy must be saved as /root/mbr.bak. Which command does this?
Show the answer
Correct answerC. dd if=/dev/sda of=/root/mbr.bak bs=512 count=1
With if=/dev/sda as the source, bs=512 and count=1 copy exactly one 512-byte block, the MBR. Omitting count copies the entire disk, which is the tempting mistake; skip=1 would discard the first sector, and swapping if and of would overwrite the disk.