SD Card Backup

本文介绍如何使用Linux系统下的终端命令进行SD卡的镜像文件备份及将镜像文件写回另一张SD卡的过程。涉及的步骤包括识别SD卡设备名、备份SD卡为镜像文件、卸载设备并使用dd命令将镜像文件写入目标SD卡。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. precondition:
    * SD card(with image on it; hereafter short for SD1)
    * SD card(without image on it; hereafter sort for SD2)
    * PC (OS: Linux -> Ubantu)
    * SD card reader
    * IMG_FILE(target image file)
  2. backup image of SD card(diagram: sd1 <> SD card reader <> PC)
    * [input command on terminal of PC] df -h
    * [find mounted sd card name] <device_name>
    * [input command on terminal of PC to save as image file]
    sudo dd if=/dev/<device_name> of=/<save_image_file_name>
  3. write to SD card (diagram: sd2 <> SD card reader <> PC)
    * [find mounted name of sd card] df -h; sudo fdisk -l
    * [unmount them] sudo umount <device_name>
    * [write to SD card] **sudo dd if=**IMG_FILE of=/dev/<device_name>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值