- First make a backup of the files in the original SSD.
- Formant the new SSD in NTFS format. [required for next steps, ext4 won't work.]
- Find the UUID of the SSD in the "Disks" app. Or use "sudo blkid" in terminal
- Create
/etc/udev/rules.d/80-local.rulesfile and append the following line to itThis line adds a symbolicACTION=="add", KERNEL=="sd?", ENV{ID_FS_UUID}=="<UUID>", SYMLINK+="<some name to come up in /dev>"/dev/some nameto be used by docker to be able to access it inside a docker container usingdevicesin the docker-compose file. - run
sudo udevadm control --reload-rules && sudo udevadm triggerto update the rules - Now modify the
/etc/fstabfile to fix the mount point of the SSD on startup. Add the following line to the filechangeUUID=<UUID> <Absolute path mount point> auto quiet,defaults,permissions,umask=007,uid=33,gid=33 0 2<UUID>and<Absolute path mount point>to what you like. sudo mount -are-reads thefstabfile and mount SSDs according to that file.- Now change the directories and links according in the docker-compose file.