Debian size and uSD

arne anka openmoko at
Wed Oct 1 11:58:52 CEST 2008

> Another thing is I bought a 2G uSD and I want to move my debian system to
> that card. If I manually partition it (8MB fat and rest ext2) and just  
> copy
> contents of 512M, would it work? Or maybe i can copy an image using dd  
> and
> then somehow resize the partition. Anyone tried migrating from one SD to
> another?

do not use plain cp -- it will most likely result in some corruption of  
special files.
your best bet would be either tar or rsync, depending of your usecase.

for rsync (and tar on-the-fly) you could copy the partitions with dd,  
mount the images with loop and transfer your data.

More information about the community mailing list