Evening all,
I bought a OTG/USB cable to see if it would connect a device with USB-OTG.
I plugged in my Canon EOS with one image on the camera.
The i9100 stated that a USB device was connected in the notification window, and one could tap the message to disconnect the USB storage.
I checked to see whether a device was there but it was unmounted so I presume that it would not auto mount the disc.
I looked for an autofs type file, but found vold. There is an entry for an OTG device:
Code:
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/s3c_otghcd/usb
I checked with the camera plugged into the i9100 and /mnt/sdcard/usbStorage was empty.
Did anyone else try this?
Regards.
Tha same thing happened with my flash disk. After i repaired with scandisk, it worked.
mdalacu said:
Tha same thing happened with my flash disk. After i repaired with scandisk, it worked.
Click to expand...
Click to collapse
Hi mdalacu,
Thank-you for your reply, but I don not understand what you mean. How do you repair with sandisk? Sandisk make hardware. Its akin to saying that you formatted your PC with Sony Vaio.
Anyway: The CF card I have in the Camera is a Sandisk 8Gb extreme formatted with VFAT via the camera built-in format function. Its been formated a few times before with mkfs ext3 but that was years ago and since uses the camera to format it.
Scandisk, not sandisk. m8
Scandisk is a windows utility to verify drives, the table of contents and disk errors. It's pretty similar to the manufacturer name, so it's easy to mistake one for the other
Ahh. Apologies, my mistake.
I shall reformat the disc, but I cannot see this as the problem, although the camera mounts as a USB drive on Windows and Linux without a hitch.
forgetmyname said:
Ahh. Apologies, my mistake.
I shall reformat the disc, but I cannot see this as the problem, although the camera mounts as a USB drive on Windows and Linux without a hitch.
Click to expand...
Click to collapse
yes, and after mount : My Computer, right click on usb storage device - properties, tools - Error-checking - Check now!
One of the questions that has arisen a lot with Team-B CM7 for NT is the query about why the internal storage no longer shows as a mount point when connect via USB to a computer.
This is a valid question and one that curently I am unsure how to answer and to correct with the system. In Our latest build that we are using within the team the internal media partition is mounted but it doesn't show when connected via USB.
Does anybody know where the settings to enable this are hidden?
When issuing a mount command in the stock rooted rom terminal it shows media as having 'dirsync' which I'm assuming is how it shows in usb sync but I'm unsure at the moment how and where this is set.
So rather than spend a long time looking I thought it may speed us the process if I just asked because chances are that somebody else already know the answer
Thanks in advance for you help and advice.
Celtic.
I don't know if this is of any use, but with my modified vold.fstab internal storage is showing up via USB on my computer. But my real SDcard is not showing up on my PC now. It is mounting to /sd-ext though so I copied the Android folder from /sd-ext to /mnt/sdcard to make my apps happy. Anyway here is my vold.fstab.
dev_mount sdcard /mnt/sdcard 10 002 /devices/platform/usb_mass_storage/lun0 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
dev_mount sd-ext /sd-ext auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
tselling said:
I don't know if this is of any use, but with my modified vold.fstab internal storage is showing up via USB on my computer. But my real SDcard is not showing up on my PC now. It is mounting to /sd-ext though so I copied the Android folder from /sd-ext to /mnt/sdcard to make my apps happy. Anyway here is my vold.fstab.
dev_mount sdcard /mnt/sdcard 10 002 /devices/platform/usb_mass_storage/lun0 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
dev_mount sd-ext /sd-ext auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
Click to expand...
Click to collapse
it seems that unless told otherwise the system only shows whichever partition is showing as sdcard, which your changes prove, it lost the real sd but is showing the internal which you mojnted as sdcard. We need to work out how to make it show the media partition and the sd card. In current build we have the internal is mounting the media to mnt/media and it's mounting sdcard to mnt/sdcard wbut it only shows sdcard on usb sync mount. It going to be something in ramdisk thast quite obvious once we realise I'm sure!
I just had an idea... what about mounting an internal partition as an sd card and mount the external as "sd_ext" or something similar? We had to do that with another device I worked on.
I'll hit you up on gtalk
Celtic i have been looking in the Nook Color forums and there i found:
[APP][02/26] Nook Color USB Mass Storage utility - Mount any partition to your PC so possibly it can be modified for the nook tablet? . I don't know how different they might be in this scenario, just posting what i've found.
~ Veronica
darthvince said:
I just had an idea... what about mounting an internal partition as an sd card and mount the external as "sd_ext" or something similar? We had to do that with another device I worked on.
I'll hit you up on gtalk
Click to expand...
Click to collapse
I'm wondering something similar, I was wondering if this could cure the market install problem .... you never know
I'm aroudn so grab me on Gtanl
lavero.burgos said:
Celtic i have been looking in the Nook Color forums and there i found:
[APP][02/26] Nook Color USB Mass Storage utility - Mount any partition to your PC so possibly it can be modified for the nook tablet? . I don't know how different they might be in this scenario, just posting what i've found.
~ Veronica
Click to expand...
Click to collapse
Thanks I'll look into it and see if it can help
CelticWebSolutions said:
Thanks I'll look into it and see if it can help
Click to expand...
Click to collapse
There is also a IMEI generator in development section too that it might help with some apps not working like the free version of XDA which looks for an IMEI when it starts .
~ V
lavero.burgos said:
Celtic i have been looking in the Nook Color forums and there i found:
[APP][02/26] Nook Color USB Mass Storage utility - Mount any partition to your PC so possibly it can be modified for the nook tablet? . I don't know how different they might be in this scenario, just posting what i've found.
~ Veronica
Click to expand...
Click to collapse
Thanks
I didn't use the app but it showed what I needed to know
I now have media mounting automatically and then you can choose to mount sd card
Thanks again
CelticWebSolutions said:
Thanks
I didn't use the app but it showed what I needed to know
I now have media mounting automatically and then you can choose to mount sd card
Thanks again
Click to expand...
Click to collapse
grrrrrrreat, you're very welcome pal!
~ V
CelticWebSolutions said:
Thanks
I didn't use the app but it showed what I needed to know
I now have media mounting automatically and then you can choose to mount sd card
Thanks again
Click to expand...
Click to collapse
Can it mount both automatically?
tselling said:
Can it mount both automatically?
Click to expand...
Click to collapse
Yes tahst currently how I have mine set. Just testing a few things with it
CelticWebSolutions said:
Yes tahst currently how I have mine set. Just testing a few things with it
Click to expand...
Click to collapse
excellent!
Unfortunately while it allowed us to manually mount drives to sync to computer it didn't work when we entered them into a script in boot, it would work once , then oif you disconnected the usb cable and tried again nothing would mount at all.
So if anybody has any further ideas that would be great
Thanks again!
CelticWebSolutions said:
Unfortunately while it allowed us to manually mount drives to sync to computer it didn't work when we entered them into a script in boot, it would work once , then oif you disconnected the usb cable and tried again nothing would mount at all.
So if anybody has any further ideas that would be great
Thanks again!
Click to expand...
Click to collapse
I hope you don't mind if I speculate; I'm no programmer but I have a crazy idea that may or may not work.
I also acknowledge that what I'm about to suggest might seem obvious and you may have already tried it, but I'm doing what I can here!
When you say script, do you mean something resembling a shell script? Because if so, it sounds like it's listening for a USB connection and then the script finishes once it's connected, so it doesn't loop back to the start of the script and listen for a USB connection to mount the other partitions after it's already done it once.
If it is indeed a script of that nature, you could create a separate mounting script that does the work and then infinite loops back to the beginning after all of the operations are complete. Then you would call this mounting script in boot (something resembling sh mounting-script.sh &) and voila - you have a script that will continue listening for a USB connection after disconnect like it should.
Once again, this is all speculative, but shell scripts are very powerful things. Here's a full, detailed page on looping in Bash, including infinite loops:
http://www.cyberciti.biz/faq/bash-for-loop/
lavero.burgos said:
There is also a IMEI generator in development section too that it might help with some apps not working like the free version of XDA which looks for an IMEI when it starts .
~ V
Click to expand...
Click to collapse
Eehm that's odd, the FREE version of xda installed and works fine for my on CM7, but the PAID version doesn't install at all. Not from titanium backup nor from the market..
CelticWebSolutions said:
Unfortunately while it allowed us to manually mount drives to sync to computer it didn't work when we entered them into a script in boot, it would work once , then oif you disconnected the usb cable and tried again nothing would mount at all.
So if anybody has any further ideas that would be great
Thanks again!
Click to expand...
Click to collapse
Firstly huge thanks to the CM7 team for this excellent release.
Here is a script I wrote to automount the internal storage to the PC.
1. rename 10mountmedia.zip to 10mountmedia (can't upload non zip file)
2. Use root explorer to copy it to /system/etc/init.d and set permission to 755 (all read, top write, all execute)
3. reboot
Working /media mount
lavero.burgos said:
Celtic i have been looking in the Nook Color forums and there i found:
[APP][02/26] Nook Color USB Mass Storage utility - Mount any partition to your PC so possibly it can be modified for the nook tablet? . I don't know how different they might be in this scenario, just posting what i've found.
~ Veronica
Click to expand...
Click to collapse
It Works
just did this :
1.)mounted /media using :
Code:
mount -w -t vfat /dev/block/vold/179:10 /mnt/media
ln -s /mnt/media /media
2.)used the trick by samuelhoff in his post .
In terminal :
[Edit:]
Code:
echo /dev/block/mmcblk0p10 > /sys/devices/platform/usb_mass_storage/lun1/file
Use of lun1 seems to allow both to mount . However this indicates a deeper pathology because the vold .fstab file has :
Code:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1 /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
dev_mount media /mnt/media 10 002 /devices/platform/usb_mass_storage/lun0 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
The lun0 and lun1 are interchanged ??? I'm guessing this file has become redundant in CM7 ?
Anyways my updated batch file in attached zip file now works. only, It has to be done every time. Mayhap its possible to put this in autorun.inf script of the sdcard root ? (will try now)
@cobrato : maybe try using lun1 in your script
@daedricgeek
I've tried both but settled with lun0. Sdcard mount will take lun1 so both can be used at the same time.
Sent from my LT18i using Tapatalk
This doesn't solve the problem but may be of some help to diagnosing the problem. I found that when I plug in the USB cable and tell the tablet to turn on USB storage, the file /sys/devices/platform/usb_mass_storage/lun0/file gets populated with: /dev/block/vold/179:10
but the file /sys/devices/platform/usb_mass_storage/lun1/file is still empty.
Doing the mount command shows:
...
/dev/block/vold/179:10 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:17 /sd-ext vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /sd-ext/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
So I figured the empty file should be populated with: /dev/block/vold/179:17
So I echoed that into the file with the USB cable connected and I got the popup on my PC for lun1 (in my case the external sd card since I swapped them in vold.fstab). And both lun0 and lun1 were mounted on my PC. **** Note that the dev/block/vold entry differs on my two nook tablets... its /dev/block/vold/179:17 on one and /dev/block/vold/179:16 on anoher.... not sure why ****
So it appears to me that whatever process triggers the lun0/file to be populated isn't setup to do it for lun1. (It also it not clearing the file when I turn off USB storage for lun1.) I don't know if this is just useless information or not but I thought I would share it just in case it helps.
I also have to eject and reinsert my SD-card before it gets mounted to the NT after every reboot. Don't if thats unrelated or not.
My Note II, running the latest CM 10.2 nightly, has had a ghost--or Electro--remove the SD card making SD card dependent programs stop working.
I have a 64gb SanDisk card that has been working like a champ since I bought the phone.
Earlier this week, I kept getting errors that my SD card was not available. These errors would come out of the blue, sometimes even when the phone was in its dock. This made Spotify and Camera apps useless.
However, the phone still recognizes that the card is still plugged in.
At no point in time had I touched the actual card physically.
The only way to fix it, is to either pop the batter door, pop out the SD card out and back in, and then force close the apps that depend on it.
Or, reboot the phone.
How do I go about fixing this?
Your card might have become mounted "read only" ....you can fix it in a computer. Do a google search for "sd card mounted read only". It has happened to me before. It happens sometimes when one or more files on the card become corrupted....the fix will not erase your card.
Sent from my SCH-I605 / Galaxy Note 2 using Tapatalk v 2.4.13
manbat said:
Your card might have become mounted "read only" ....you can fix it in a computer. Do a google search for "sd card mounted read only". It has happened to me before. It happens sometimes when one or more files on the card become corrupted....the fix will not erase your card.
Sent from my SCH-I605 / Galaxy Note 2 using Tapatalk v 2.4.13
Click to expand...
Click to collapse
I had feeling that it would be something related to the writability of the card.
Seems that this is a common problem, but none of the solution threads showed up in my searches.
From here, we have the following:
Fix the FAT
- connect device to your PC (USB connection) and make sure it’s set so that you can copy files to/from your computer (on my device in the notification panel there’s an option to do this under “USB connected”)
- on your pc, open windows explorer (or click on start->computer), then right click on the mapped drive to your sd card – you may have to wait a minute or two for the mapping to take effect
- select Properties
- select Tools
- select Check now… (for error checking) to automatically fix file system errors (no need to deal with bad sectors at this time)
- when completed (takes a minute or so), the FAT will be in working order once again. No files are deleted during the process, so no need to worry about that.
- safely disconnect the device from your pc, at which point the sd card will now be mounted read-write and you’re good to go
Click to expand...
Click to collapse
Once I get home I'll try this out.
I just put it in a SD Adapter and plug it into the computer. Use the same process listed. Worked for me.
Sent from my SCH-I605 / Galaxy Note 2 using Tapatalk v 2.4.13
I executed a check disk on my sd card and put it back in my phone. The same problem persists. This is rather annoying.
Mine was close to capacity a while ago and exhibited all signs of being toast.
I removed about 20 gigs of music from it, and it came back to life.
Good luck.
Hmm, I'll give it a try. The SD card is pretty full with all the TWRP and Titanium backups ...
I tried everything under google's radar, and I cannot get this to work. The car simply does not like to be written on, cannot be formatted, an check disk does nothing.
HTML:
[email protected]:~$ dmesg | tail
[439975.916884] sd 18:0:0:0: [sdb] Write Protect is off
[439975.916896] sd 18:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[439975.918251] sd 18:0:0:0: [sdb] No Caching mode page present
[439975.918259] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[439975.923608] sd 18:0:0:0: [sdb] No Caching mode page present
[439975.923616] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[439975.924857] sdb: sdb1
[439975.929020] sd 18:0:0:0: [sdb] No Caching mode page present
[439975.929033] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[439975.929044] sd 18:0:0:0: [sdb] Attached SCSI removable disk
[email protected]:~$ fdisk -l
[email protected]:~$ sudo umount /dev/sdb1
[sudo] password for z:
[email protected]:~$ sudo mkfs.vfat -n 'SDCARD' -I /dev/sdb1
mkfs.vfat 3.0.14 (23 Jan 2023)
mkfs.vfat: failed whilst writing FAT
[email protected]:~$
I looked up my order on Amazon, and then at the product reviews for the card. I stumbled upon this thread: http://www.amazon.com/review/RUM36X...IN=B009QZH6JS&nodeID=172282&store=electronics
Seems like it is time to call Sandisk and get this card RMAed
I have fixed this by transferring my card to pc, running a full format via cardreader. and putting my files back. I believe a full format will mark bad sectors. It will take a while though.
If you are having trouble formatting in windows try using a software called gui format.
johnwaynegacy said:
I have fixed this by transferring my card to pc, running a full format via cardreader. and putting my files back. I believe a full format will mark bad sectors. It will take a while though.
If you are having trouble formatting in windows try using a software called gui format.
Click to expand...
Click to collapse
I tried formatting from both Ubuntu and Windows. There seems to. Something totally off with the card; I simply cannot write to it.
Sent from my Nexus 7 using Tapatalk 4
Here is what happens in windows:
Through CMD
Code:
C:\>format /fs:FAT32 Q:
Insert new disk for drive Q:
and press ENTER when ready...
Code:
C:\Users\Z>format /fs:exfat /x /q Q:
Insert new disk for drive Q:
and press ENTER when ready...
The type of the file system is FAT32.
The new file system is EXFAT.
QuickFormatting 60890M
Volume label (15 characters, ENTER for none)?
Invalid media or Track 0 bad - disk unusable.
Through Disk Manager
Code:
---------------------------Virtual Disk Manager---------------------------
The format did not complete successfully.
---------------------------OK ---------------------------
There is something definitely wrong with the card
I've got a 3TB external drive drive hooked up to my Ouya running CM11 (Android 4.4)
I run Nzbget and Transmission in optware, and use CM primarily as a vehicle for XBMC so I need the space.
I had it in 2 ext4 partitions which needed a init script to mount under the stock OS.
I was hopping to get it working in a less hacky manner under CM.
I tried with the two parts, and no go so i redid it with one big partition with root as the UID and sdcard_rw as the GID.
Still no dice. I can access it in File Manager with elevated permissions, but no go in XBMC or other apps.
Also tried one big exFAT partioning with no luck.
I plugged in an 8g ntfs drive I had and it automounted it no problem.
Anyone know the right way to configure the drive? We're a Linux household so sticking with ext2/3/4 would be ideal. NTFS I would like to avoid.
Thanks
mounting manually for now
System logged this when it failed to automount
EXT4-fs (sdb1): Unrecognized mount option "context=ubject_r:sdcard_external:s0" or missing value
Anyone shed light on this?
I've read many forums but I'm afraid I'm still stuck.
My phone is a Moto G XT1032, and I have installed Nano 7.1 using the final Rom 4.6 a fully stable build finished January 28th, 2018.
I have always been able to plug in the USB OTG and see it on File Explorer and copy and paste files, but I was unable to read them directly off the USB without it creating a temporary file first.
At that point, it wasn't mounted.
But using root and StickMount I was able to mount my USB, and when it had 2 partitions both were mentioned as having successfully mounted.
But even after mounting it successfully I couldn't read files directly off the USB OTG as it still copies it to Internal Storage first in the Cache before later deleting it, so I copied it to a folder used it and deleted it which worked well for videos but won't work for apps.
I read various forums but the most informative was
https://forum.xda-developers.com/android/apps-games/4-1-how-to-app-100-to-microsd-usb-otg-t2934974
So, hoping the guide would help I took a blank USB and formatted it the same way the thread did
I created two partitions, a Fat32 and EXT3 and I made the EXT3 partition the active one as the guide mentioned.
I found a pro-BusyBox and performed the smart install.
After that I installed LetsGoApp but no matter what I did it did not detect it as a USB OTG that was mounted. I even tried Mount SD 2nd Partition and Hot Reboot but neither worked
It mentioned that if there were problems detecting it to try to use Link2SD
But under storage Info it saw the External SD of my Fat32 but did not see an SD Card 2nd part nor did it allow me to move any apps either.
I'm not sure what the problem is, the only idea I have is to see if reformatting the EXT3 as an EXT4 and seeing if that helped because other forums used it instead.
Is there something I'm missing that would solve the problem?