First, you will have to mount the second partition somewhere. Lets assume you have mounted it at /disk2. Then the
source folder would be /disk2/www/from-linux. The
target folder is /www.
With the ln command you can create a link; ls -s
source target. So, in this example:
- Code: Select all
sudo ln -s /disk2/www/from-linux /www
sudo is needed in this case, because you are creating a folder in the root (/) folder and you are not normally allowed to do that. Also, you of course first need to remove any existing /www folder.
With the above command, the folder /www would be a link (shortcut if you will) and going there will actually show you the files that are stored at /disk2/www/from-linux.