I would like to move some directories that contain binaries to an SSD drive. How should I safely go about it?
- /usr
- /opt
Please consider safely emphasized.
[14.04.1]
I would like to move some directories that contain binaries to an SSD drive. How should I safely go about it?
Please consider safely emphasized.
[14.04.1]
gparted
, choose the SSD, create a partition 25% larger then the total size of /usr and /opt, format as ext4blkid
of the new partitionfstab
filefstab
of the system and add the correct mount parameters for the new partitions, but do not save yet!cp --force --preserve --recursive --verbose /dev/HDD/opt /dev/SSD/opt 2>>/tmp/copy_error.txt
(and usr
too of course\/opt
and /usr
to /opt_old
and /usr_old
diff -r /dev/SSD/opt /dev/HDD/opt_old
(and usr
)fstab
mount --all
don't do it!