Ask / Submit
1

No access to formatted sd-card [duplicate]

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

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 +0200

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 +0200 )edit

cannot create anything

Perfect_Gentleman ( 2016-09-14 13:34:51 +0200 )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 +0200 )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 +0200 )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 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

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

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 +0200 )edit

Question tools

Follow
1 follower

Stats

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

Seen: 362 times

Last updated: Sep 14 '16