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 !!!

rfa 2017-10-22 05:37

Re: How do I write to & read from SD?
 
thank you !

My next question is how do I get the phone / media player / gallery to index it

& use as default storage ?

suicidal_orange 2017-10-22 08:38

Re: How do I write to & read from SD?
 
When I put in a vfat (not exfat which is dodgy) formatted card the media app added the new songs.

Does your card show as mounted in settings -> storage? The exfat card which didn't work showed as unmounted even though I could browse and play the files on it...

rfa 2017-10-22 09:24

Re: How do I write to & read from SD?
 
It only needed time :)

17,000 photos & 3,000 songs

that is every photo & song I've had since my N900

suicidal_orange 2017-10-22 09:37

Re: How do I write to & read from SD?
 
Haha, that many files is going to take a while - that's a lot of photos!

rfa 2017-10-24 21:59

Re: How do I write to & read from SD?
 
I might keep asking questions here, rather than a new thread.

& I'll change the thread title

Today's question / project:

Patches:

How do I get them working in Sailfish X?

Is there (ever going to be) folder support? - what I mean is will gallery / media allow searching within specific folders?

How do I select a specific mp3 as a ringtone (/ message alert)?

Do any of the file browsers show images?

suicidal_orange 2017-10-25 07:17

Re: How do I write to & read from SD?
 
Patches: Install warehouse (the community app store) and from there install patchmanager and patches.

Ringtones are part of the ambience, the top item in settings. 'Add actions' if it's not listed...

rfa 2017-10-25 08:43

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

Originally Posted by suicidal_orange (Post 1537661)
Patches: Install warehouse (the community app store) and from there install patchmanager and patches.

Ringtones are part of the ambience, the top item in settings. 'Add actions' if it's not listed...

I'm happy enough changing, creating and using ambiences - my current one is based on a photo of a sock.

What I want to do is select a particular mp3 as my message alert tone. However there doesn't appear to be an easy way to select a particular file as a ring (or message alert) tone. One good thing about Windows phone was that it would only look in a particular folder for ringtones. With my media library & no way of sorting it will be quite recouped tedious scrolling through 11,000 songs to find the exact one. search didn't work either .

Patchmanager or patchmanager2.0?

no matter which I choose I get failed to install or another error message. All I want to do is have an analogue clock on my lock screen.

:)

pichlo 2017-10-25 09:39

Re: How do I write to & read from SD?
 
@rfa, I had exactly the same problem! What I ended up doing eventually is keep my music collection on the SD card (which you have to do anyway since the Jolla's internal storage is so small) and my ringtones in the internal storage. Whenever I need to change the ringtone, which thankfully is only about once a year when the damn phone forgets the current setting again, I just take the SD card out.

rfa 2017-10-25 20:34

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

Originally Posted by pichlo (Post 1537674)
@rfa, I had exactly the same problem! What I ended up doing eventually is keep my music collection on the SD card (which you have to do anyway since the Jolla's internal storage is so small) and my ringtones in the internal storage. Whenever I need to change the ringtone, which thankfully is only about once a year when the damn phone forgets the current setting again, I just take the SD card out.

Brainwave!!!


Any idea how to get analogue clock on lock screen?

mautz 2017-10-26 11:59

Re: How do I write to & read from SD?
 
Install patchmanager and the Lockscreen Analog Clock patch from the webcatalog inside patchmanager.

rfa 2017-10-26 20:58

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

Originally Posted by mautz (Post 1537759)
Install patchmanager and the Lockscreen Analog Clock patch from the webcatalog inside patchmanager.

I've got patchmanger 2.0 installed

These are my errors:
https://i.imgur.com/eDIudc3.png
https://i.imgur.com/rQzMGRu.png

suicidal_orange 2017-10-26 21:26

Re: How do I write to & read from SD?
 
That link appears to be an embedded something that doesn't work...

rfa 2017-10-26 22:23

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

Originally Posted by suicidal_orange (Post 1537794)
That link appears to be an embedded something that doesn't work...

Edited to show images :)

suicidal_orange 2017-10-26 22:25

Re: How do I write to & read from SD?
 
The second error says patchmanager-0.5 conflicts with patchmanager-2.3 - have you got both installed?

rfa 2017-10-26 23:42

Re: How do I write to & read from SD?
 
Found my error - I needed to install the patch from within the patch manager.

But, I still get "Failed to install patch"

I (as far as I can tell) am using Patchmanager2

and my lockscreen still has a digital clock

rfa 2017-10-27 00:11

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

Went into widget manager, selected APPLY NEW LAYOUT &

https://i.imgur.com/vZLZ7bY.png

pichlo 2017-10-27 05:35

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

Originally Posted by rfa (Post 1537804)
WIN!

Please do not make something that is not a link look like it is.

rfa 2017-10-27 10:13

Re: How do I write to & read from SD?
 
Edited previous post


All times are GMT. The time now is 17:30.

vBulletin® Version 3.8.8