Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm dual booting Win7 and 12.04 and I want to link my two music folders together.

Basically I want the contents of my Win7 music directory to appear in my Ubuntu music directory.

share|improve this question
    
Do you require that the Windows music be browseable in ~/Music? Because you should be able to add the second music folder to your Rhythmbox or Banshee music library if you just want it to appear in those programs. –  James Henstridge May 21 '12 at 1:36
add comment

2 Answers

up vote 3 down vote accepted
  1. Can you see the Windows drive from Ubuntu? If yes, then you can see whatever changes you make in Windows, directly in Ubuntu. You have to find the Windows music folder in nautilus and then Right clickPropertiesLocation. This is the "source" location, e.g. /media/Windows/Users/Nick/Music

  2. Do you have anything in the Ubuntu music folder? If yes, you need to move the contents to another folder, e.g. on Desktop

  3. Now you need to find the path for the Ubuntu music folder. Do what we did on step 1. This is the "target" location, e.g. /home/nick/Music

  4. The Ubuntu music folder should be empty by now, delete it

  5. Open a terminal and write:ln -s "source" "target" substituting with the paths we found in steps 1 and 3, e.g. ln -s /media/Windows/Users/Nick/Music /home/nick/Music

  6. If you had data in your Ubuntu music folder in step 2, you can now move them back to the new folder.

share|improve this answer
2  
If you have followed step-5, that is, creating Symbolic link that points to Windows partition, it may not have mounted when you start your computer and you may need to mount it either manually or you can auto-mount it upon startup using file /etc/fstab –  Kush May 20 '12 at 17:51
    
@Kush That's true, but I assume that he will use nautilus to access the music folder which will auto-mount the folder –  Nick Andrik May 20 '12 at 18:08
add comment

open your terminal, use ln -s source destination, because your folders reside in different mount points you must use -s option in the ln command

share|improve this answer
    
Is there a way to make it so that the changes I make in my destination directory occur in my source directory? –  Sai May 20 '12 at 16:36
    
just link two folders use that command, then they will be sync completely –  Ali Dehghani May 20 '12 at 16:54
    
I have tested your command, but what I get in the destination directory is a symbolic link to the source directory. So what I'm having to do is go into the destination directory and click a link to the source directory. What I'm wanting is for the contents of the source directory to be displayed in destination directory, so that when I go into the destination directory, I immediately see the contents of the source directory. I've tried running: ln -s source/* destination but this just gave me symbolic links to the contents of the source directory –  Sai May 20 '12 at 17:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.