Use dd to clone used content on sd card to an image? - Raspberry Pi Forums
there many options, clone whole image or use rpi-clone
idea use command:
"sudo dd bs=4m count=? if=/dev/mmcblk0 of=/mnt/pi_test.img"
need work out "count".
have @ picture of gparted of sd card. use raspi-config
expand full sd card.
step 1:
used content = 4m + 56m + 2700m = 2760m, think make 3g should enough.
step 2:
need use command
"sudo dd bs=4m count=? if=/dev/mmcblk0 of=/mnt/pi_test.img", need
work out "count"
4 * 1000 * 1000 * count = 3 * 1000 * 1000 * 1000, count = 750
step 3:
final command use:
sudo dd bs=4m count=750 if=/dev/mmcblk0 of=/mnt/pi_test.img
result:
booted, seems missing something, cannot startx, prompt
shows pi@(none)
idea use command:
"sudo dd bs=4m count=? if=/dev/mmcblk0 of=/mnt/pi_test.img"
need work out "count".
have @ picture of gparted of sd card. use raspi-config
expand full sd card.
step 1:
used content = 4m + 56m + 2700m = 2760m, think make 3g should enough.
step 2:
need use command
"sudo dd bs=4m count=? if=/dev/mmcblk0 of=/mnt/pi_test.img", need
work out "count"
4 * 1000 * 1000 * count = 3 * 1000 * 1000 * 1000, count = 750
step 3:
final command use:
sudo dd bs=4m count=750 if=/dev/mmcblk0 of=/mnt/pi_test.img
result:
booted, seems missing something, cannot startx, prompt
shows pi@(none)
if don't use count=nnnn dd copy start end of input file.
raspberrypi
Comments
Post a Comment