HD to SSD question.

Roberto Ragusa mail at robertoragusa.it
Tue Aug 20 09:12:26 UTC 2013


On 08/19/2013 09:43 PM, Mateusz Marzantowicz wrote:
> If I were you I'd go with fresh partition and new filesystem. Now, it's
> a good time to optimize your filesystem, maybe fix some broken metadata
> and i-nodes. You don't copy all that garbage. If you simply use dd, you
> also preserve potential errors present on your current fs.

Right, and then there is the "discard" factor when using SSDs.
The SSD works better when knowing which data blocks are used and
which are unused; writing with dd will set everything as "used"
(this will not happen with mkfs + cp).

If you want to use dd to copy filesystems, it would be wise to
also use e2fsck with the "discard" option to rebuild the used/unused map
of the SSD after the copy.
Same thing with swap (I would hope mkswap implements discard), if you
copy the entire disk.

Best regards.

-- 
   Roberto Ragusa    mail at robertoragusa.it


More information about the users mailing list