Code: Select all
dd if=/dev/sdc of=/home/pi/32gb_sd.img count=USED
Bingo! Give that man a cigar!RaTTuS wrote:you can just make the filesystems [fat32 and ext]
on the new card then
copy the files over
Whatever that means...atux_null wrote:sorry but thus does not get my job done. i do need to create an image (.img) which is a backup of my working system. the actual size, not the whole sd with the empty space.
Use the "count=BLOCKS" option of ddatux_null wrote:thanks a lot for the quick replies.
i have another raspberry that i already have gparted installed.
i would like some help since i am confused now.
the 32GB card has a fat32 partition of ~150MB, a partition of 2.4GB ext4 and empty space the rest of the card. what do i need to resize?
when i plug that sd card to the usb adapter it has been seen as /dev/sdc and i want to save it to /home/pi
if i do
dd /dev/sdc of=/home/pi/32gb_sd.img bs=512k it creates a 32gb img file.
what can i do?
That is showing a 15GB ext4 filesystem, not a 2.4GB one!You are using the full 16GB card.atux_null wrote:i am using dd as a tool to create it. the df -h has
root@raspberrypi:[~]: df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 983M 14G 7% /