创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


note:spoony:flashing-the-sd-card-using-mac

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
note:spoony:flashing-the-sd-card-using-mac [2016/12/27 23:56]
Spoony 创建
note:spoony:flashing-the-sd-card-using-mac [2017/03/15 17:26] (当前版本)
行 23: 行 23:
 0: FDisk_partition_scheme *7.9 GB disk2 0: FDisk_partition_scheme *7.9 GB disk2
 1: DOS_FAT_32 CANAKIT 7.9 GB disk2s1 1: DOS_FAT_32 CANAKIT 7.9 GB disk2s1
-<​code>​+</code>
  
 Find the unit name that corresponds to your SD card (looking at the sizes of the drives will help you identify the right one). In the previous example, it's /dev/disk2. Find the unit name that corresponds to your SD card (looking at the sizes of the drives will help you identify the right one). In the previous example, it's /dev/disk2.
行 43: 行 43:
  
 After launching the command you should wait for the flashing process to complete. It can take several minutes, and you'll know that it has completed when the prompt comes back with no errors. After launching the command you should wait for the flashing process to complete. It can take several minutes, and you'll know that it has completed when the prompt comes back with no errors.
 +
 +许多时候可能希望能够在备份磁盘分区的同时,压缩备份数据以节省空间,这是可以与gzip等压缩命令一起使用。
 +
 +例如备份磁盘sda并使用gzip压缩备份数据:
 +
 +dd if=/dev/sda | gzip >/​mnt/​backup/​backup_sda.dd.gz
 +
 +上面示例命令中,命令dd首先从磁盘sda中读取数据,并将这些数据通过管道交给第2个命令gzip。gzip将这些数据压缩之后,通过重定向的方式写入文件backup_sda.dd.gz中。
 +
 +如果要将使用gzip压缩后的数据恢复到磁盘sdb中,可以反向使用以上命令:
 +
 +[root@localhost ~]# gzip -dc /​mnt/​backup/​backup_sda.dd.gz | dd of=/dev/sdb
note/spoony/flashing-the-sd-card-using-mac.txt · 最后更改: 2017/03/15 17:26 (外部编辑)