Junior — Middle
How can a physical disk be connected to a specific directory in the system?
sobes.tech AI
Answer from AI
You can connect a physical disk to a specific directory in the system using mounting. In Unix-like systems, this is done with the mount command. For example, if you have a disk accessible as /dev/sdb1, and you want to connect it to the directory /mnt/data, you should execute:
sudo mount /dev/sdb1 /mnt/data
It is important that the directory /mnt/data exists beforehand. After mounting, the contents of the disk will be accessible in this folder. To make the mounting happen automatically at boot, you need to add the appropriate entry to the /etc/fstab file.