# dd

The following page contains uses for the `dd` command.

### Image a Disk

Using `dd`, with disk sdX, create a gzipped image:

```
dd if=/dev/sdX conv=sync,noerror bs=64K | gzip -c  > /path/to/backup.img.gz
```

If fat32, split into volumes:

```
dd if=/dev/sdX conv=sync,noerror bs=64K | gzip -c | split -a3 -b2G - /path/to/backup.img.gz
```

Save the drive geometry.

```
fdisk -l /dev/sdX > /path/to/list_fdisk.info
```

To restore a system:

```
gunzip -c /path/to/backup.img.gz | dd of=/dev/sdX
```

Or, if it's been split:

```
cat /path/to/backup.img.gz* | gunzip -c | dd of=/dev/sdX
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ramsdenj.com/introduction-2/introduction-1/dd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
