Related
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.
Im having some strange problems connecting my SD card to my SGS3.
Bought a USB OTG cable from ebay 2 weeks ago (this one) and also an SD card reader to plug into it (this one). The phone found the SD card when plugged in and i could browse files from the card fine. a file browser would pop up instantly and allow me to navigate the card. Then it literally stopped working a few days later.
I thought it was the card reader so i plugged a USB mouse into the cable and conntected to my phone and it worked fine, meaning it wasnt the cable. I then plugged the card reader into my PC and it didnt find it, so i thought the card reader might be damaged, and went and bought a new one (this one), but when i plug it into my USB cable, and then into the phone,it still says "USB connector connected" (as shown in this image), but it doesnt launch the file browser, nor can i find the card anywhere in the file system.
Ive turned off USB Debugging from Developer options, but cant for the life of me find out why my SD card cant be read by my phone!
To summarise:
USB OTG cable works fine as ive plugged a mouse into it.
SD Card reader works fine as ive pluuged it into PC with SD card in and i can view files
SD card wont connect to my phone via USB OTG cable
Not all card readers might be compatible, it depends on the chip they use.
I'd recommend using 'real' USB-Sticks instead of SD-cards due to the better compatibility unless required.
The first SD card I bought was working and then suddenly stopped working so I can't understand why this is!
I could probably try a USB stick (will do when I get back from work) but for her purpose I'm using it for, I need to be able to read an SD card.
Really confused as to why this is happening!!
Does USB debugging make a difference being on/off?
so I can't understand why this is!
Click to expand...
Click to collapse
As I said, probably a different chip in that card reader. It's trial and error.
Does USB debugging make a difference being on/off?
Click to expand...
Click to collapse
No, that allows ADB. It has nothing to do with OTG.
"USB connector connected" just means that the OTG cable is connected, nothing else.
In terms of SD cards, especially with readers, they can be a bit of a pain. Better to stick to usb devices. I use a kingston USB card reader and it works with the S3.
d4fseeker said:
As I said, probably a different chip in that card reader. It's trial and error.
No, that allows ADB. It has nothing to do with OTG.
Click to expand...
Click to collapse
Surley if it was working before, then it shows there isnt a problem with any chip's compatability with the S3?
Surley if it was working before
Click to expand...
Click to collapse
According to your description it was never working.
It worked on another SDcard reader with different internal electronic
If you get the same one you had at the beginning or one with identical chip, it should work again.
Oh i understand what you mean, crossed wires sorry. i thought you were talking about why the first one had sudennly stoped working.
Why do some SD card readers work with USB OTG and some dont? I thought they would all work as all USB?
Card readers are not real mass storage devices but have electronics to convert from SDcard-connectivity to USB.
These need to be controlled by the host computer, and as such need drivers.
Linux and Windows include drivers for most common devices and often can control a device with generic drivers which guess how the device MIGHT react.
If your device is rooted, please open Terminal Emulator (free App on the market) and type: (It may work with non-rooted devices too, I'm not sure)
Code:
dmesg > /sdcard/usb.log
DO NOT PRESS 'ENTER' YET.
Plugin the USB-OTG connector without the device. Wait 1-2 seconds, then plugin the SDcard reader with an SDcard in it.
Wait 1-2 seconds again, then hit ENTER to run the commend.
Then please attach the logfile you will find on the SDcard (with the name usb.log) to your next post.
It should show what exactly goes wrong
Oh i see, I thought any USB card reader would work... i was wrong
Ive done what you said (it did work on my un-rooted GS3), but wouldnt let me attach it, it was saying it is an invalid file, so i put it on Google Drive for you to download. it's here.
The usb.log is for the new card reader that works in the PC but not in the phone. Didnt see any point doing the first card reader that suddenly no longer works in the phone, as it doesnt work in a PC either.
Thanks for all your help so far!
Code:
<5>[64485.553889] c0 scsi 9:0:0:0: Direct-Access USB2.0 CARD-READER 1.01 PQ: 0 ANSI: 2
<5>[64485.558943] c0 sd 9:0:0:0: Attached scsi generic sg0 type 0
[...]
<5>[64486.078812] c0 sd 9:0:0:0: [sda] Attached SCSI removable disk
Seems I was wrong and it's recognizing the card-reader all right and seems to be able to access it.
So, for any reason, it seems to be unmountable.
Could you please confirm it's recognizing the partition alright by attaching the card reader to your phone and then typing: (Should work without root too)
Code:
ls /dev/block/sd*
It's supposed to give you 2 lines of output:
sda
sda1
If only sda, please make sure your SD-card is in FAT32 format (not exFat, may cause issues)
If both, go to System->Storage and check if you can manually mount the USB storage (called an SD-card under CM10 at least)
If not, apart from re-formatting the SD-card that's as far as we can go without root, 'mount' commands need root to work.
Yeah it does show both sea and sda1.
I can go to storage settings but I have a microsd card in my phone so when I click unmount it just unmounts the micro sd. When the microsd is unmounted, I cannot mount the SD card either
d4fseeker said:
Code:
<5>[64485.553889] c0 scsi 9:0:0:0: Direct-Access USB2.0 CARD-READER 1.01 PQ: 0 ANSI: 2
<5>[64485.558943] c0 sd 9:0:0:0: Attached scsi generic sg0 type 0
[...]
<5>[64486.078812] c0 sd 9:0:0:0: [sda] Attached SCSI removable disk
Seems I was wrong and it's recognizing the card-reader all right and seems to be able to access it.
So, for any reason, it seems to be unmountable.
Could you please confirm it's recognizing the partition alright by attaching the card reader to your phone and then typing: (Should work without root too)
Code:
ls /dev/block/sd*
It's supposed to give you 2 lines of output:
sda
sda1
If only sda, please make sure your SD-card is in FAT32 format (not exFat, may cause issues)
If both, go to System->Storage and check if you can manually mount the USB storage (called an SD-card under CM10 at least)
If not, apart from re-formatting the SD-card that's as far as we can go without root, 'mount' commands need root to work.
Click to expand...
Click to collapse
Hmm, I have no clue why it doesn't automount it.
Should you decice to root (it's a real painless method) we can look further but for now I'm out of ideas on checking the reason.
I've got the exact same problem - my otg usb hub worked with everything yesterday, now it won't mount drives, but my usb keyboard worked? Any help would be greatly appreciated, I only moved from the dark side a couple of weeks ago!
Sent from my GT-I9300
Are you rooted?
Yes with CF root 6.4
EDIT here's my usb.log http ://db.tt/dcTrO9nZ with space!
Sent from my GT-I9300
I'm not rooted but planning OK rooting and getting an unbranded version of jelly bean when its official. Can you point my in the right direction to root (at work now so only looking at reading the process)
I used this:
http://forum.xda-developers.com/showthread.php?p=27049357
Hope that helps
Sent from my GT-I9300
@imfromwales
Here you go, it's pretty straight forward. (A lot of text to say so little =D )
http://forum.xda-developers.com/showthread.php?t=1695238
@M-Lin
Please try: (with the device attached)
Code:
ls /dev/block/sd*
Remember the last device in the list with the name sdX1 (where x is a letter)
Code:
su
mkdir /mnt/usbdisk
mount -t vfat /dev/block/sdX1 /mnt/usbdisk
(The x in sdX1 here being the one you remembered above)
If it doesn't give an error-message, try accessing that folder through a file browser.
@M-Lin
Please try: (with the device attached)
Code:
ls /dev/block/sd*
Click to expand...
Click to collapse
Thanks I get
/dev/block/sd*: no such file or directory
EDIT: I also get SC3 usb host driver NOT found! In usb host controller 0.44
EDIT 2: it was my usb hub - a wire has come loose - thanks for your help anyway
Sent from my GT-I9300
I am under ICS 4.03 on Acer Gallant Duo (E350) (MT6575)
/sdcard = internal storage
/sdcard2 = removable storage
I change build.prop parameter to ersist.sys.usb.config=mass_storage,adb
My device switched fro MTD to UMS correctly but only internal sdcard in visible and mount on my computer.
/sdcard2 (external sdcard) is not visible and not mounted on computer.
The strange part of the process is that /sdcard2 is unmount from the device (ACER) but not presented to the computer.
I tried to reformat the external sdcard2 without success.
any idea
jaarvin said:
I am under ICS 4.03 on Acer Gallant Duo (E350) (MT6575)
/sdcard = internal storage
/sdcard2 = removable storage
I change build.prop parameter to ersist.sys.usb.config=mass_storage,adb
My device switched fro MTD to UMS correctly but only internal sdcard in visible and mount on my computer.
/sdcard2 (external sdcard) is not visible and not mounted on computer.
The strange part of the process is that /sdcard2 is unmount from the device (ACER) but not presented to the computer.
I tried to reformat the external sdcard2 without success.
any idea
Click to expand...
Click to collapse
Have you tried using partition manager at all bud? It can format partitions not seen by Windows
Sent from my HTC One X with Beats Audio using Tapatalk 2
rawdaddymagraden said:
Have you tried using partition manager at all bud? It can format partitions not seen by Windows
Sent from my HTC One X with Beats Audio using Tapatalk 2
Click to expand...
Click to collapse
Hi,
I am under mac osx !
My problem is not related to formating but to make my external sdcard being presended to the computer in UMS mode
At this time it does not even present the volume corresponding to the external sdcard
It seems there is s.t wrong with sysfs contents
I found an intersting information here: (i could not post outside link according ti XDA rules)
In my cellphone sysfs there is only one declaration corresponding to /sdcard (internal one)
/sys/devices/platform/mt_usb/gadget/lun0
but not lun1
There is also some symlink errors in sysfs which could have some impact on init setup !
Playing with vold.fstab and fstab.nand do not solve
I am stuck at this point !
jaarvin said:
It seems there is s.t wrong with sysfs contents
I found an intersting information here: (i could not post outside link according ti XDA rules)
In my cellphone sysfs there is only one declaration corresponding to /sdcard (internal one)
/sys/devices/platform/mt_usb/gadget/lun0
but not lun1
There is also some symlink errors in sysfs which could have some impact on init setup !
Playing with vold.fstab and fstab.nand do not solve
I am stuck at this point !
Click to expand...
Click to collapse
Maybe it is under Removable Devices.
In my Asus tablet it is referenced under /Removabledevice or /removable something. Why don't you check it out??
Disclaimer: I am not a developer, just a normal user/flasher, got no knowledge about hacking.
k1chy said:
Maybe it is under Removable Devices.
In my Asus tablet it is referenced under /Removabledevice or /removable something. Why don't you check it out??
Disclaimer: I am not a developer, just a normal user/flasher, got no knowledge about hacking.
Click to expand...
Click to collapse
Under Android everything is OK I can see both sdcard monuted under /sdcard ans sdcard2 in /mnt.
Problem occurs when I connect my Acer E350, active UMS sharing in order to make both /sdcard ans /sdcard2 visible from my computer ( like a usb key in fact).
Under Mac it is /Volumes !
There is only a NO NAME volume corresponding to the internal /sdcard and it is visible under the Finder.
Both /sdcard and and sdcard2 are unmount from Android device (usual behavior) and i can confirm that under Setting/storage App but something in the process goes wrong and only internal sdcard is presented to the computer
Sitting here in TWRP and can't for the life of me find out how to mount the storage for copying ROM's over. Is this something I have to do in the OS? Can I not mount anything within TWRP?
AndroidVageta said:
Sitting here in TWRP and can't for the life of me find out how to mount the storage for copying ROM's over. Is this something I have to do in the OS? Can I not mount anything within TWRP?
Click to expand...
Click to collapse
Twrp auto mounts your sdcard, just browse to where you want to go when you go to install, otherwise hit Mount and select what you want mounted.
Tapatalked from my HTC DNA - Carbon
pio_masaki said:
Twrp auto mounts your sdcard, just browse to where you want to go when you go to install, otherwise hit Mount and select what you want mounted.
Tapatalked from my HTC DNA - Carbon
Click to expand...
Click to collapse
I do this! OK, I have the USB plugged in...go to Mount and it says "Select Partition to Mount". Cache and Data are selected. Nothing happens.
I check System and nothing happens.
USB OTG can't be checked and when I tap "Storage: Internal Storage (8545 MB)" it gives me "Internal Storage" and "USB-OTG"...again can't select USB-OTG.
I really can't do anything, Mount is completely useless to me. My PC recognizes that something is plugged in (get the connect/disconnect sound) but nothing pops up as far as storage and all that goes.
Soooo...anymore ideas? Am I missing something?
AndroidVageta said:
I do this! OK, I have the USB plugged in...go to Mount and it says "Select Partition to Mount". Cache and Data are selected. Nothing happens.
I check System and nothing happens.
USB OTG can't be checked and when I tap "Storage: Internal Storage (8545 MB)" it gives me "Internal Storage" and "USB-OTG"...again can't select USB-OTG.
I really can't do anything, Mount is completely useless to me. My PC recognizes that something is plugged in (get the connect/disconnect sound) but nothing pops up as far as storage and all that goes.
Soooo...anymore ideas? Am I missing something?
Click to expand...
Click to collapse
Sounds like you're trying to use your PC as a USB device? Not the way it works, that's for USB flash drive type devices, not pulling stuff from your PC. Either place the ROM on the SD card, use a USB drive on an OTG cable, or use adb sideload while connected to the oc to flash from the PC storage instead of the SD card.
Putting the ROM on the SD card will probably be best.
Tapatalked from my HTC DNA - Carbon
OOOOOOOK...so direct connection isn't possible? Got OTG to work with my OTG cable and flash drive. Worked perfectly. Not as convenient but it works. Thanks!
AndroidVageta said:
OOOOOOOK...so direct connection isn't possible? Got OTG to work with my OTG cable and flash drive. Worked perfectly. Not as convenient but it works. Thanks!
Click to expand...
Click to collapse
You can do adb sideload from the PC for a direct connection.
Tapatalked from my HTC DNA - Carbon
Meh, which ever works. Either way I got the problem solved, thanks to you!
I really love how easy it is to use TWRP with an OTG USB drive. Makes backing up and flashing very nice on a phone with limited storage.
I think he was saying he wanted to copy from his PC to internal storage while he was on TWRP...
Yes?
Phaded said:
I think he was saying he wanted to copy from his PC to internal storage while he was on TWRP...
Yes?
Click to expand...
Click to collapse
That's what I was thinkin...
Sent from my HTC6435LVW using Tapatalk 4 Beta
I posted this on the Nexus7 pages, but I wonder if it might be better in a general android page .
I have a nexus 7 that i'm utilising in a car build.
It's running CM10.1 which I believe is based on 4.2.2, and Timurs custom Kernel.
I have a 175gb SSD dive, hooked up to a USB hub and OTG cable.
The SSD is recognised and mounts correctly on the Nexus via the kernel.
I'm looking to speed up the mount process.
When I connect the SSD, the led activity light on the SSD will start to blink rapidly, any media on the drive is inaccessible until the drive activity has ceased.
This process takes around 30 seconds or more.
The drive is formatted using exFat, with a single partition.
I've placed a number of .nomedia files inside the USBDISK folder, SDCARD folder, and in the root of the USB drive itself, but still mounting takes time.
Is there a way to speed up the mounting process.
Maybe moving the media folders inside a single folder, or some sort of file (like .nomedia) inside the folder structure to tell Android to not perform a file check and just mount it regardless.
Maybe a cache system.
The kernel is configured to have the drive in read only mode, so unless I manually add any files, then I have no need to scan for any file changes.
The drive could be in the car for months before I add any new media to it.
I noticed last night, when I connect the HDD to my Windows 7 PC, no such disk activity takes place.
The drive is mounted, and ready to access within seconds.
Thinking that the drive activity could be folder related, I created a new folder in the root named .files, and then moved all my data in to it.
However, the tablet is still performing some sort of laborious disk activity when the drive is connected.
This now has me thinking...
When a disk is mounted in Android, is it a real mount of a virtual one.
If it's a virtual one, then I guess the system needs to build the directory listing and populate this in a virtual folder ??
I guess no one else has experienced this, or I posted in the wrong forum, but i think i figured it out.
Just incase someone else has the same problem in the future, and in the vain hope that they stumble across this thread, I think it's only fair that I post my findings.
My SSD drive is formatted exFat for compatibilty between my PC, Tablet and S7 phone which is on Marshmallow.
I have 2 hard drives, I have a 2.5" SSD and a standard 2.5" Sata drive.
So something to experiment with.
I have 2 hard drives, I have a 2.5" SSD and a standard 2.5" Sata drive.
So something to experiment with.
Formatting the standard hard drive as NTFS and then copying a small number of my files on to it, i noticed that the mount time was instant, with hardly any drive activity.
All files are accessable.
It makes little sense, considering a standard mechanical drive is supposedly slower than SSD.
I then formatted it exFat, and copied roughly the same number of files, but now the mount time was about 5 seconds, with the drive light activity issue.
I reformatted my SSD as NTFS, copied my files back on to it, and the mount time is still almost instantaneous.
So it looks like whatever is causing the extended mount time is asscociated with exFat.
I've no idea why, so if anyone can explain, i'll be happy to learn.
somehow exfat formatted disk is checked for errors on android every time it mounts.