Decrease USB Mount Time - Nexus 7 Q&A, Help & Troubleshooting

Guys.
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.
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.
I've placed a number of .nomedia files inside the USBDISK folder amd SDCARD folder, 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.
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 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.
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.
My SSD drive is taking 30-40 seconds to mount, which is annoying to say the least.
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.

Related

Defrag Storage Card, Don't Do It.

This is just a quick heads up. It was new to me and I had never came across the issue before on here, so I am posting my results.
I was doing some routine maintenance on my PC and I had accidentally left one of my external USB Stick drives in the machine. I noticed that in the Defrag options, it now gave me an option to Defrag the external drive. I thought to myself, thats kinda cool, I bet my 6gb Micro SD card on my phone could benift from a good defrag. I quickly popped my Micro SD card from my phone, plunked it into a USB Key Reader and told Diskeeper to Defrag the Micro Card. I was thinking, this should be great, I have thousands of files on my Micro Card, a good Defrag should be a cool thing. A few mins later it said it was done so I pulled it out and put it in back in my phone.
The next day I went to launch TomTom and it took 5 mins just to launch the app. I thought it had froze or something. I was fighting with it, driving me nuts. I re-installed TomTom, still taking 5-8mins now to load the app. When I tried to get directions it would take up to a min just to plot a route. (should only take a few seconds) I re-flashed the phone with a new ROM, then reinstalled TomTom and it did not help at all. Everything on the storage card was taking forever to load. Even the music apps were bogging down really badly.
Today, I yanked the Micro Card out of the phone, placed it in a USB key and copied the contents to a temp Dir on my desktop, formated the card, then wrote some data to the card and formated again.
Finally I put all my data from the temp Dir back onto the card and put the card back in my phone. Launched TomTom and took about 5 seconds rather than 5 mins to load. Everything is back to perfect.
I was hoping to Increase speeds with the Defrag of the Micro SD card and in fact it killed it horribly.
Lol, good to know. I would have thought the same thing!
a little common sense would have told you that would be a bad idea.
defragging is designed to 'defragment' files and put the most used files all together at the start of the drive. meaning a hdd head doesn't have to do a lot of skipping about for one file. then yet more skipping to find the next file, and a whole load more skipping to find different pieces of that file, etc etc.
the fact that solid state media doesn't have a drive head renders defragmenting unnecessary, plus as SSDs also have a limited number of write cycles the excessive writing required to move files around the card reduces its lifespan.
hope this helps
It depends
After owning several Pocket PCs with various expansion types, defragging has it's benefits and it's pitfalls.
(The following comments are based on percieved experience. I've not done any benchmarking.)
I've found using cheap card readers can definitely cause problems with cards, particularly when defragging. It can result in various errors in the files and sometimes even render the card unreadable/unwritable. Even reformatting has no effect. To solve the problem I've often had to use a digital camera to reformat the card before it can be read/written by a PC via card reader.
Multi-media files seem to be the type of file that benefits most from a contiguous file that needs to be read/written by the Windows Mobile device. Particularly video. Why this is so, I do not know. But when watching video or listening to audio skipping and stuttering seem to be much less aparent when the file is contiguous. Also, I've been able to resurrect some .jpg files unreadableby my WM device by doing a defrag. Again, no idea why.
Almost any file that needs to be constantly read seems to benefit from a contiguous file, e.g. GPS maps.
Safest way to make files contiguous is to copy the contents of the card to a hard disk, reformat the card, then rewrite to the card.
Just my 2 cents.
Would be interested in anyone else's observations, particularly with media files.
Defragging files on flashcards is pointless - skipping from sector to sector in a row takes as much time as to skip into random sectors...
Frequent writes on cards descrease their lifetime... So that - defragging anything else than hard disks is harmful for media.
maybe unrelated, but is the option "encrypt files in the storage" (or something sounds like that) from within the windows mobile's settings pose any danger? i.e. conflicting with PIM backup files etc.
thanks
Please read
Just found this article
dave852 said:
a little common sense would have told you that would be a bad idea.
defragging is designed to 'defragment' files and put the most used files all together at the start of the drive. meaning a hdd head doesn't have to do a lot of skipping about for one file. then yet more skipping to find the next file, and a whole load more skipping to find different pieces of that file, etc etc.
the fact that solid state media doesn't have a drive head renders defragmenting unnecessary, plus as SSDs also have a limited number of write cycles the excessive writing required to move files around the card reduces its lifespan.
hope this helps
Click to expand...
Click to collapse
Well said, SD cards and USB drives are flash drives and as so they don't need defragmentation and also as it was mentioned in the quote, it reduces it's lifespan.
Cheers
With Sandisk offering a 5-year limited warranty for their ordinary microSDHC and a 10-year limited warranty on their Ultra microSDHC cards and an expected minimum life of 15 years and maximum of 75 years (according to a Sandisk forum moderator) does it really matter what you do?
With storage memory sizes and formats moving so fast, who expects to keep using these things bought today on a daily basis on 5 or even 10 years' time?

[Q] Second HDD in a notebook

I recently purchased a new Sony Vaio notebook that came with windows 8 preinstalled. It cam with a 1 tb HDD that was replaced with a 180 gb SSD and windows was reloaded using a recovery usb. I then wanted to mount the 1 tb HDD into dvd drive spot so I bought a caddy for it off of amazon. It was really easy to pull out the dvd drive and pop in the HDD in it's caddy and it fit perfectly. I turned on the notebook and it booted up and the drive was now recognized at D drive. I could see the windows os was still on there so I did the quick format option and then proceeded to transfer my music folder over from my external. I noticed through the whole process that the fan seemed to be running really high and I thought it was just because I was messing the new HDD but it never went away even when I was done with the transfer. The HDD seemed to always be spinning too even when I wasn't accessing files on it which didn't seem right if it's not being used. The fan is usually running but this was a full blast like I was playing a high end game. Windows gave me a blue error message about a kernel and rebooted. The fan immediately kicked in once it restarted so I turned it off and put the dvd drive back.
So my question is just if anybody has any experience doing something like this and has some suggestions? I want to try it again and figured it wouldn't hurt so ask for advice on here before I do. I figured I would try doing a different type of format as maybe there are still os traces on there that's messing things up. Thanks for reading.
ROORnNUGZ said:
I recently purchased a new Sony Vaio notebook that came with windows 8 preinstalled. It cam with a 1 tb HDD that was replaced with a 180 gb SSD and windows was reloaded using a recovery usb. I then wanted to mount the 1 tb HDD into dvd drive spot so I bought a caddy for it off of amazon. It was really easy to pull out the dvd drive and pop in the HDD in it's caddy and it fit perfectly. I turned on the notebook and it booted up and the drive was now recognized at D drive. I could see the windows os was still on there so I did the quick format option and then proceeded to transfer my music folder over from my external. I noticed through the whole process that the fan seemed to be running really high and I thought it was just because I was messing the new HDD but it never went away even when I was done with the transfer. The HDD seemed to always be spinning too even when I wasn't accessing files on it which didn't seem right if it's not being used. The fan is usually running but this was a full blast like I was playing a high end game. Windows gave me a blue error message about a kernel and rebooted. The fan immediately kicked in once it restarted so I turned it off and put the dvd drive back.
So my question is just if anybody has any experience doing something like this and has some suggestions? I want to try it again and figured it wouldn't hurt so ask for advice on here before I do. I figured I would try doing a different type of format as maybe there are still os traces on there that's messing things up. Thanks for reading.
Click to expand...
Click to collapse
Perhaps the new caddy is blocking airflow? Also, the drive may be pulling more power than the DVD drive would and causing something to get overloaded.
I did this with a Lenovo Ideapad y550p and I never noticed any issues like this.
I'd try checking if your manufacturer has a public support forum you can post on, this seems like it may be a device specific issue.
HDDs generate a lot of heat (for more than most SSDs, incidentally) and your laptop's cooling may not have been designed for this source of heat.
You also bought a Sony device, which makes it difficult for me to even speculate what other problems might be occurring.
Thanks for the replies. I tried looking around the sony website but can't find much. I'll give it another go and check for some airflow and if that doesn't work then I'll just live with the ssd because I'm not giving that speed up.
You could try swapping the SSD and HDD. The SSD should generate less heat, which may help out.
So I reinstalled and did a full format which took over two hours but I noticed there were still hidden partitions on this drive so I got rid of those and expanded the drive all the way. Then I unchecked the box to allow random indexing on this drive and changed the power options shut off disk to 1 min per someone's instructions from a google link and it seems to working now. Figured I would post in case someone else ever runs into this issue.

Full Size SD Card (Non-MicroSD) Information

In case anyone runs into issues like I did, please read the following...
I have a T-Mobile Note 4, running Official CM12.1 Nightlies (had same issues on TouchWiz junk), and a MicroSD to SD converter ribbon running the PNY 256gb card. In case anyone asks, I have the Hyperion 8000mAH extended battery which is where I acquired the room for the full size SD and cable (after trimming the left side of the board where the SD card reader is mounted). I attached a picture for anyone who wants to try it. Also, I provided a link below to the adapter.
http://www.ebay.com/itm/Sintech-SDH...pter-FPC-cable-for-mobile-phone-/221149974785
I had issues where the phone would recognize the card and partially mount it. Meaning, listening to music, browsing the file contents, etc, was very laggy and caused things to freeze. Also, transferring things via USB from Windows would usually halt and fail half way through. I probably formatted 30 different times, in both FAT32 and exFAT.
I solved the issue completely by formatting the card in TWRP to EXT4. I had downloaded a 3rd party Linux system explorer for Windows expecting it not to see the EXT4 file system, however, it shows in Windows explorer perfectly fine and all functions are present NATIVELY. Thanks MTP.
Probably won't apply to most as I've only seen two other posts in the past 2 years with anyone running a similar setup, however figured I'd post it in case someone else decides to try it and has issues. :good:
Thumbs up to the guy that finds this by searching a year from now!
love this hardware mod

OTG heavy lag and freeze?

So I was having a few lag issues before but since a factory reset most have cleared up except this one. Every time I use OTG to a flash drive the my files app lags horribly sometimes it freezes all together. Ex I downloaded a video torrent directly to my sd card then I plug in my otg cable and flash drive. It pops up in my files no problem but then when I move file from sd to usb the folders lag when opening, pressing done to move the file lags in opening the progress pop up, then after it copies it take 2-3 sec for the folder to refresh and show the contents on usb drive. Also if I try to rename a file that is already on the usb takes forever to pop up the rename box and after its renamed takes a few to refresh contents of folder again. I've tried two flash drive and an external hdd all formated exfat by the phone. Is anyone else experiencing this or maybe have a solution?
This has been an issue with all android phones I've had. The best way around this is just to change and move files internally from the phone itself or drag files onto the computer then back onto the phone after renaming. It's a problem with Mac as well as PC
I never had this problem with my note edge or s6 edge+. I don't own a pc anymore since I've started using otg. I download the video files on my phone, otg them to drive, and plug drive in to my TV. I've been doing this for last 4 gens of Samsung phones and have never had a problem before. I create all my folders, rename, and move files back and forth between phone and drive with no problem. Do you think it has something to do with using external sd over internal? On my note and s6 I used my internal for downloads but with only 32gigs on s7e and the file sizes getting bigger and bigger my 128gb sd card is my only option.
AndroiderM said:
I never had this problem with my note edge or s6 edge+. I don't own a pc anymore since I've started using otg. I download the video files on my phone, otg them to drive, and plug drive in to my TV. I've been doing this for last 4 gens of Samsung phones and have never had a problem before. I create all my folders, rename, and move files back and forth between phone and drive with no problem. Do you think it has something to do with using external sd over internal? On my note and s6 I used my internal for downloads but with only 32gigs on s7e and the file sizes getting bigger and bigger my 128gb sd card is my only option.
Click to expand...
Click to collapse
Can you suggest a Good Quality OTG wire
& also a 128gb Usb Flash Drive which is very very fast
Thanks
I use the Samsung brand one,picked it up at bestbuy a few phones ago. I've never had any issues with it. The s7 also comes with one but I haven't tried it yet. As far as flash drive any reputable brand should be fine your not gonna get usb 3.0 speed from the phone over OTG.

External, Adopted HDD's *enclosure* died, replaced enclosure, can't access drive

Summary is this, I have the 2017 model (changed from the 2015 which had gotten the green flash of death), I had to rebuild all the data I had available from the SD card on my 2015. I had backed up the encryption key and was able to save all my app settings.
Both that one and this one were/are rooted.
Everything was good until the usb enclosure, not the drive, just the plain, generic enclosure that I had for an external 1tb 2.5" drive had given up. USB port has a torn trace. I could probably repair it, but it would be tedious and time consuming.
I took the drive out, threw it into another enclosure, the shield powers it up, but pretends it's not there, then after about 5 minutes at the home screen, with none of my adopted apps showing, it turns the drive off or puts it into sleep mode.
There were both completely generic enclosures, definitely no encryption chips or any other muckery that the OEMS like WD does.
Since I know the drive is perfectly intact, and AFAIK the uuid couldn't have possilby changed, is there any way to replace whatever it is, flag, config file, whatever that makes the shield think that only the other enclosure will work?
Also, the odds of finding another "exact" same of the original generic enclosure is less than finding Ezios in haystacks.
Edit: if it matters, this is the latest version of the system from nvidia, then rooted.
TIA

Categories

Resources