Embedded Linux
  • Cover
  • Summary
  • About This Training
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Embedded Linux
  • Build Systems
    • Yocto Board Support Package
      • Yocto
      • Compilation
        • Make
        • Bitbake
        • Script
      • Building Blocks
      • SDK
      • Extra Packages
      • Kernel
        • Patch
        • Building
        • Headers
      • Modules
        • Cross Compilation
        • Native
      • Filesystem
      • Flashing
    • Distributions
      • CentOS
      • Google Brillo
      • Jubilinux
      • Kali
      • Ostro
      • Ubilinux
      • Debian
  • Boot Loaders
    • U-Boot
  • Initialization
    • Upgrade
    • Boot Up
    • Dual Boot
    • Root Directory
    • Display Message
    • Modules
    • Filesystem
    • Memory
    • Backup
    • Recovery
    • Reboot
    • Processes
  • User Space
    • Virtual Network Computing
    • Text Editors
    • Services
    • Logs
    • Package Management Systems
      • Open Package Management
      • Python Package Index
      • Nicely Package Make
      • Advanced Packaging Tool
      • Manual
      • Conda
    • Libraries
      • Mraa
      • Upm
      • OpenCv
      • Temboo
      • Libiio
    • Frameworks
      • Cylon JS
      • Johnny Five
      • ROS
      • Gobot
      • Pixhawk
      • Artoo
      • Bower
      • Zetta
      • Miscellaneous
  • Subsystems
    • X File Systems
    • Pin Muxing
    • Virtual File System
    • Memory
    • Input
    • General Purpose Input Output
    • Serial
    • Bluetooth
      • Advanced Audio Distribution Profile
        • Bluez
        • Gstreamer
        • Alsa
      • Human Interface Device Game Controller
      • Serial Port Protocol
      • Arduino
    • WiFi
    • Audio
    • Camera
    • Block
    • Universal Serial Bus
      • Human Interface Device Mini Keyboard
      • Python USB
    • Inter Integrated Circuit
    • Inter Process Communication
    • Peripheral Component Interconnect
    • Clock
    • Modems
    • Networking
    • Power
    • Thermal
    • Graphics
    • LED
    • LIDAR
    • Printer
    • Serial Peripheral Interface
  • Application Development
    • C
    • C++
    • Cross Compile
    • Containers
    • Python
    • NodeJS
    • Cloud9
    • Data
    • Drone Code
    • Speech
      • Python
    • Radio Frequency
    • Bots
    • Artificial Intelligence
      • WitAi
      • MycroftAi
    • Games
    • Vision
      • Bar Codes
      • Google Cloud Vision API
    • Messaging
    • Entertainment
    • Home Assistants
    • Dashboards
    • IRC
    • Location
    • Facial Recognition
    • Software Defined Radio
    • REST
    • Notes
    • Security
    • HAM Radio
    • Automotive
    • Digital Signage
    • Photography
  • Debug
  • Wrap-Up
    • Online Training
    • Challenge
    • Tbd
  • SandBox
Powered by GitBook
On this page
  1. Initialization

Backup

Use dd to backup Intel Edison MMC

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
root@edison:~# dd if=/dev/mmcblk0 of=/dev/mmcblk1
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
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
PreviousMemoryNextRecovery

Last updated 7 years ago