Situation Normal All F Up...
So it seems my A101 16 - froyo will read just about any SD card in the "removable" slot, but only one card per boot.
Any other card, it doesn't register anything.
I know I swapped out sd's on eclair, but don't recall if I had this problem always with froyo or not.
mounting them through reader works until someone (son) pulls out the reader unceremoniously, then I have to reboot for it to work again.
It seems like it is reading a serial number or something off the sdcard and only acknowledging that one. I also noticed on a couple of boots that it did a quick check of the file system.
Are there unix commands we should be able to use through terminal emulator to manually mount a new sdcard?
It's a bug. Hopefully it will be fixed in the update when it comes out.
Sorry but I don't know of any commands to use with terminal emulator to make something mount.
You can manually mount the external sdcard from terminal emulator:
Code:
su
ls /dev/block/vold (this will list the block devices your tablet is seeing, one of which is your internal sdcard which should already be mounted)
mount /dev/block/vold/179:18 /mnt/storage/sdcard (179:18 was my external sdcard; YMMV)
That will mount it with the default mount options, which apparently the automounter does not use. You could specify all the options on the command line though.
If you cat /proc/partitions after inserting your sdcard, it should show the major:minor numbers for the device and any partitions on it.
I've just tried this one on A70.
I have no-name microSDHC 8GB Class2 (that writes ~6MB/s ) and I've tried to switch to old 2GB microSD Class2 Verbatim.
Second card was not recognized and got stuck in slot when I tried to remove it
Finger nail push later and it was flying across the room
I have no problems with my 8GB card, slides easy in, doesn't fly out of the slot when removing... And they look identical to me ....
. 71 seems to have fixed this. It took me two tries on the first switch, but it does work. Now I just need to put nomedia files on my sdcards.
Since day 1 of owning the Atrix, it bothered me that that there were two mount points:
/mnt/sdcard (16GB internal memory)
/mnt/sdcard-ext (32GB micro SD card that I shoved in there)
Why it bothers me:
1) It is the year 2011 -- technology's progressed too far to be doing stupid s$&# like this
2) Most devs have no idea that /mnt/sdcard-ext even exists.
3) When I plug my phone in to my BMW w/ iDrive the internal memory gets presented to the iDrive system, NOT the SD card. Problem is that all of my music is on the SD card, NOT the internal memory.
4) Why can't I have 48GB of contiguous space instead of two separate 16GB and 32GB mount points??!?!
...so, I got fed up and edited /etc/vold.fstab, commented out /mnt/sdcard and renamed /mnt/sdcard-ext to /mnt/sdcard. Oh, and rebooted...
All is fine and dandy now, there's one 32GB /mnt/sdcard and NO 16GB /mnt/anything. The device is still there, just not mounted. So that means that I lost 16GB of usable space. Yes, but that leads me to my work-in-progress project. Somehow I need to port mdadm to the Atrix and setup a RAID-0 with the following devices:
The internal eMMC:
/devices/platform/tegra-sdhci.3/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p18
The SD card:
/devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
Once the Software RAID-0 is established, it should be as simple as mounting it back to /mnt/sdcard. It's not rocket science, just Linux .
So my question: In the interest of time, has anyone even attempted to do that yet? By the way, Rule #1 if it works: DON'T REMOVE THE SD CARD!
I never thought of that being an issue there but yeah i see your point now. Some car stereo systems do see the external sdcard though; my el-cheapo generic joint from best buy could even use usb hubs, thereby letting me plug in my treo and my usb stick. It would index music from both.
RAID on Android might not be a good thing here though; what happens when the internal sd card and the external card can't be read or written to at the same speed?
Or if somehow the sd card inadvertently comes loose inside the phone? (This happens to me from time to time on my current phone)
Then again, I'm only familiar with the PC / Data center implementation of RAID
Sent from my SBM005SH using XDA App
Does changing default storage in the settings have any effect? I'd laugh if it did
Sent from my Xoom using XDA App
starrwulfe,
yeah, I guess a firmware update to the iDrive *could* in theory fix that issue but I guess they're expecting people to plug in a single USB flash drive to it. Good thing the el-cheapo one is smarter than that
as far as the RAID-0 being different speeds, it shouldn't matter because it's a RAID--0 (spanning). So you might get different speeds depending on which memory device it's being read from/written to but it shouldn't cause any problems. As far as it coming loose inside the phone, what are you doing with your phone that makes that happen? lol Mine's never come out
ChongoDroid,
that would be TOO easy lol...but naw, that's just for windows media sync so you have a choice of which storage location is presented to windows media player..
varandian said:
Since day 1 of owning the Atrix, it bothered me that that there were two mount points:
/mnt/sdcard (16GB internal memory)
/mnt/sdcard-ext (32GB micro SD card that I shoved in there)
Why it bothers me:
1) It is the year 2011 -- technology's progressed too far to be doing stupid s$&# like this
2) Most devs have no idea that /mnt/sdcard-ext even exists.
3) When I plug my phone in to my BMW w/ iDrive the internal memory gets presented to the iDrive system, NOT the SD card. Problem is that all of my music is on the SD card, NOT the internal memory.
4) Why can't I have 48GB of contiguous space instead of two separate 16GB and 32GB mount points??!?!
...so, I got fed up and edited /etc/vold.fstab, commented out /mnt/sdcard and renamed /mnt/sdcard-ext to /mnt/sdcard. Oh, and rebooted...
All is fine and dandy now, there's one 32GB /mnt/sdcard and NO 16GB /mnt/anything. The device is still there, just not mounted. So that means that I lost 16GB of usable space. Yes, but that leads me to my work-in-progress project. Somehow I need to port mdadm to the Atrix and setup a RAID-0 with the following devices:
The internal eMMC:
/devices/platform/tegra-sdhci.3/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p18
The SD card:
/devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
Once the Software RAID-0 is established, it should be as simple as mounting it back to /mnt/sdcard. It's not rocket science, just Linux .
So my question: In the interest of time, has anyone even attempted to do that yet? By the way, Rule #1 if it works: DON'T REMOVE THE SD CARD!
Click to expand...
Click to collapse
Give me the exact year and model of your Bimmer as well as the exact issue (I assume it's that the i-Drive won't see the external SD in your Atrix), and I will look into it at work. I assume you are connecting it through the USB Aux input. It may be a software issue or it may just be that the i-Drive doesn't do it. I will see if I can find out for sure.
I have the exact same setup on my Atrix (all music on external SD) so I can play with it at work.
I'm not back to work until Friday, but i'll see what I can dig up then.
GibMcFragger,
2008 535i w/ the navigation option. Thanks for offering to look into it but I don't want both of them to show up in the iDrive, I want to have one device show up as 48GB instead of one as 16GB and the other as 32GB.
varandian said:
GibMcFragger,
2008 535i w/ the navigation option. Thanks for offering to look into it but I don't want both of them to show up in the iDrive, I want to have one device show up as 48GB instead of one as 16GB and the other as 32GB.
Click to expand...
Click to collapse
Oh. Do they both show up at the moment in the i-Drive as separate drives, or the external doesn't shop up at all? If they both show up, but as separate drives.........that is normal I think because of the way the phone mounts them as you said earlier.
So basically:
External drive doesn't show AT ALL in the i-Drive = Possible issue
External drive shows but as separate drive than internal in i-Drive = Normal
As for changing them to show as one in RAID, I would think that would cause more issues that it's worth as both the internal and external drives have to be the same speed of card (highly unlikely as we don't know what flash memory Moto used in the phone), as well as the fact that SD cards tend to corrupt data easily.
3) When I plug my phone in to my BMW w/ iDrive the internal memory gets presented to the iDrive system, NOT the SD card. Problem is that all of my music is on the SD card, NOT the internal memory.
Click to expand...
Click to collapse
Not sure what the goal is here, but you could just put a mount of the external sdcard in the internal memory folder, say ln -s /mnt/sdcard-ext /sdcard/Music. Or you could edit vold.conf maybe to change /mnt/sdcard-ext to /mnt/sdcard/Music.
Cheers!
Saw this thread while waiting for the vet and forgot about it. Just came to say, what you're trying to achieve isn't RAID 0, or even RAID at all. It's a spanned volume, which is variously referred to as JBOD or SPAN.
The real question is, does Android support such a thing. Without checking, no way to know. My gut says no, though.
GibMcFragger said:
As for changing them to show as one in RAID, I would think that would cause more issues that it's worth as both the internal and external drives have to be the same speed of card (highly unlikely as we don't know what flash memory Moto used in the phone), as well as the fact that SD cards tend to corrupt data easily.
Click to expand...
Click to collapse
As was stated previously, the speed of the cards doesn't matter. However, it does mean that the phone now requires that specific (external) SD card be inserted at all times, or the filesystem will be considered corrupt, and data will be lost.
To the OP: the issue with the external SD card not being available in the BMW is a problem with how the BMW handles multi-LUN USB storage devices: multiple storage devices available via one single USB connection. GibMcFragger's suggestion is spot on, with checking for available firmware updates.
Though I don't think it's a good idea, you could always look at a UnionFS mount of the external SD card on top of the internal SD card. This allows for the SD card to be backed up and replaced without any trickery.
NFHimself said:
Not sure what the goal is here, but you could just put a mount of the external sdcard in the internal memory folder, say ln -s /mnt/sdcard-ext /sdcard/Music.
Click to expand...
Click to collapse
I tried doing an ln -s /mnt/sdcard-ext /mnt/sdcard/ExternalSD and got the error:
Code:
link failed Operation not permitted
Then I did su (yes, I'm rooted), and then the same command and got the same error. I then tried doing the ln command without the -s (both as su and regular) and got this error:
Code:
link failed Cross-device link
Any ideas?
Also, editing /system/etc/vold.fstab so that internal sd card mounts first and then mount external sdcard on /mnt/sdcard/ExternalSD doesn't work. Loads internal sd just fine though....
quordandis said:
I tried doing an ln -s /mnt/sdcard-ext /mnt/sdcard/ExternalSD and got the error:
Code:
link failed Operation not permitted
Then I did su (yes, I'm rooted), and then the same command and got the same error. I then tried doing the ln command without the -s (both as su and regular) and got this error:
Code:
link failed Cross-device link
Any ideas?
Click to expand...
Click to collapse
ln does a hardlink which is just two metadata references to the same data blocks. It will look like two different files, but the data is stored in just one place on disk. If you delete one, the data stays (for the other ref) and no space is freed. This is not supported across filesystems, only within a single filesystem.
ln -s creates a symbolic link where the link is just a special file that references the real file, not just the data blocks of that file. This works across filesystems, but is filesystem dependent. I'm pretty sure the vfat filesystem that is doubtlessly on your sdcard doesn't support this.
messing with RAID is risky. A previous poster mentioned something like unionFS, but unfortunately what we're talking about here is individual partition exporting via USB, and so filesystem trickery won't cut it. What you probably want to do is just prevent the internal sdcard from being exported and limit that to only the external sdcard. I believe this can be accomplished from within the android GUI, no?
I clean installed Flashback 10.3 (kudos to the developer!) on my GTab, and it works great. I do have a question...
When I plug in the USB cable from my PC (and turn on USB storage, of course), in Windows Explorer (Directory Opus actually) I can "see" the SD Card as drive G, but I can't see the root drive (Internal Memory). I do get a "Removable Disk H" that displays, which I suspect is internal memory, but it says there is no disk in drive H, and the properties say everything is 0 bytes.
I downloaded "APK Batch Installer" to allow me to back up my GTab apps to my PC, but it can't "see" the internal memory to get to the apps, either.
I have ES File Explorer on the GTab, and I can see the internal memory there; and from there I can "back up" the apps to the SD card - and then, of course, I can see them on the PC and back them up to the PC.
So I guess the question is, how can I see the internal memory (not the SD Card) from my PC? Is that possible? If not, fine, but if so, I'd love to know how.
Thanks, Cecil
CDeBald said:
When I plug in the USB cable from my PC (and turn on USB storage, of course), in Windows Explorer (Directory Opus actually) I can "see" the SD Card as drive G, but I can't see the root drive (Internal Memory). I do get a "Removable Disk H" that displays, which I suspect is internal memory, but it says there is no disk in drive H, and the properties say everything is 0 bytes.
Click to expand...
Click to collapse
There are 2 reasons for what you describe, above.
The first reason--the 2 drives showing up--is, I suspect, the same bug that afflicts the other HC ROM for the gTab, GtabComb(Over). Only one drive--for the SD card--should show up over the USB cable. Start reading from this post onwards for the details and for the "bug fix".
The second--the no disk in drive H: message--is related to the same bug, but, the actual reason for the 0 bytes and the message is because the filesystem that is being presented as drive H: is ext3 (the /data partition) and not vfat (AKA FAT32) like for drive G:.
So I guess the question is, how can I see the internal memory (not the SD Card) from my PC? Is that possible? If not, fine, but if so, I'd love to know how.
Click to expand...
Click to collapse
The description above, and details in the post I linked to, should give you a clue if you really want to do this, but, I strongly recommend that you not export /data over the USB cable like that--esp. on a running system. Doing it in CWM is okay; but, not in the ROM--you will very probably trash the /data filesystem if you change anything there.
Hello everybody,
I experience the following problem for a couple of days: my GT-I9300 (stock ICS, updated by Samsung some week ago) has a SD card (16GB) in it, which I could read from AND write to from my Win7-Desktop until some days ago. No, for some days, I cannot write anymore to the extSdCard as well as to the sdcard (phone's memory, 32GB). I cand read all right, but no writing. Any file I open, opens "read-only", and also no copying to the card is allowed, either. Even updating Kies and all its driver's didn't bring any improvement (actually, updating MTP driver caused some problems). Does anybody have any idea what to do?
thanks for your help
I have exactly the same issue as you, at the very beginning, i notice this problem when i was taking photo and said my sdcard is not accessible, it then changes to use internal storage.
Let me list out my symptom and solution:
Symptom:
1. The sdcard looks fine, no special error thrown during android startup.
2. Just after startup, i am able to write file /copy file to the external sdcard
3. After a while, the external sdcard becomes read only. I can view/copy files from sd card, but not write/copy file to the external sdcard.
4. No apps can modify the files in external sdcard
5. By using ADB shell, type mount, and you will notice the /extSdCard is mounted as "ro", which means read only.
Description:
If you have the above symptom, your external sdcard probably have some problems...
When I was checking the mount details on step 5, i noticed that the default options is onerrors=remount-ro , it looks like the external sdcared is remounted as read-only because it has problem on external sdcard....
Solution:
I put the external sdcard to a Windows PC, and run scan disk (right click the drive >"properties" > "tools" > Check Now).
It really find problem on the FAT of the external sd card!!! It fix automatically and my external sd card is working fine now.
In my case, it doesn't need to root or format the sdcard.
Good luck!
4K android media box with AML812 chip. 2 USB ports, 1 USB OTG port and one SD card slot. Android 4.4.2 (KitKat?)
USB drive connected with FAT system is mounted as read/write device, all SD card I have tested were mounted as read only.
At first I wanted to make firefox to download files to SD card. But firefox had no rights to write to SD.
At second I thought that firefox can't write to SD because new privilages system in KitKat. So I found a solution on the web and have added media_rw entries in permission.xml file in WRITE_EXTERNAL_SD section. But it didn't help.
Then I have found out, that SD card is always mounted as read only by default (by terminal and mount command) - i tried 3 different SD cards, no success.
I have checked SD card with fsck_msdos and externally on my desktop PC - SD card had no errors.
I tried to remount SD as read/write with mount -o remount,rw device from terminal and it worked but apparently only apps with root privilages can write to SD. Firefox still can't write to SD.
And if I close terminal the SD returns to read only state.
Don't know what to do, where to find the solution.
In vold.fstab there is only one command with dev_mount, and this command doesn't have read/write or read only flags (checked dev_mount in the web).
There is no fstab.device files on the box, which are common? in KitKat (above android 4.3) so I am not so sure that this is KitKat device.
Please help to unlock SD card write rights.
EDIT: formatting to exFAT, NTFS or FAT32 with 32KB chunk size didn't resolve anything (advice from some android forum). My device doesn't recognize exFAT, and the rest give me read only mount point.
I installed Paragon exFat, NTFS app. It can't mount SD correctly at all. It unmounts mounted SD very good though. It can't check and fix SD because /dev/block/mmcblk0p1 is read-only file system.
The same goes for format - Error 0x1e from mkhfs.
When I try to mount SD with Paragon nothing happens (the mount button is still active, and unmount is inactive), and android memory settings show that SD card has been mounted as 803 MB card, not 16 GB card (14,84 GB exact capacity). Paragon can only unmount SD.
Now I see that I can't even format SD card from android memory settings. When I choose format, it unmounts SD card but then nothing happens. There is no format operation going on.
Really I don't have any more idea.