Linux DD command

Source: Internet
Author: User

1 The basic format of the DD command

DD if=xxx of=xxx bs=xxx count=xxx

2 about BS

BS reads and writes data in blocks, and every time a piece of data is read and written, BS is the size of the specified block. The size of this block can be arbitrary. This arbitrariness allows DD to do a lot of things, just to set the size of BS as needed.

2.1 Getting the entire MBR

DD IF=/DEV/SDA of=mbr.img bs=512 count=1

2.2 Get the boot code for the MBR

DD IF=/DEV/SDA of=mbr_boot.img bs=446 count=1

Linux DD command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.