I had the same problem; now fixed. As Dries says, the solution was to mount the share... but then I also had to use the dconf-editor and set org.gnome.rhythmbox.rhythmdb/locations to the mount directory. Simply using the Rhythmbox Music->Import Folder menu item only resulted in import errors being generated regardless of whether I directed it to a Nautilus 'bookmark' of the share or to a manually mounted share.
Setting up the share mount
First, install samba and cifs:
sudo apt-get update
sudo apt-get install samba cifs-utils
Then determine the IP address for your server. In this case, mine is called myserver:
Which will output something like this:
querying myserver on 192.168.1.255
You're looking at the second line of the output for the IP address of the server. Then edit your fstab file to automatically mount the share on that server each time your computer starts up. In this case, my share is called databox:
sudo gedit /etc/fstab
And insert this line at the bottom of the fstab file:
//192.168.1.10/databox /mnt/databox cifs noauto,guest 0 0
Now mount the share for this session:
sudo mount /mnt/databox
...and check that there are no errors. Your share should be listed when you type:
and you should be able to navigate to the share and view its contents:
If you've had errors at this point, you need to review the contents of your fstab file.
Note that this method assumed that your server doesn't have a DHCP IP address assigned to it by your router. You might need to 'fix' the IP address in your router configuration before proceeding. Also, if your network share requires a userid and password, you may need to change the guest option to something similar this.
Mounting automatically on each boot
Unless you want to have to manually mount the share after every boot with
sudo mount /mnt/databox, you also need to set up a script to automatically mount your share:
sudo gedit mountnfs
...and put the following into your script:
Reboot your system, and then check that the share has been mounted successfully with:
Note that Network Manager is the Ubuntu default. If you're using a different network tool, you could try placing this script into
/etc/network/if-up.d/ instead. You can't just set the fstab share option to
auto, because Linux tries to mount drives before it sets up networks. Other potential approaches for this stage might be to:
- include the _netdev option in fstab. However, this apparently doesn't work until you run
systemctl enable NetworkManager-wait-online.service, which requires systemd, which isn't fully compatable with Ubuntu.
- use autofs and automount, which apparently can hang the system on shutdown.
Getting Rhythmbox to recognise the music on your share
Now install and run the dconf-editor:
sudo apt-get install dconf-tools
Navigate through the tree to org.gnome.rhythmbox.rhythmdb and find the locations setting. Then change this setting to something like:
...check the monitor-library tickbox... and you're done! (fingers crossed)
NB: I'm using Rhythmbox 2.97 on Ubuntu 12.10 with Network Manager 0.9.6.0-0ubuntu7