When Linux was young disks was not as big as they are know.
To minimize the load and wear on server disks it was common to place various system folders on separate disks.
Create a partition on your HDD - give it an adequate amount of space.
Ensure that the system folder
/opt is empty.
Get the UUID of the partition you created using the command
lsblk -o UUID /dev/sdXy
Add an entry in /etc/fstab
# /dev/sdxY mountpoint filesystem options pass
UUID=your-disk-uuid /opt ext4 rw 0 0
sudo mount -a
You can know install any application to /opt and rely on it residing on your harddrive and not your ssd.
You can do the editing of your fstab using these three commands in your terminal - remember to replace
/dev/sdXy with your actual drive and partition
$ su -
# echo "UUID=$(lsblk -no UUID /dev/sdXy) /opt $(lsblk -no FSTYPE /dev/sdXy) defaults,noatime 0 0" >> /etc/fstab
# mount -a
The information in these howto's might be of inspiration
Some Linux users like to experiment with their system and more often than not it leads to the decision of reinstalling the system. That repeatedly creates the issue on how to handle the home folder with configurations and personal files.
The purpose of this document is to create an easy and convenient way of safeguarding personal data files while retaining the home folder.
The motivation for creating this document was
Make a permanent mountpoint.
The FHS document has a limited scope:
Local placement of local files is a local issue, so FHS does not attempt to usurp system administrators.
FHS addresses issues where file placements need to be coordinated between multiple parties such as local sites, distributions, applications, documentation, etc.
So for the sake of this HowTo there is no standard as we are talking about
Local placement of l…