« first day (1719 days earlier)      last day (3512 days later) » 

16:00
@Izzy There is a name of the folder where adb saves the shared storage in its backup. I don't remember it. You may see this question asking about the location of the pictures.
16:14
@Firelord I never include shared-storage with my ADB backups (makes no sense, just bloats them – I can copy SD card contents directly to back it up), so I don't remember the name either.
Apart from that, I usually make "app-based backups" – i.e. backup each app separately (Adebar generates those scripts for me). A bit nasty that one has to approve each of them separately – but that gives me the chance of a "selective restore" ;)
@Izzy haha! And I told that user to wait patiently since I pinged a user to help out. I would never make the same mistake again. :)
I'll take a look at the question and apologize on your behalf #D
@Izzy Thanks! and I'm obliged to ping you again in 4 hours. :)
@Firelord So you are, yes :)
16:49
Hi people. First time here
@Arielle Welcome to our chat-room!
Thanks.
It's usually quite silent in here (unless @Firelord and I have a hot discussion ;) – so don't wonder.
Might well be the calm before the storm :)
Heh, okay. And sorry if this is a stupid question, but what happens when a bounty expires?
@Arielle Hi! || @Izzy I took shared backup, so I updated OP about the location of images, possibly will be able to help out completely, so I won't complete my obligation now. :D
16:56
@Firelord OK, thanks! That's the safe variant. I'm not sure whether I've kept that pretty large file.
@Arielle You won't get it back.
If you don't assing it explicitly, the highest rating answer given after the bounty was setup will be granted half of it.
@Arielle I see you have three hours left here.
Bounties are like lottery tickets: you might win (an answer) or not, but you never get your pay back :)
@Firelord Yes, but she cannot award it (no answer at all). And don't forget about the "grace period", usually giving her another 24h
Your chance maybe? ;)
What I find strange with that issue Arielle is having there: that the mount seems to "be hidden".
@Arielle you switched to root, mounted (card was there), went back to "normal user" (mount no longer showed the card). If at that moment you su again, does mount show the card again, or is it really gone?
Yeah, the mount does show up again. It doesn't go away until I shut down, or umount it
Well, that's real strange. So it is mounted, but doesn't show up with mount executed as user?
That's right. Non-root users just ignore it and attempt to write through to rootfs, which fails because it's mounted as read-only.
17:04
When mounted, can you check the mount-point with ls -l (to show its permissions in mounted state)?
@Izzy Thinking the same
@Arielle Huh? I had expected they'd get a "permission denied" – but never that!
Well, probably because I changed permissions on the mount point while it wasn't mounted
Either there is something mounted (then write there or give permission error), or not (write "through to /"). But never a mix of the two.
@Arielle I don't think so. When you run mount as root, what does it show where the card is mounted to?
Could you just copy-paste that one line here?
Hold on, I'm plugging my phone in to run ADB on my PC
17:07
Yupp
Next to look for is where the "normal users" (apps) are trying to write to.
I have a guess here: missing symlinks. Let's see when we've got the output.
Apparently the ADB shell user is denied permission to /storage at all
(though missing symlinks won't explain why it's not auto-mounted)
@Arielle Permissions messed up.
@Arielle Uh? Yeah, in that case: See @Firelord, quote: "Permissions messed up."
`d---r-x--- root sdcard_r`
Those are the permissions on `/storage`
17:11
All users should have at least read-access to /storage (and most likely also one level below that, if there is something)
Apparently only the users in the sdcard_r group can access /storage
No r for others is there.
and no r for owner, very strange.
and no x for owner/others, so noone can cd into it.
@Izzy Well I myself don't have r for the owner but it should be available for others.
@Firelord well, if root is the owner, that might explain ("I'm root, I can" :)
17:13
Okay, I did a chmod a+rx on storage
And yes, agreed: there should at least be "rx" for group and others.
@Izzy I'm not root, simple bash from ssh, and I can cd as well.
@Arielle Who's "a"? Must that not be "o"?
"a" is everyone - owner, group and others
And wait: if it's group "sdcard_r", it might be OK as long as everyone is in that group (the name suggests somehow that others shall not be able to read here)
@Arielle Oh, OK – that shortcut I never use :)
Dangerous :)
17:16
Now here comes the strange part: pastebin.com/Hz9hqtdU
btw, while "not root", run groups to see whether adb is allowed here
@Arielle leaves me speechless.
Perms look all correct when ls -l as root. Shouldn't change when not root.
Yeah, I really don't know what's the problem here
Somethings really messed up there – but I've got no idea what. Wouldn't have thought that possible (that perms show differently for different users – either they're shown, or "permission denied" – but not that mix).
I'm not deep enough in system stuff to know what that might be.
Though I wouldn't wonder if it turned out to be something really trivial in the end...
17:20
Apparently when I run mount as root, it also turns out to have some more mounts for /data/media
@Izzy Those messed up permission on extsdcard are actually same on my device if Ext SD card isn't mounted, but root shows the other ones. If you mount SD card and make it available for others, then permissions are same everywhere.
I just unmounted Sd card, and got that d---------
Yeah, because it's a designated mount point. But in our case here, the card is mounted.
Did you notice in the last pastebin, that a "non-root user" doesn't see anything at all from /storage?
Though "root" gets multiple entries here?
Wait, yes, that's right. Maybe I should mount it to somewhere else
And do not tell me that has to do with file-system permissions – as those have nothing to do with the mount command, which reads those information from a very different place
@Arielle Even that wouldn't explain why mount can't see any /storage
17:24
I can't remember ad-hoc where mount reads from, but can check that. Just a sec...
Adebar, where are you?
Okay, I tried creating an extSdCard directory in the rootfs and... same thing. pastebin.com/csawWssj
/proc/mounts it is.
Try cat /proc/mounts and see if that differs between root and not-root.
It does. For some reason.
Well, so basically if root reads a certain file it has different content? (looking at the pastebin now)
Yeah.
And what's even more strange is that normal users can read from /storage/emulated/0 just fine
Even though it doesn't show up in /proc/mounts for them
17:29
OK, that explains why output of the mount command differs. But not why it differs ­– if you know what I mean confused
...Apparently it's a chain of symlinks.
Just wanted to say that, yes.
emulated/0 points to the storage of the "main user".
There's /storage/sdcard0 which points to /storage/emulated/legacy which points to /mnt/shell/emulated/0
OK, sorry, but I've gotta go now. I'll read this later when home.
See ya

« first day (1719 days earlier)      last day (3512 days later) »