I have an OpenElec based HTPC which boots from a USB stick. I would like to replace this with an SSD drive. What is the best way of copying the USB image to the SSD. Is this something that dd could do or would I be better off reinstalling on the SSD from scratch?
dd should work, if you want to use the same filesystem there.
Unfortunately the new partition will have the same size; you probably need to enlarge the partition afterwards.
Some partitioning tools allow you to copy data from one partition to another (the one in the debian installer does) but they might just use
Of course should be capable of resizing the partition afterwards.
Personally I would suggest using
rsync with appropriate flags.
rsync --archive --hard-links --acls --xattrs --one-file-system, that should get you pretty much everything.
Please check the man page if these flags are right for you, you might not need --acls or --xattrs. But you should use --one-file-system or strange things will happen with /proc and the like.