The use of DD

Source: Internet
Author: User

1. Generate an empty file with a size of 1G (files with holes)
$ dd If=/dev/zero of=winxp.img bs=1k seek=1024k count=1

2. Read the floppy disk and save it to a file with 16 binary
#dd if=/dev/fd0 bs=1k count=1440 | Od–tx1–ax >/tmp/dump_hex
-TX1: The format of the output is expressed as a single-byte (1) Form in 16 binary form (x)
-ax: Address offset in 16 binary form (x)

3. Backup the primary boot sector MBR of the hard disk
#dd If=/dev/hda Of=mbr.bak bs=512 count=1
#od –ax–tx2 Mbr.bak

=-=-=-=-=
Powered by Blogilo

The use of DD

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.