I just got an SSD and wanted to migrate my current Ubuntu installation to take advantage of its performance.
So I booted to an Ubuntu live CD, mounted source (ext4) and target (SSD,
btrfs mounted with
compress-force=zlib,nodatacow,noatime,rw,ssd) drives and began copying files using rsync:
sudo rsync -av --exclude=/home/ '/media/username/source/' '/media/username/target' # /home stays on HDD for now
Rsync finished the job without problems. The file count is similar (about 1.2 million files average, number obtained by right click > properties on Nautilus), but the resultant copy is 31GB, way larger than the source which is only 18GB.
Checked sizes by various methods:
- Right click > Properties
btrfs filesystem df
All gave similar results, source is way smaller.
I know that btrfs uses some kind of metadata journal and "shadow copies" of files when COW is on. But COW is off and even if it were on, is the first population of data plus noway 12GB out of 31GB could be metadata; right? o.o
Any idea on WTH is going on? or better yet, how to fix it?