M
M
Magzhan Birgebayuly2016-01-09 17:39:11
Apache HTTP Server
Magzhan Birgebayuly, 2016-01-09 17:39:11

How to mount a hard drive to the site folder /web/localhost/videos?

There is a site in the /web/localhost directory, you need to mount your hard drive in order to have access to the video.
Or, what other way is there?
Moving is not an option - low memory

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vaut, 2016-01-09
@henhanshi

mount --bind olddir newdir

V
Vladimir Martyanov, 2016-01-09
@vilgeforce

You can, you could just try and get the desired result.

A
Alexander, 2016-01-09
@bIbI4k0

Make a symlink.
ln -s command.

N
neatsoft, 2016-01-10
@neatsoft

In order for the disk to be automatically mounted to the specified directory on each reboot, you need to edit the /etc/fstab file.
First, we find out the type of the partition, and its UUID (unique identifier):
(_disk_ is the descriptor of the partition to be mounted, for example - sda1)
Then add the following line to /etc/fstab (sudo nano /etc/fstab, Ctrl+O, Ctrl +X):
where _uuid_ is the identifier (for example, 7728219a- a119-43ee -b2a0-25b036d80e11) and _type_ is the partition type (for example, ext4
)

man fstab
man blkid
man mount

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question