We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

SD card mounted with wrong permissions

asked 2019-05-08 21:22:51 +0200

attah gravatar image

updated 2019-05-08 21:23:16 +0200

This s more of a bug report than a request for workaround. I decided to get a new SD card, formatted it ext4 on my workstation and inserted it to my XA2. It gets recognized alright, but i can't access it. It says something akin to permission denied. So i tried as root, and lo and behold it works. This makes no sense, why would it keep me, "nemo" from using the SD card?

The mount directory for my old card has these permissions:

drwxr-xr-x 46 nemo root 4096 May  7 21:14 3ad74e88-65fb-44fd-affe-628a148717f0

The new one has these:

drwx------ 45 system system 4096 May  7 22:03 Lexar2

I obviously could not, and have not, influence the creation of these. What's up with this?

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-05-08 21:52:59 +0200

olf gravatar image

updated 2019-05-08 22:20:48 +0200

As there supposedly was no user nemo with the UID 10000 on your desktop machine, you implicitly created a filesystem ("formatted") with the wrong permissions.

Do create the filesystem(s) on SD-card anew on your SailfishOS device,, either by using Settings -> Storage or Guide: Creating partitions on SD-card, optionally encrypted (because either was is simpler and less error prone than trying to rectify a filesystem created on a PC).

edit flag offensive delete publish link more

Comments

This should not have to be an issue, it's unreasonable behaviour. Can't the mount process override this to make cards usable regardless? They are removable media after all... Settings -> Storage won't let me format.

attah ( 2019-05-08 22:11:08 +0200 )edit

Actually it did let me format when unmounted, i thought i had already tried, but apparently not. Well, that just makes the card unusable in my workstation, this is ridiculous.

attah ( 2019-05-08 22:24:30 +0200 )edit

Can't the mount process override this to make cards usable regardless?

It could, but IMO ignoring filesystem permissions on any partition / mass storage device would constitute a major bug (potentially resulting in a couple of issues).

Settings -> Storage won't let me format.

Well, you have aforementioned alternative at hand.

olf ( 2019-05-08 22:25:40 +0200 )edit

It could, but IMO ignoring filesystem permissions on any partition / mass storage device would constitute a major bug (potentially resulting in a couple of issues).

Do elaborate! Making it so that removable media is no longer movable is pretty severe already. (And i'm not necessarily talking full-on ignore, but say map the owner of the top-level to nemo)

attah ( 2019-05-08 22:29:04 +0200 )edit

Making it so that removable media is no longer movable [...]

That is not the case, i.e. working fine.
Or use FAT, which provides no UNIX-style filesystem permissions.

olf ( 2019-05-11 16:19:55 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2019-05-08 21:22:51 +0200

Seen: 163 times

Last updated: May 08 '19