maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   How do I write to & read from SD? (https://talk.maemo.org/showthread.php?t=99993)

rfa 2017-10-21 00:24

How do I write to & read from SD?
 
Hi,

I have a 200 GB uSD card which Sailfish X can see, but get the message
Quote:

No permission to access /media/sdcard/"label"/lost+found
Lost+found being the only folder on the (ext4) formatted SD card

Where should I be looking for answers?

rfa 2017-10-21 06:08

Re: How do I write to & read from SD?
 
My searching tells me I should:

install warehouse from openrepos
within warehouse install, uninstall, then reinstall this.

but, the only thing happening is the sd card not mounting during the uninstall step.

There is still no permission to access /media/sdcard...

suicidal_orange 2017-10-21 06:20

Re: How do I write to & read from SD?
 
What exactly is the problem?

I think the card mounts but with the wrong permissions, so
Code:

ls -l /media/sdcard
doesn't say this?

Code:

drwxr-xr-x 2 nemo nemo ...
If so you might be able to change it, but it probably won't stick when you reboot...
Code:

chown nemo:nemo /media/sdcard/"label"/
What device are you using and why did you decide on ext4?

rfa 2017-10-21 09:03

Re: How do I write to & read from SD?
 
Quote:

Originally Posted by suicidal_orange (Post 1537385)
What exactly is the problem?

I think the card mounts but with the wrong permissions, so
Code:

ls -l /media/sdcard
doesn't say this?

Code:

drwxr-xr-x 2 nemo nemo ...
If so you might be able to change it, but it probably won't stick when you reboot...
Code:

chown nemo:nemo /media/sdcard/"label"/
What device are you using and why did you decide on ext4?


ls -l /media/sdcard/
returns:
Code:

total 8
drwxr-xr-x 2 nemo nemo 4096 2017-10-20 15:32 2205-6F10
drwxr-xr-x 3 root root 4096 2017-10-21 19:24 "label"

chown nemo:nemo /media/sdcard/"label"/
returns:
Code:

chown: changing ownership of '/media/sdcard/"label"/: Operation not permitted
I'm using SailfishX, with a SanDisk Ultra 200GB Micro SDXC. I used ext4 as it seemed to be the best for this card/device combo :) - I can change to another - either from windows or using terminal - with instructions

suicidal_orange 2017-10-21 09:25

Re: How do I write to & read from SD?
 
You need to be root to run the command to change the permissions - run 'devel-su' and enter the password from the screen where you enabled developer mode.

The X doesn't have btrfs yet so ext4 is probably the right choice :)

rfa 2017-10-21 10:38

Re: How do I write to & read from SD?
 
Code:

devel-su
Password
chown nemo:nemo /media/sdcard/"label"/

then, both before & after reboot, gives (in Settings, Storage, Memory card) "No permission to access /meda/sdcard/"label"/lost+found"

:/

suicidal_orange 2017-10-21 10:58

Re: How do I write to & read from SD?
 
Yes, you can't access lost+found but you should be able to make a new folder or paste files next to it. You can add lost+found to the chown command if you want to use that folder.

mrsellout 2017-10-21 10:59

Re: How do I write to & read from SD?
 
The Lost+found folder is a special system folder that regular users like nemo can't normally access. Can you create a folder in /media/sdcard/"label"/ ?

eg
Code:

mkdir /media/sdcard/"label"/data
you might need to use devel-su , and if so you may need to chown it as done previously.

suicidal_orange 2017-10-21 11:20

Re: How do I write to & read from SD?
 
Quote:

Originally Posted by mrsellout (Post 1537398)
The Lost+found folder is a special system folder that regular users like nemo can't normally access.

I thought so, but at the same time that's usually hidden so I thought it would have a dot before it and I'm not at a Linux box to check...

rfa 2017-10-21 12:06

Re: How do I write to & read from SD?
 
this appears to have worked . thank you !!!


All times are GMT. The time now is 11:01.

vBulletin® Version 3.8.8