Can't chmod the sdcard. [answered]

asked 2016-07-14 22:20:33 +0300

updated 2018-12-03 20:56:19 +0300

Tanghus gravatar image

Hi. I've been trying to chmod an sdcard folder but the command seems to do absolutely nothing. Am I doing it wrong or have I misunderstood something?

Setting: Jolla, Taalojärvi, developer mode on, devel-su, chmod -R 771 /media/sdcard/xxxx-xxxx.

The card is a 64 GB micro-sd that works with Sailfish apps (at least File manager can view and move files to it, but in the other hand also can't change its permissions). I'm trying to do this to enable an Android app to use this folder in order to save space from the phone.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Moshroom
close date 2016-10-27 10:36:27.854023


So, if i understand correctly, the command works fine but nothing happens, right ?

ced117 ( 2016-07-14 22:49:21 +0300 )edit

Yes, I've used it with other folders and it works fine. But when trying with sdcard (the card itself or any folder on the card), the permissions just don't change.

Moshroom ( 2016-07-14 22:59:22 +0300 )edit

What Filesystem do you use on your SD-Card? If i am allowed to guess, i think it is NTFS or FAT, and those don't use the linux-permission-system. so with those you are not able to chmod anything on the SD-Card.

Hades0299 ( 2016-07-15 02:58:08 +0300 )edit

First FAT32. Result was that Podcast Addict (Android app) couldn't use it and chmod didn't work. Then Ext4 - devel-su,chmod worked, but even Gallery couldn't read the card. But thanks anyway. The problem was definetly the file system. Do you have a recommendation about preferred file system for sdcard on Jolla?

Moshroom ( 2016-07-16 08:05:39 +0300 )edit

The filesystem depends on what you want to do. If you have windows on your computers and want to read th sd-card from there, you should stick with NTFS or FAT(32|64). If that isnt the case, i would personaly choose btrfs, there you can play with some interresting setups with the internal memory.

Hades0299 ( 2016-07-16 11:40:40 +0300 )edit