Volume for music in Amarok - permissions problem

Okay, I’ve been using Linux a long time, but I’ve gotten spoiled by not having to mess with stuff like this and have pretty much forgotten a lot about Linux itself. I have a volume that’s getting automounted that has all my music on it. I want Amarok to be able to access it and play the files. However, everything on that volume has the root as the owner. In opening a session of Dolphin in superuser mode, I tried to change the permissions and do it recursively through all the subfolders to my user. However, it gives me a little window as if activity is happening, and a few minutes later it disappears. The permissions have not changed. I’m assuming the volume is getting mounted as root? Maybe that’s the problem? How can I cause it to automount as accessible by the user?

So, we need to state openSUSE version and Desktop version and which Volume control you are using. For instance I use openSUSE 12.3, KDE 4.10.00 with KWIN Volume Control and if I start Amarok I get an extra Volume audio stream. The Master Volume and the Amarok Stream Volume both work. External adjusts of the Master Volume still work normally, but the Amarok Volume Control can be seen as setting the max Volume you can use. Playing with root Authority may be a problem down the road and should not be used.

Thank You,

Sorry, openSUSE 12.3 64 bit with KDE. And when I talk about volume, I mean disk volumes, not audio volumes. I’m sorry about the confusion. I have an entire disk volume of music and Amarok won’t scan because, I assume, the entire volume has root permissions. The disk gets automounted. I’m assuming I need this disk to automount with user permissions to get Amarok to scan it for files. I tried to change the files’ permissions from a superuser session of Dolphin, but it didn’t actually do anything to change the files’ permissions. I mount the volume as /mnt/music. Since Dolphin didn’t change it, I’m assuming that ‘chown -r <username>:<group> /mnt/music’ won’t do anything, either. My assumption is that the volume, itself, needs mounted as a user mounted volume? Am I correct? How can I pull this off and have it automounted?

Show us your fstab file from terminal type:

cat /etc/fstab

Paste the results here between code # tags using the advanced forum message text editor. You can edit this file as root using this utility:

SYSEdit - System File Editor - Version 1.00 - Blogs - openSUSE Forums

I normally set the mount folder to permissions of 777, which you can do with chmod. Have a look at my folder/file permission explanations here:

S.A.F.P. - SUSE Automated File Permissions - Version 1.0.4 - Blogs - openSUSE Forums

Thank You,

of course ,it won’t . You need to use a capital ‘R’

http://paste.opensuse.org/images/91434182.png

cat /etc/fstab

/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part6 swap swap defaults 0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part8 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part9 /home ext4 defaults 1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part5 /mnt/mint ext4 defaults 1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part7 /mnt/mint_home ext4 defaults 1 2
/dev/disk/by-id/ata-ST3500630AS_5QG0AKMW-part1 /mnt/music ntfs-3g user,users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part1 /mnt/windows ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Whenever I check the permissions of any file within the volume, it says owner=root, group=user. I went ahead and ran the ‘chown’ command through the console as root as su and no luck. Every file and directory in that volume still says the owner is root.

Here is my suggested setup. I spaced out everything for easy viewing, but that is not a required change:

/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part5   /mnt/mint      ext4    defaults,**noatime**       1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part6   swap           swap    defaults,**noatime**       0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part7   /mnt/mint_home ext4    defaults,**noatime**       1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part8   /              ext4    acl,user_xattr,**noatime** 1 1
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part9   /home          ext4    defaults,**noatime**       1 2
/dev/disk/by-id/ata-ST3500630AS_5QG0AKMW-part1    /mnt/music     ntfs-3g **defaults**,**noatime**       0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part1   /mnt/windows   ntfs-3g **defaults**,**noatime**       0 0
proc    /proc             proc    defaults        0 0
sysfs   /sys              sysfs   noauto          0 0
debugfs /sys/kernel/debug debugfs noauto          0 0
usbfs   /proc/bus/usb     usbfs   noauto          0 0
devpts  /dev/pts          devpts  mode=0620,gid=5 0 0


My Changes would be:

  1. Use the mount option of defaults for Windows NTFS partitions. I made this change on two partitions.
  2. Add in the option of noatime to all entries
  3. I suggest placing entries into drive/partition order. See the YaST Partitioner for the disk order.

Make the suggested changes, save the file and restart. You can do a mount -all in terminal as well, but a restart might be better.

Thank You,

Well, I did the fstab entry change on the /mnt/music/ volume. Here is my fstab:

cat /etc/fstab

/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part6 swap swap defaults 0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part8 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part9 /home ext4 defaults 1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part5 /mnt/mint ext4 defaults 1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part7 /mnt/mint_home ext4 defaults 1 2
/dev/disk/by-id/ata-ST3500630AS_5QG0AKMW-part1 /mnt/music ntfs-3g defaults, noatime 0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part1 /mnt/windows ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Now, the directory has root permissions and root as the group. Still not accessible by Amarok, and still won’t change the permissions either by Dolphin or ‘chown’ command.

So consider that I use Amarok, keep my media file on a NTFS partition and I use my above suggestions for the fstab file. I don’t use the common folder name of /mnt, but instead use the folder name of /Multimedia which had its permissions set to chmod 777 /Multimedia and mounted from the fstab file using the defaults settings. So, you have either a defectrive install of Amarok or some detail mentioned here is not actually been followed for some reason. What if as root you do his:

su -
cd /
mkdir MultiMedia
chmod 777 /MultiMedia

Then use the following line in your fstab file:

/dev/disk/by-id/ata-ST3500630AS_5QG0AKMW-part1 /MultiMedia ntfs-3g defaults, noatime 0 0

Restart and set Amarok to use this folder. If that still does not work, then create a new user and with the same setup, try again to use the Music from the /MultiMedia Folder and see if that works. Get back with results. It is time to make supper here and so I will be off line for a couple of hours and then back again.

Thank You,

First set of results: No go… Did everything you said to do except the new user account. Here is my fstab:

cat /etc/fstab

/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part6 swap swap defaults 0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part8 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part9 /home ext4 defaults 1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part5 /mnt/mint ext4 defaults 1 2
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part7 /mnt/mint_home ext4 defaults 1 2
/dev/disk/by-id/ata-ST3500630AS_5QG0AKMW-part1 /MultiMedia ntfs-3g defaults, noatime 0 0
/dev/disk/by-id/ata-ST31500341AS_9VS1WV86-part1 /mnt/windows ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Here is how the permissions for /MultiMedia came out:

http://img404.imageshack.us/img404/115/permissionso.png

I’ll create a new user tomorrow and try it.

If you find a new user works, you could just remove the Amarok setup files to see what that does:

Folder: /home/james/.kde4/share/apps/amarok/ & Files in: /home/james/.kde4/share/config/ amarokrc, amarok_homerc, amarok-appletsrc

Good Luck,

New user does nothing. Deleting Amarok’s config files does nothing. I’m absolutely convinced that the fact that openSUSE will not let me change the permissions of the files in that directory is what’s holding me up. I went so far, today, as to enable the root account and login to it to change the permissions. It wouldn’t let me. My notifications app on the taskbar gave me this:

http://img707.imageshack.us/img707/7091/rootpermissionchange.png

Then, again, I tried from a console using ‘chown -R <username>:<group> <filename>’ and got the same results - the entire volume and its contents are still stuck at root permissions. I found out that I can, actually, go and play individual files within Amarok. I just cannot add the files to my local collection.