Bind Mounts

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Bind Mount

no_reply@example.com

December 27, 2018

How to use bind mounts in linux

Directory to be mounted elsewhere to extend space - /home/user/Pictures

Directory to be used for bind to use extra space - /opt/bind_Pictures

The following command will do it:


mv /home/user/Pictures /opt/bind_Pictures
mkdir /home/user/Pictures
sudo mount -o bind /opt/bind_Pictures /home/user/Pictures

To make it persist across reboots, add the following to /etc/fstab:

/opt/bind_Pictures /home/user/Pictures none bind 0 0

You might also like