This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can't access network files from Amarok

Tags: None
(comma "," separated)
mrmister
Registered Member
Posts
6
Karma
0
Hi everybody,

I'm fairly new to the Linux business and I'm currently trying out different media players. I have most of my media shared on a Windows 7 machine and after some work and a lot of reading I was finally able to access this windows share via Ubuntu through Samba. The share is currently mounted to my music folder and I can browse all files, open mp3s with Rythmbox and other players, but I can't seem to access them in Amarok. I tried adding the folder to my collection, but no files are added after scanning for almost an hour and when I navigate to the local folder from within Amarok I can see all folders, but simply no files (which are perfectly visible and accessible in Nautilus.

Any idea what the problem might be? As said above I'm pretty new so I don't know all the tricks yet. I would really appreciate any help because from what I read and have seen so far Amarok looks like a really great piece of technology.

Best whiches,
MrMister
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS
This is a well-known problem, a quick search on the web or a look at the Amarok Wiki brings you to this page:
http://amarok.kde.org/wiki/Samba
mrmister
Registered Member
Posts
6
Karma
0
Hi marcel,

thank you for the quick reply. I've tried for roughly two hours to get it to work and following the instructions on the page you posted, but I just can't get it to work.

This is the current line in fstab:

Code: Select all
//192.168.178.28/musik /home/myusername/Musik cifs credentials=/home/myusername/smbcredentials,file_mode=0444,dir_mode=0555 0 0


The mounting itself works perfectly (even after switching from the previous smbfs to cifs), I just don't see any files in Amarok. Could you please help me out? It seems my limited knowledge of Linux is still giving me a hard time, although I'm trying hard :(

Greetings,
mrmister
mrmister
Registered Member
Posts
6
Karma
0
No one's got an idea for me? :(
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Try to mount the share writable by setting file_mode=0644,dir_mode=0755 and add uid=yourusername to the options. As root

Code: Select all
$>umount /home/myusername/Musik
$>mkdir -p /net/Musik
$>mount -t cifs -o fmask=644,dmask=755,uid=myusername,credentials=/where/ever //192.168.178.28/musik /net/Musik


Check if the files/dirs are owned by myusername
If this works, you can make it permanently in fstab. I won't mount anything into a user's homedir, but it's your choice.

m0nk


If men could get pregnant, abortion would be a sacrament.
mrmister
Registered Member
Posts
6
Karma
0
Hi Dieter,

thanks four your reply. I tried the commands you provided, unfortunatelly I'm getting a few warnings and errors:

Code: Select all
<username>:~$ sudo mount -t cifs -o fmask=644,dmask=755,uid=<user_auf_win_pc>,credentials=/home/myusername/.smbcredentials //192.168.178.28/musik /home/myusername/Musik
WARNING: 'fmask' not expressed in octal.
WARNING: CIFS mount option 'fmask' is deprecated. Use 'file_mode' instead.
WARNING: 'dmask' not expressed in octal.
WARNING: CIFS mount option 'dmask' is deprecated. Use 'dir_mode' instead.
bad user name "<user_auf_win_pc>"


I can get around the first two warnings by using file_mode and dir_mode as suggested, however I'm still receiving a "Bad Username".
Isn't providing a uid a bit redundant anyway? After all it is stored in the .smbcredentials...?

Slightly confused Greetings,
MrMister
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please replace "<user_auf_win_pc>" with the contents of $USER ( or alternately the output of id -un )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mrmister
Registered Member
Posts
6
Karma
0
Hello bcooksley,

I ran id -un and it responed with the username on my Linux machine. Using that name sovled the warning/error thing and the folder is being mounted correctly, however I still can not see any of my files in Amarok, just the folder structure.

Code: Select all
sudo mount -t cifs -o file_mode=0644,dir_mode=0755,uid=<linux_username>,credentials=/home/<linux_username>/.smbcredentials //192.168.178.28/musik /home/<linux_username/Musik


The more I stare at this the dumber I feel :( I would really like to contribute something to the solution, but I don't see where I went wrong. And all my internet searches bring up a line pretty much like that and they seem to work for other people...

Thankful greetings,
MrMister
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I gather if you browse to $HOME/Musik/ in a file manager the various music files are visible?

If so, you may simply need to ask Amarok to rescan the directory.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mrmister
Registered Member
Posts
6
Karma
0
It seems I've solved the mistery... for some reason ffmpeg was not installed or it was buggy, I don't know, but since I reinstalled the package I can see MP3s in Amarok and play them.

Thank you for the help, if anything else should come up I'll be asking away :)

MrMister
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
the uid option leads to the files and folders are owned by the user "uid".
Just for info.

m0nk


If men could get pregnant, abortion would be a sacrament.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]