> For the complete documentation index, see [llms.txt](https://theiotlearninginitiative.gitbook.io/embedded-linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theiotlearninginitiative.gitbook.io/embedded-linux/initialization/backup.md).

# Backup

Use dd to backup Intel Edison MMC

```bash
root@edison:~# dmesg
[420794.481542] mmc1: new high speed SDHC card at address 1234
[420794.482480] mmcblk1: mmc1:1234 SA16G 14.4 GiB
[420794.484152]  mmcblk1: p1
```

```bash
root@edison:~# dd if=/dev/mmcblk0 of=/dev/mmcblk1
```

```bash
root@edison:~# fdisk /dev/mmcblk0                                               
GPT PMBR size mismatch (7634944 != 7634943) will be corrected by w(rite).       

Welcome to fdisk (util-linux 2.24.2).                                           
Changes will remain in memory only, until you decide to write them.             
Be careful before using the write command.                                      


Command (m for help): p                                                         
Disk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors                   
Units: sectors of 1 * 512 = 512 bytes                                           
Sector size (logical/physical): 512 bytes / 512 bytes                           
I/O size (minimum/optimal): 512 bytes / 512 bytes                               
Disklabel type: gpt                                                             
Disk identifier: 21200400-0804-0146-9DCC-A8C51255994F                           

Device                 Start          End   Size Type                           
/dev/mmcblk0p1          2048         6143     2M Microsoft basic data           
/dev/mmcblk0p2          6144         8191     1M Microsoft basic data           
/dev/mmcblk0p3          8192        12287     2M Microsoft basic data           
/dev/mmcblk0p4         12288        14335     1M Microsoft basic data           
/dev/mmcblk0p5         14336        16383     1M Microsoft basic data           
/dev/mmcblk0p6         16384        65535    24M Microsoft basic data           
/dev/mmcblk0p7         65536       131071    32M Microsoft basic data           
/dev/mmcblk0p8        131072      3276799   1.5G Microsoft basic data           
/dev/mmcblk0p9       3276800      4849663   768M Microsoft basic data           
/dev/mmcblk0p10      4849664      7634910   1.3G Microsoft basic data
```

```bash
root@edison:~# fdisk /dev/mmcblk1 
GPT PMBR size mismatch (7634944 != 30367743) will be corrected by w(rite).
The backup GPT table is corrupt, but the primary appears OK, so that will be us.

Welcome to fdisk (util-linux 2.24.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/mmcblk1: 14.5 GiB, 15548284928 bytes, 30367744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 21200400-0804-0146-9DCC-A8C51255994F

Device                 Start          End   Size Type                           
/dev/mmcblk1p1          2048         6143     2M Microsoft basic data           
/dev/mmcblk1p2          6144         8191     1M Microsoft basic data           
/dev/mmcblk1p3          8192        12287     2M Microsoft basic data           
/dev/mmcblk1p4         12288        14335     1M Microsoft basic data           
/dev/mmcblk1p5         14336        16383     1M Microsoft basic data           
/dev/mmcblk1p6         16384        65535    24M Microsoft basic data           
/dev/mmcblk1p7         65536       131071    32M Microsoft basic data           
/dev/mmcblk1p8        131072      3276799   1.5G Microsoft basic data           
/dev/mmcblk1p9       3276800      4849663   768M Microsoft basic data           
/dev/mmcblk1p10      4849664      7634910   1.3G Microsoft basic data
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://theiotlearninginitiative.gitbook.io/embedded-linux/initialization/backup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
