树莓派写卡/换卡/扩容/备份

从img文件写卡:dd bs=4m if=xxxx-xxxx-raspbian.img of=/dev/xxx


换卡/扩容/备份:
进系统,插入新卡或者用读卡器转接的新卡,umount掉/media/xxx
然后sudo dd bs=4M if=/dev/mmcblk0 of=/dev/sda(也有可能是sdb sdc…)
拷贝过程没提示,等待即可
拷贝完了之后换新卡启动,使用sudo raspi-config工具里的扩展空间即可

高容量卡拷贝到低容量卡应该不行

猜你喜欢

转载自blog.csdn.net/sxhexin/article/details/108807864
今日推荐