mapping 2 folders

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

mapping 2 folders

Postby UnknownPlayer on Wed Feb 01, 2012 10:20 pm

Hi,
i need help with mapping folder.
How can i map folder from linux mint, to folder on partition for storage, i wonna make that like backup, so i can take that files from windows, on that storage partition?
Like this:
- have folder on linux "/www/"
- to map on second partition on folder "/www/from-linux/"

Can someone help me?
UnknownPlayer
Level 1
Level 1
 
Posts: 9
Joined: Wed Jan 04, 2012 12:43 pm

Linux Mint is funded by ads and donations.
 

Re: mapping 2 folders

Postby xenopeek on Fri Feb 03, 2012 1:53 pm

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.
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10493
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Other topics

Who is online

Users browsing this forum: kjfizegfuzeg and 6 guests