Automount SDcard as external storage script - HTC EVO 3D

I know there are certain apps out that will auto-mount your SDcard as external storage, but I was looking for something more along the lines of an Init.d script to get that same job done, I've done some searching and I can't seem to really find something that does what I'm looking for, any help appreciated, Thanks.
Edit: Evo3D CDMA btw.

External storage for when you connect to a computer? When you connect, select the mount as disk option and select don't ask again. It should then automatically mount the sd card as external storage each time you connect via usb.
Sent from my PG86100 using Tapatalk 2

coal686 said:
External storage for when you connect to a computer? When you connect, select the mount as disk option and select don't ask again. It should then automatically mount the sd card as external storage each time you connect via usb.
Sent from my PG86100 using Tapatalk 2
Click to expand...
Click to collapse
I know you can do that, I'm looking for a script to mount it while it still being accessable to the phone. It can be done, I just don't know exactly what to do.

Genesis Nova said:
I know you can do that, I'm looking for a script to mount it while it still being accessable to the phone. It can be done, I just don't know exactly what to do.
Click to expand...
Click to collapse
Sorry for giving the obvious answer earlier, but you'd be surprised how often that is what is needed.
If I understand what you need to happen, you might want to try one of these:
https://play.google.com/store/apps/details?id=com.protocol.x.USB&hl=en
https://play.google.com/store/apps/details?id=com.rafoid.multimountsdcard.widget

Haha yeah, I've seen that a lot too, I'm just looking for a script that does what those do, w/o having to use them, mostly curious.

Genesis Nova said:
Haha yeah, I've seen that a lot too, I'm just looking for a script that does what those do, w/o having to use them, mostly curious.
Click to expand...
Click to collapse
Haha, I see that now in your op. I'm a math professor, so reading comprehension is not our strong suit. I wish I could help. Maybe post in the thread of the Rom you use since the devs are far more knowledgeable.
Sent from my PG86100 using Tapatalk 2

Hah yeah, had a few of those types of math professors but thanks for the replies!

Related

Running low on Space on Internal card.

Just noticed my available space on my internal sdcard is sitting at around 2 gigs. This makes no sense. I dont have any music on it and I have gone through and deleted old pics and videos. I have also deleted old nandroid backups as well as files that i used to flash like roms and fixes.
Any ideas on whats causing this. I am running Kirf custom with voodoo enabled.
Are you sure that, that's your internal sd card and not the external sd card that you are reading off of? If you do have an external sd card please remove it, then reboot your phone, then check your memory once again without the external sd card inserted. Doing so should eliminate any confusion/confusions of you reading the wrong information.
Sent from my SGH-T959 using XDA App
Im looking at the right one. It says phone storage Total space:12.78 available space:1.90. With the apps I usually have installed I remember having at least 7 gigs free. This makes no sense to me.
adamboyd83 said:
Im looking at the right one. It says phone storage Total space:12.78 available space:1.90. With the apps I usually have installed I remember having at least 7 gigs free. This makes no sense to me.
Click to expand...
Click to collapse
Do you have a lot of ROMs stored on it?? a lot of game data?
these two things tend to chew up a looot of memory
I did delete all my stored roms. I do have need for speed shift installed I know it installed 150mbs when it first started up but maybe its the game save data then. I just would have thought the videos I was recording would have taken up alot more space than they did.
Sent from my SGH-T959 using Tapatalk
adamboyd83 said:
I did delete all my stored roms. I do have need for speed shift installed I know it installed 150mbs when it first started up but maybe its the game save data then. I just would have thought the videos I was recording would have taken up alot more space than they did.
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
Just mount your sd to your PC and arrange all files/folders according to size, then browse around and you should find out whats eating your space up
I had a similar problem earlier on, it turns out that one of my database files had some how gotten corrupted and bloated to taking up a lot more space than they should have. I would check the size of your database files to make sure this hasn't happened to you.
So I figured it out. Set file manager to show hidden files. There was a folder called. trashes. Went into the folder and there was everything I ever deleted. Hit select all and delete and I am now back at 12 gigs of space. That folder had 10 gigs of trash in it! I recommendations to every one look into doing this if you are low on space.
Sent from my SGH-T959 using Tapatalk
adamboyd83 said:
So I figured it out. Set file manager to show hidden files. There was a folder called. trashes. Went into the folder and there was everything I ever deleted. Hit select all and delete and I am now back at 12 gigs of space. That folder had 10 gigs of trash in it! I recommendations to every one look into doing this if you are low on space.
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
damn, never heard of that before
Me either. I was just messing with it. Stroke of luck I guess.
Sent from my SGH-T959 using Tapatalk
adamboyd83 said:
Me either. I was just messing with it. Stroke of luck I guess.
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
You must have a mac, adamboyd. Am I right?
This has to do with the way macs "send" files to the trash can, which is different than a PC's recycle bin. A mac does not move the file from where it was located when you send it to the trash can, it simply places it in a hidden "trashes" folder. This isn't an issue when the files are on your computer, but when you're using your mac to delete files on an external drive (flash drives, or your phone's sd), the file remains on the drive in the hidden folder your mac created and eventually you run into the problem you experienced.
Solution: Always empty the Trash Can before ejecting the drive from your mac. That action searches out and permanently deletes all files located in the hidden trashes folders. If you empty the trash can after you've ejected the phone's sd from the computer, then obviously it won't be able to locate and delete the files that you had "moved" to the trash.
Hope that helps!
Good to know. And yeah I have a mac. I never knew that but I do now.
Sent from my SGH-T959 using Tapatalk
No problem! I remember that frustrating me bad when I first got mine until I figured out what was going on.
Sent from my Vibrant using XDA App
Also, if you make ClockWorkMod nandroid backups, they can add up fast as well. If you're low on space then you might want to move the older ones elsewhere or delete them from the phone.
epakrat75 said:
Also, if you make ClockWorkMod nandroid backups, they can add up fast as well. If you're low on space then you might want to move the older ones elsewhere or delete them from the phone.
Click to expand...
Click to collapse
ah yes, i forgot about this..these can take up almost 1gb each

[App] ICS Unmount USB Adapter Stick

Hi,
The new ICS builds work great but one of the issues if you use a USB Adapter and you mount a USB stick to it it does not ask you to unmount it.
I wrote a little app just to do that, to safely un-mount the USB stick before you remove it from the Tablet. You may still get the android.process.media has stopped error, but you can ignore it.
This should work on all Galaxy Tablet 10.1 versions.
ChangeLog:
2012/02/18 Version 1.0 Initial release.
Tested and it works. Just install the application and run it when you want to remove the flash disk. You need to tap on the Android and you will see the message that the stick has been unmounted.
You may only get the error message the first time. I you plug in a USB stick again, when removed you don't get the error message.
Definitely a must have for those using USB sticks with the adapter.
Deleted.
Sorry, post wrong area
isimobile said:
Hi,
The new ICS builds work great but one of the issues if you use a USB Adapter and you mount a USB stick to it it does not ask you to unmount it.
I wrote a little app just to do that, to safely un-mount the USB stick before you remove it from the Tablet. You may still get the android.process.media has stopped error, but you can ignore it.
This should work on all Galaxy Tablet 10.1 versions.
ChangeLog:
2012/02/18 Version 1.0 Initial release.
Click to expand...
Click to collapse
Running AOKP build 23, ICS does not mount my flash drive with the usb adapter. Stickmount in the market fixes this, and has an unmount command as well.
No problem mounting on isi's ROM. This application is only for unmounting.
Tested Stickmount and the functionality is the same. The error message after removing the stick is also there.
Sent from my GT-P7100 using xda premium
and how mount usb drive on ics ?
AnakTeKa said:
and how mount usb drive on ics ?
Click to expand...
Click to collapse
Look 2 posts above.
Sent from my GT-P7100 using xda premium
Will this work for the Galaxy Note?
You can try and if it doesn't work just uninstall it.
Sent from my GT-P7500 using XDA Premium HD app
I've tried the app on a cheap Chinese WM8850 based tablet running ICS and it doesn't work. It says that the drive is unmounted, but the files are still visible even if USB scanning is disabled. The drive can be unmounted by going through the Settings menu and it's under storage>USB>unmount SD card (sic). That unmounts the drive (and doesn't unmount the SD card). A button on the home page to do the job would be welcome, but I'm not (yet) sufficiently familiar with ICS to have a go at writing one.
I have been just pulling out my usb and nothing bad has happened.
Maybe a stupid question, but is it really necessary to unmount before pulling out the USB?
I know that things could go wrong, but is it really risky to just pull out?
Not absolutely necessary but a good practise. I have run into a few issues on my Windows system due to delayed write operations. It's just a habit I acquired and hasn't done any harm.
Sent from my GT-P7500 using XDA Premium HD app
will try it on iconia a500
jimrob233 said:
I've tried the app on a cheap Chinese WM8850 based tablet running ICS and it doesn't work. It says that the drive is unmounted, but the files are still visible even if USB scanning is disabled. The drive can be unmounted by going through the Settings menu and it's under storage>USB>unmount SD card (sic). That unmounts the drive (and doesn't unmount the SD card). A button on the home page to do the job would be welcome, but I'm not (yet) sufficiently familiar with ICS to have a go at writing one.
Click to expand...
Click to collapse
I use a usb sticks a lot on iconia. after moving to ics, the unmount disk is a pita, will try this on iconia.
thanks
[email protected] said:
I have been just pulling out my usb and nothing bad has happened.
Maybe a stupid question, but is it really necessary to unmount before pulling out the USB?
I know that things could go wrong, but is it really risky to just pull out?
Click to expand...
Click to collapse
Ok I'm gonna try my best and explain it, this is certainly the case for windows PCs at least and I'm assuming the option is there in Android, as it does the same thing.
Basically when you write files to a removable storage device, it holds part of the data in a buffer if there isn't enough data for it to warrant the process being carried out. Unless you copy a substantial amount for it to do it in one go of course.
If it has got some data in the buffer, when you tell it to unmount, you're actually telling it to write any remaining data to the removable storage, flush the buffer and eject the device.
The problems occur if you pull out the device before "all" the data has been written, ending up with corrupt files on the device you were copying it to.
Hope this all makes sense and gives you an answer to your question.
Swyped from my finger to your face, on my Samsung Galaxy Note.

Disk drive mode

BASICALLY INTERNAL DRIVE READS AS CD-ROM AND NOT AS A PARTITION - HOW DO I FIX THIS?
Hey
Disk drive mode is killing me
I was one of the first to get this phone - I like HTC products
But ever since I received this phone I cannot access my internal storage when I plug it into disk drive mode. Why is this and how can I fix it?
I thought both internal and external are plug and play ready (meaning no driver needed to access to info), But for some strange reason my internal 9 gbs will not come up, my external is fine.
I would like to fix this issue today (searching all over the web for the answer) but I am trying to set up a wireless syncing with my phone and I am going to be using my external sd as my media and files and my internal for android system stuff.
I am thinking about formatting my internal memory but I need to first take the info out of it.
BASICALLY INTERNAL DRIVE READS AS CD-ROM AND NOT AS A PARTITION - HOW DO I FIX THIS?
thesssfactor said:
Hey
Disk drive mode is killing me
I was one of the first to get this phone - I like HTC products
But ever since I received this phone I cannot access my internal storage when I plug it into disk drive mode. Why is this and how can I fix it?
I thought both internal and external are plug and play ready (meaning no driver needed to access to info), But for some strange reason my internal 9 gbs will not come up, my external is fine.
I would like to fix this issue today (searching all over the web for the answer) but I am trying to set up a wireless syncing with my phone and I am going to be using my external sd as my media and files and my internal for android system stuff.
I am thinking about formatting my internal memory but I need to first take the info out of it.
Click to expand...
Click to collapse
Choose media sync and choose the drive that pops up and choose the phone I believe
almost got it to work
THIS DID NOT WORK
this link helped (http://www.xda-developers.com/android/replace-virtual-cd-on-the-htc-evo-4g-lte/)
it says
"
Replace Virtual CD on the HTC EVO 4G LTE
Posted August 6, 2012 at 10:30 pm by PoorCollegeGuy
Difficulty:
1
Replace Virtual CD on the HTC EVO 4G LTE
Every now and then, a mod so unique pops up that it bears closer examination. For HTC EVO 4G LTE owners, a mod such as this has appeared. When booted into a Sense ROM and connected to a PC, one will notice that the device mounts as two drives. One is the internal storage, and the other is a CD-ROM. Yes, a CD-ROM. Naturally, upon discovering this, the first step is to see if it can be used for something else. As it turns out, it can be.
XDA Recognized Contributor closeone has discovered that there is a file on the EVO LTE called PCTOOL.ISO, which is what causes the EVO LTE to show up as a CD-ROM when it’s plugged into a PC. Closeone explains why it is there and what can be done about it:
There is a file named PCTOOL.ISO inside the /system/etc directory that normally contains the HTC Sync Manager Software. By replacing that ISO with another, it’ll mount that one instead. Because there isn’t too much room to spare in the /system partition, the file should probably be kept relatively small.
There are a number of things users can put in place of the HTC Sync Manager Software, although not a whole lot of things have been tested yet. In theory, though, quite a few useful tools can be placed here, as closeone says:
1. ROM Developers can include a package that contains a copy of the ADB and Fastboot executables within their ROM. ADB would be useful while the device is on; Fastboot would probably have to be copied to the computer.
2. Because the ISO is mounted as Read-Only media, it could be incredibly useful for field technicians who need to run portable software, without the risk of being infected with a virus on the host machine.
Being able to run portable software without thread of virus is definitely something anyone could benefit from. Aside from being one of the more unique mods on XDA, having functionality like this on the EVO LTE can lead to various possibilities.
To learn more, check out the original thread."
THIS DID NOT WORK
bigdaddy619 said:
Choose media sync and choose the drive that pops up and choose the phone I believe
Click to expand...
Click to collapse
Yeah I tired that already, its not plug and play ready.
I believe in TWRP there is and option to mount internal storage so you can access it from a pc
detcup4evr said:
I believe in TWRP there is and option to mount internal storage so you can access it from a pc
Click to expand...
Click to collapse
Yeah that works but I don't want to put my phone in recovery mode every time I want to access my internal.
thesssfactor said:
Yeah I tired that already, its not plug and play ready.
Click to expand...
Click to collapse
If your looking for wireless adb try Jelly Bomb Domination it has it
Sent from my MB855 using xda app-developers app
bigdaddy619 said:
If your looking for wireless adb try Jelly Bomb Domination it has it
Sent from my MB855 using xda app-developers app
Click to expand...
Click to collapse
No I am just looking to get my internal Memory in my phone to open up like a disk drive without the use of any drivers. (Basically have my my internal memory work just like how my external memory works)
Did you install anything to mount internal as a live cd? When I plug my USB and set to media sync I can now copy anything I want even if its over the 4gb max file limit.
Sent from my EVO using xda premium
slowfncar said:
Did you install anything to mount internal as a live cd? When I plug my USB and set to media sync I can now copy anything I want even if its over the 4gb max file limit.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Not that I know of, I only unlock, turned s off and flashed 2 roms on it. My current rom is recent meanrom
Got media sync to work.
I had to delete everything inside of the internal memory to get it to work

[Q] Files disappeared (mostly pictures)

Hi guys,
I have a galaxy s2 with the latest AOKP rom installed. It's been working fine (except for GPS which got fixed once i swapped out the SIM card). I just came back from overseas and had a bunch of pictures on the phone. None of the pictures show up anymore. The SD Card had some pictures but they were old, and I should have a lot of pictures stored on the internal device.
I tried running recuva on just the sd card but they didn't come up. I only noticed that I had to reinstall 1 application so far because it wasn't working. Also, when I browse my phone using my computer, it seems like the root directory is missing a bunch of folders (I have hidden files to show).
Any ideas?
Not sure what had happen to your device. But the best course of action is to pull out your external microSD card and connect it to your computer directly to see if you can see the contents in that card. If yes, download them to your computer and back them up. Then format your microSD card with the phone, the phone should be able to read after that.
Once you have done that, if you can see all the rest of the pictures on your phone, transfer them to the external microSD and do the same thing and back those picture up.
Once the backup is done (if you are able to), then you can start working on fixing your GS2. Even if you have to reflash the ROM then you will have the data backup.
BeenAndroidized said:
Not sure what had happen to your device. But the best course of action is to pull out your external microSD card and connect it to your computer directly to see if you can see the contents in that card. If yes, download them to your computer and back them up. Then format your microSD card with the phone, the phone should be able to read after that.
Once you have done that, if you can see all the rest of the pictures on your phone, transfer them to the external microSD and do the same thing and back those picture up.
Once the backup is done (if you are able to), then you can start working on fixing your GS2. Even if you have to reflash the ROM then you will have the data backup.
Click to expand...
Click to collapse
Thanks. I actually tried just that before I posted. Took out the card, put it in a usb adapter and plugged it into the computer. Ran recuva, pulled everything out, and formatted it. Still nothing =/
Have you tried plugging the phone into the computer?
Sent from my GS4 running CM11 Kandy Kane
BeenAndroidized said:
Not sure what had happen to your device. But the best course of action is to pull out your external microSD card and connect it to your computer directly to see if you can see the contents in that card. If yes, download them to your computer and back them up. Then format your microSD card with the phone, the phone should be able to read after that.
Once you have done that, if you can see all the rest of the pictures on your phone, transfer them to the external microSD and do the same thing and back those picture up.
Once the backup is done (if you are able to), then you can start working on fixing your GS2. Even if you have to reflash the ROM then you will have the data backup.
Click to expand...
Click to collapse
122ninjas said:
Have you tried plugging the phone into the computer?
Sent from my GS4 running CM11 Kandy Kane
Click to expand...
Click to collapse
Yeah, when i plug it in and browse internal storage, only about 5 folders are showing up.
Bascotie said:
Yeah, when i plug it in and browse internal storage, only about 5 folders are showing up.
Click to expand...
Click to collapse
When was the last time you see everything before this happen? And what did you do prior of this happending?
BeenAndroidized said:
When was the last time you see everything before this happen? And what did you do prior of this happending?
Click to expand...
Click to collapse
Went on a trip overseas, saw the photos either before the plane ride home, or during.
Just had this happen to my gs3. Phone and sdcard in pc reader showed dcim and a couple other folders as empty that should not have been. When plugged into pc using mtp and/or usb by enabling/disabling usb debugging finally showed two sets of each folder. Seems like it couldnt read sdcard at some point so the apps created new folders when they shouldnt have. Copied dcim folder to my desktop but still cant read the files even though it shows them as large files like pics/videos would be.
Bascotie said:
Went on a trip overseas, saw the photos either before the plane ride home, or during.
Click to expand...
Click to collapse
Hmm, go into your setting and see if you can mount the microSD card.
BeenAndroidized said:
Hmm, go into your setting and see if you can mount the microSD card.
Click to expand...
Click to collapse
That part is grayed out, looks like its mounted already I see two different sets of storage
This happened to me too. I rebooted my phone for some reason and when it booted up all my pics/images were gone. All the folders were still there but were empty. I managed to get everything back by taking out the SD card and putting it in my computer then used Recuva. Strange that Recuva didn't help you.
Sent from my SGH-I777 using Tapatalk 2
bswann said:
This happened to me too. I rebooted my phone for some reason and when it booted up all my pics/images were gone. All the folders were still there but were empty. I managed to get everything back by taking out the SD card and putting it in my computer then used Recuva. Strange that Recuva didn't help you.
Sent from my SGH-I777 using Tapatalk 2
Click to expand...
Click to collapse
Well Recuva did find a bunch of pictures on the sd card but it turns out they weren't the ones I took overseas. A weird situation..
Bascotie said:
That part is grayed out, looks like its mounted already I see two different sets of storage
Click to expand...
Click to collapse
Unmount then mount it again.
Sent from my SAMSUNG-SGH-I777 using xda app-developers app
BeenAndroidized said:
Unmount then mount it again.
Sent from my SAMSUNG-SGH-I777 using xda app-developers app
Click to expand...
Click to collapse
I don't see an unmount option. Also when I did the recuva, I formatted the SD card so that part should be empty. I think the pics are somewhere on internal storage
We need a map. And Indiana Jones.
Phalanx7621 said:
We need a map. And Indiana Jones.
Click to expand...
Click to collapse
I was looking for some way to scan the phone's internal storage with recuva but Recuva doesn't see the phone as a 'drive' =/
Bascotie said:
I was looking for some way to scan the phone's internal storage with recuva but Recuva doesn't see the phone as a 'drive' =/
Click to expand...
Click to collapse
It should see it if it is set to mass storage but, if it is set to mtp then no it will not see it.
Sent from my SGH-I777 using Tapatalk 2

accessing the sdcard with mac

Has anyone found a work around on accessing the sd card when tethering with mac? I know I can pull the card out , but I would rather leave it in.
sgtarky said:
Has anyone found a work around on accessing the sd card when tethering with mac? I know I can pull the card out , but I would rather leave it in.
Click to expand...
Click to collapse
http://www.android.com/filetransfer/
nygfan760 said:
http://www.android.com/filetransfer/
Click to expand...
Click to collapse
thanks, I never had to use something like that with my motorolas. btw do you know how to turn off the builtin installer disk when you plug it in?
sgtarky said:
thanks, I never had to use something like that with my motorolas. btw do you know how to turn off the builtin installer disk when you plug it in?
Click to expand...
Click to collapse
Click skip, or if you are rooted delete the .iso in /system
sgtarky said:
thanks, I never had to use something like that with my motorolas. btw do you know how to turn off the builtin installer disk when you plug it in?
Click to expand...
Click to collapse
THIS!
It annoys me to no end.
I don't want to go deleting things in it or anything, but I really don't want it.
I deleted the iso, now no more annoying popup

Categories

Resources