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.

Basically I'm wanting my Ubuntu music folder to direct me to my Windows music folder, so that when I click my Ubuntu music folder I see the contents of my Windows music folder. I've already got my Window partition to mount automatically so that won't be an issue. Any ideas on how to accomplish this?

share|improve this question
    
Welcome to Ask Ubuntu! When your question is resolved, please accept the answer which fixed the problem for you (by clicking the checkmark icon on the left of it) rather than by editing the question title. This properly marks the question as resolved and which answer resolved it; it also rewards the answerer with additional reputation and helps maintain your acceptance rate. Thanks! –  WarriorIng64 Jan 3 '12 at 18:20

1 Answer 1

If you wish to access your music files in your Windows mount by using your ~/Music folder you can use mount --bind to mount the path to your Windows files in to your ~/Music folder.

You could make that automatic by adding the following /etc/fstab line (after the line that mounts your Windows partitions) using your favorite text editor, ie:

sudo nano /etc/fstab

/path_to_windows_files/music_folder /home/your_username/Music bind defaults,bind 0 0

where:

  • path_to_windows_files/music_folder: is the path which contains the mounted Windows music files
  • your_username: is your username or the name of the user that will have the files mounted

Close it with Ctrl+x and select y to save the file.

share|improve this answer
    
Could you maybe give me an example? I'm assuming the command would look something like mount --bind /path/windows/music /path/ubuntu/music –  forgeSHIELD Jan 3 '12 at 1:18
    
Was working on it, it should be clear now. –  Bruno Pereira Jan 3 '12 at 1:20
    
@forgeSHIELD if you edit your questions and add the actual paths you have things mounted to he can make it exactly what you need. –  Jorge Castro Jan 3 '12 at 17:20
    
Ok I've got it in there, but have run into another problem. The path to my windows music folder has a space in it, so it looks like this: /media/NTFS/My Name/Music When I restart then, it tries to find the folder Name/Music which does not exist –  forgeSHIELD Jan 3 '12 at 17:58
    
Fixed it. To add a space in the file path you need the escape \040, so my sample path would look like: /media/NTFS/My\040Name/Music. Thank you for your help @BrunoPereira –  forgeSHIELD Jan 3 '12 at 18:14

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.