USB drive folders owner

Hello,

I’m very happy using OSMC on my Rasperry Pi2, very easy to setup and use for most usual features.

I’m trying to change, using sudo chown, rights access from osmc:osmc to root:root for a folder located on a USB drive that OSMC mounted automatically

command returns no error but it remains with osmc:osmc rights (it works fine on other non-USB folder)
My drive is NTFS formatted, so I guess this is the issue but how could I change some parameter for automount (or whatever is managing USB auto mounting) to allow me to use chown for this USB drive?

osmc@framboise:/media/Tera II$ ls -al
total 93
drwxrwxrwx 1 osmc osmc 4096 Oct 28 09:22 $RECYCLE.BIN
drwxrwxrwx 1 osmc osmc 8192 Jan 30 08:17 .
drwxr-xr-x 8 root root 4096 Jan 30 07:16 …
-rw-rw-rw- 2 osmc osmc 56 Oct 28 09:21 .dropbox.device
drwxrwxrwx 1 osmc osmc 8192 Jan 27 19:08 AFAC
drwxrwxrwx 1 osmc osmc 4096 Jul 25 2013 Camescope
drwxrwxrwx 1 osmc osmc 28672 Mar 8 2015 Concerts
drwxrwxrwx 1 osmc osmc 4096 Jan 29 21:42 FTP
drwxrwxrwx 1 osmc osmc 4096 Jan 30 2015 Montages
drwxrwxrwx 1 osmc osmc 4096 Jan 23 14:45 PRO
drwxrwxrwx 1 osmc osmc 4096 Dec 9 19:35 System Volume Information
drwxrwxrwx 1 osmc osmc 20480 Dec 5 08:59 fOTOS
-rw-rw-rw- 1 osmc osmc 5 Jan 30 08:17 test.tst
osmc@framboise:/media/Tera II$ sudo chown root:root test.tst
osmc@framboise:/media/Tera II$ sudo chown root:root FTP
osmc@framboise:/media/Tera II$ ls -al
total 93
drwxrwxrwx 1 osmc osmc 4096 Oct 28 09:22 $RECYCLE.BIN
drwxrwxrwx 1 osmc osmc 8192 Jan 30 08:17 .
drwxr-xr-x 8 root root 4096 Jan 30 07:16 …
-rw-rw-rw- 2 osmc osmc 56 Oct 28 09:21 .dropbox.device
drwxrwxrwx 1 osmc osmc 8192 Jan 27 19:08 AFAC
drwxrwxrwx 1 osmc osmc 4096 Jul 25 2013 Camescope
drwxrwxrwx 1 osmc osmc 28672 Mar 8 2015 Concerts
drwxrwxrwx 1 osmc osmc 4096 Jan 29 21:42 FTP
drwxrwxrwx 1 osmc osmc 4096 Jan 30 2015 Montages
drwxrwxrwx 1 osmc osmc 4096 Jan 23 14:45 PRO
drwxrwxrwx 1 osmc osmc 4096 Dec 9 19:35 System Volume Information
drwxrwxrwx 1 osmc osmc 20480 Dec 5 08:59 fOTOS
-rw-rw-rw- 1 osmc osmc 5 Jan 30 08:17 test.tst
osmc@framboise:/media/Tera II$

Both on a file or a folder, same result

Using mount I have

/dev/sdb1 on /media/Tera II type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks)

This drive was formatted under Windows formally several years ago and if possible would like avoid reformatting it…
but if needed Ok, was would be the best command to format it safely as NTFS ? (I’d like to be able access it from Windows too)

thanks for any hint !!

Olivier

Yep, 100 points. you can not change the owner of individual folders on an NTFS mounted drive. The ownership is decided at boot time.

Ok, thanks.

any recommendation to format this disk in order to get it compatible with both Linux and Windows (and being able to change rights on both) ?

Olivier

Hi Olivier,

exFAT worked for me. I eventually switched to ext4 because I came to realize I’m not unplugging the HDD so often. So I decided to keep it all “Linux”. Only trouble you might sometimes experience is with scrapers not picking up new shows or movies. This is due to a different method of determining if a folder content has changed or not. You can always revert to the classical method by editing the advancedsettings.xml like so:

echo -e " <advancedsettings> <videolibrary> <usefasthash>false</usefasthash> </videolibrary> </advancedsettings> " > ~/.kodi/userdata/advancedsettings.xml sudo systemctl restart mediacenter
Hope this helps.

Cheers
Ralph

I don’t think exFAT supports ownership management which is what the @Bochets34 is looking for.
I am not aware of any FS that would support that on Linux and Windows.

Right. Kinda lost track of the topic at hand… My bad.

I formated my disc to ext4 and used Paragon ExtFS for Windows software. It’s a free software.

This is what I’ve been using since it came out. Sure makes like easier.