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

No access to formatted sd-card [duplicate]

asked 2016-09-14 12:48:40 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2016-09-14 23:06:26 +0300

czdosi gravatar image

I've formatted SD-card to ext4 within the smartphone and had no access to it. I did devel-su chown -R nemo:nemo /path/to/mounted/sdcard.

Did i do it right or wrong ?

This question is duplicating: https://together.jolla.com/question/138603/wrong-premission-after-sd-card-formated-by-native-storage-app-to-ext4/

edit retag flag offensive reopen delete

The question has been closed for the following reason "duplicate question" by czdosi
close date 2016-09-14 23:02:00.452684

Comments

Can you elaborate about "no access"?

Giacomo Di Giacomo ( 2016-09-14 13:33:59 +0300 )edit

cannot create anything

Perfect_Gentleman ( 2016-09-14 13:34:51 +0300 )edit
1

Rather than chown, try a chmod 777 on the root of the card. It worked for me.

Giacomo Di Giacomo ( 2016-09-14 16:33:35 +0300 )edit

I had the same problem. After the same command, a reboot solved the problem and now I can read/write on card.

magullo ( 2016-09-14 16:44:06 +0300 )edit

I think changing the owner to the phone's user (chown nemo:nemo ) is better than making the card universally writeable by anything (chmod 0777)

DrYak ( 2016-09-14 18:56:57 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-09-14 13:22:29 +0300

Kromonos gravatar image

Looks right for me. You need to be root to format a card. That's normal linux behavour. Then, you had first to mount, then to change owner of the directory, as you did.

edit flag offensive delete publish link more

Comments

1

The same behaviour is expected for any other typical Unix filessystem beside ext4 (e.g.: btrfs, etc.) that stores access rights.

It doesn't happen with FAT32 / exFAT(*) as those don't have any concept of access rights and the sailfish OS' mounting daemon typically make it accessible for nemo:nemo (the default phone user).


(*) for licensing reason exFAT isn't supported out of the box. So one either need to reformart SD Cards >32GB, or one needs do install exFAT support from openrepos.net

DrYak ( 2016-09-14 19:00:29 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2016-09-14 12:48:40 +0300

Seen: 519 times

Last updated: Sep 14 '16