Author Topic: SD card being recognised?  (Read 3795 times)

Steven_P

  • Newbie
  • *
  • Posts: 11
    • View Profile
SD card being recognised?
« on: June 20, 2018, 12:34:21 pm »
I installed a small SD card. Various file managers recognize and read the card. But VLC will not allow me to add the card to it's recognized directories.
I then also noticed that in the list of notification icons across the top of the screen, the SD card icon is greyed out and has a diagonal line through it, suggesting that at some level the system isn't recognizing the card as mounted. But, as i said, I can certainly read the card using various file manager apps and view stuff on the card. I even downloaded files to the card from the cloud, and can have 'amazon music' play files from the card. So what gives? Am I misreading the notification icons?

rubus-3.142

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
SD card being recognised?
« Reply #1 on: June 20, 2018, 05:11:20 pm »
Quote from: Steven_P
I installed a small SD card. Various file managers recognize and read the card. But VLC will not allow me to add the card to it's recognized directories.
I then also noticed that in the list of notification icons across the top of the screen, the SD card icon is greyed out and has a diagonal line through it, suggesting that at some level the system isn't recognizing the card as mounted. But, as i said, I can certainly read the card using various file manager apps and view stuff on the card. I even downloaded files to the card from the cloud, and can have 'amazon music' play files from the card. So what gives? Am I misreading the notification icons?

I just tried now - I can see the SD card, first time I started VLC I got this message and clicked on "YES"


Then I see it in the "Directories" menu of VLC
 [ Invalid Attachment ]

How have you formatted it - there seem to be some issue with "internal" format - see here:
https://www.oesf.org/forum/index.php?showtopic=35184

gidds

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
SD card being recognised?
« Reply #2 on: June 20, 2018, 05:30:25 pm »
This is probably a wider issue than just VLC.

Android's whole use of filesystem is taking a while to get my head round.  As far as I can tell, most of the filesystem is off-limits; there's a 'shared' directory in the internal memory, which each app gets a subdirectory in, and can usually see only that private directory, but you can give it permission to see the rest of the shared directory.  The SD card is even less visible; a few apps (mostly video players, music players, and file managers) can see it, but most other apps can't see it at all.  However, most apps can read a file if it was sent from another app (e.g. a file manager), though they may not be able to write to it, and won't know where it is in the filesystem.  And if you have root, you can do more stuff, but only if you know where it is...

Or something vaguely like that!  (Please correct me on any of that...)

Many apps don't use files at all -- or at least, pretend not to.  Some include some form of file selector, while others can only use files opened from a link or file manager.  Each seems to have a different combination of directories it can see.  A few can open multiple files at one (e.g. Jota+ in tabs).

The whole thing seems a confusing nightmare!  Apps having to roll their own file selectors, and their own ways of opening multiple files (or managing multiple instances)...  Isn't the OS supposed to handle all that sort of stuff???
   Andy/
Psion 3a → Psion 5 → Psion 5mx → Gemini → Astro

Steven_P

  • Newbie
  • *
  • Posts: 11
    • View Profile
SD card being recognised?
« Reply #3 on: June 20, 2018, 07:43:27 pm »
Quote from: rubus-3.142
Quote from: Steven_P
I installed a small SD card. Various file managers recognize and read the card. But VLC will not allow me to add the card to it's recognized directories.
I then also noticed that in the list of notification icons across the top of the screen, the SD card icon is greyed out and has a diagonal line through it, suggesting that at some level the system isn't recognizing the card as mounted. But, as i said, I can certainly read the card using various file manager apps and view stuff on the card. I even downloaded files to the card from the cloud, and can have 'amazon music' play files from the card. So what gives? Am I misreading the notification icons?

I just tried now - I can see the SD card, first time I started VLC I got this message and clicked on "YES"
 [ Invalid Attachment ]

Then I see it in the "Directories" menu of VLC
 [ Invalid Attachment ]

How have you formatted it - there seem to be some issue with "internal" format - see here:
https://www.oesf.org/forum/index.php?showtopic=35184


I formatted it in another android device, where it was being used as external storage. i suppose i could re-format it in Gemini Android?

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
SD card being recognised?
« Reply #4 on: June 24, 2018, 06:43:30 pm »
yes, it can be confusing.

maybe when the card was inserted you told it to be adopted to extend android's data space? in which case it won't appear like a memory card any more, but is encrypted and used by android. this is called adoptable storage. you can choose to split the memory card and set aside some for the FAT32 "external" storage.

some phones which don't have a memory card can pretend to have one by emulating a FAT32 file system stored in the internal data storage - quite a few apps expect there to be a memory card.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Pete G.

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://www.GoodeveCA.net
SD card being recognised?
« Reply #5 on: September 29, 2018, 08:54:48 pm »
Replying to a slightly ancient post, here, but as I've just got round to getting myself a MicroSD...

Quote from: gidds
This is probably a wider issue than just VLC.

Android's whole use of filesystem is taking a while to get my head round.  As far as I can tell, most of the filesystem is off-limits; there's a 'shared' directory in the internal memory, which each app gets a subdirectory in, and can usually see only that private directory, but you can give it permission to see the rest of the shared directory.  The SD card is even less visible; a few apps (mostly video players, music players, and file managers) can see it, but most other apps can't see it at all.  However, most apps can read a file if it was sent from another app (e.g. a file manager), though they may not be able to write to it, and won't know where it is in the filesystem.  And if you have root, you can do more stuff, but only if you know where it is...

Or something vaguely like that!  (Please correct me on any of that...)

Many apps don't use files at all -- or at least, pretend not to.  Some include some form of file selector, while others can only use files opened from a link or file manager.  Each seems to have a different combination of directories it can see.  A few can open multiple files at one (e.g. Jota+ in tabs).

The whole thing seems a confusing nightmare!  Apps having to roll their own file selectors, and their own ways of opening multiple files (or managing multiple instances)...  Isn't the OS supposed to handle all that sort of stuff???

Yes -- I'm finding myself fairly frustrated!  I decided (still being new to Android) that it would be most convenient to install it as "Portable Storage"  The first shock was that it reported the card was "corrupted"!  Eventually I found out -- as others have before me -- that the card was formatted ExFAT, and the Gemini doesn't know about that!  With my heart slightly in my mouth, I told it to go ahead and reformat it as FAT32, and fortunately it worked.  I can still access the card on my (Linux & Haiku) laptop.

However, actually using the card on the Gemini is generally a mess!  I can use FileManager to transfer to and from it, and I managed to link it in to Termux's 'storage' directory.  But most apps have no idea that it's there.  The Jota editor, for instance, refuses to write to it.  I can ask the FileManager to open a file from there in Jota, and that works, but when I try to write it back, Jota refuses to do so.

As one of the main reasons for thinking I wanted the external card was to minimize the "wear" on the internal drive, this is all rather annoying!  As there are many other ways of transferring files to other machines, and popping the card out would be a pain anyway, I should probably change my mind and reformat it as Internal Storage. But again I have little idea what the results will be.

How, for instance, is the card as Internal Storage seen?  Is it 'parallel' to the normal storage, or somehow merged so you don't know which drive is being used?  Ae all the sub-folders duplicated, or what?

Enlightenment appreciated.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
SD card being recognised?
« Reply #6 on: September 30, 2018, 03:21:15 am »
I would split the card and make it part FAT and part adopted..
https://www.oesf.org/forum/index.php?showto...mp;hl=Adoptable
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Pete G.

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://www.GoodeveCA.net
SD card being recognised?
« Reply #7 on: September 30, 2018, 02:40:18 pm »
Quote from: speculatrix
I would split the card and make it part FAT and part adopted..
https://www.oesf.org/forum/index.php?showto...mp;hl=Adoptable
Why would that be useful?  As I've decided I'm unlikely to want to use  the card to transfer files, there seems little point in a FAT partition.

(I've never investigated ADB.  Does it work on a non-rooted unit?  Runs from Linux, I  assume?)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
SD card being recognised?
« Reply #8 on: September 30, 2018, 03:43:40 pm »
I use the memory card for photos and music. I can pop the card out to copy files on and off really quickly or back it up.

I can let android use the adopted storage as if I had more internal flash, which is important because one given over space to Debian and Sailfish.

Adb runs on windows, Linux or mac.
« Last Edit: September 30, 2018, 03:45:59 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Pete G.

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://www.GoodeveCA.net
SD card being recognised?
« Reply #9 on: September 30, 2018, 08:16:29 pm »
Yikes! I think I've changed my mind back again!  I found this article https://www.androidcentral.com/adoptable-storage that gives me a better understanding of "Adoptable Storage", and I'm not sure I like what I learned.

According to that, the storage is truly merged, and it can't be unmerged!  It says the system will crash if the card is popped.  (Unless you turn things off before popping, and put it back before turning on.)  That sounds like a blazing nuisance!

Quote from: speculatrix
I use the memory card for photos and music. I can pop the card out to copy files on and off really quickly or back it up.
But that's quite a bit of rigmarole, by the time you've used the tool to get the cover off, fiddled to get the card out (I needed a paperknife to do the pulling!) and put it in the adapter for the other machine.  I expect I'll use USB for that sort of thing.  I've ordered one of these: https://www.sandisk.com/home/mobile-device-...rive-usb-type-c (referenced by another post here that I can't find again) which should be convenient.

Quote
I can let android use the adopted storage as if I had more internal flash, which is important because one given over space to Debian and Sailfish.
That's a point... Haven't got to that stage yet.  I assume the adopted storage is only for the Android partition?

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
SD card being recognised?
« Reply #10 on: October 02, 2018, 02:06:17 am »
Yes, adopted storage is encrypted and only Android can use it.

I won't pop the card out often, maybe every six months.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.