[Q] Dual mount SD card - Android Q&A, Help & Troubleshooting

Hi users and devs of XDA
i got a question there is an widget that dual mount you SD card to the computer and to the computer
my question is there a script that does this
any mod we can add to vold file or ramdisk
so we dont need the widget but when you plug in your phone and you'll touch the mount button it mount on your pc but you can get to sd on phone too (or even auto mount to pc)
thanks
Owain94

owain94 said:
Hi users and devs of XDA
i got a question there is an widget that dual mount you SD card to the computer and to the computer
my question is there a script that does this
any mod we can add to vold file or ramdisk
so we dont need the widget but when you plug in your phone and you'll touch the mount button it mount on your pc but you can get to sd on phone too (or even auto mount to pc)
thanks
Owain94
Click to expand...
Click to collapse
am a noob.. but I know of this program https://play.google.com/store/apps/d...rd.widget.free maybe it might help. thanku.
EDIT : OMG.. I just saw the POST DATe now.. its sooo old.. lolz.. I came here thru google.. if someone else does. that's the link for Multi Mount.

Related

[Q] Hyperdroid 5.2.21 cant access internal sdCard

Hey ppl..
I just flashed Hyperdroid v5.5.21 on my GT-I9100 and it really worked like a charm until i flashed docs mated black surgeon over it and restarted it once.. now i cant access my internal sdcard, when i connect it to a pc with a usb cable, it does not mount anything and i also do not have any access to any of my data with my files browser.
Now everytime i flash the surgeon over the system, i do have full access on my files but as soon as i do restart my phone (regardless of which kind of restart i choose, meaningly recovery download or normal) i loose access to them.
CWM 5.0.2 also cant mount the sdcard or usb storage and comes up with a failure message about cant mount /sdcard and something about.. Unable to open ums lunfile (No such file or directory)when trying to mount the usb storage but i do not think that it is directly related to the rom..
please help me, because i really want to use that rom cus it kicks ass but if that issue continues, i will have to go back to lightening or something like it.
Ive asked the same question over at the androidmeda forum. Pongster said that the file 01efs in /system/etc/init.d should be removed. It worked! So if anyone else gets this fail.. Just remove that file.
Sent from my GT-I9100 using XDA App

[Q] Sync mount for usb connection

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.

Cannot "see" storage

Ok...weird problem all of a sudden. Plug in USB, select Media Sync, and it shows only Evo and below that subdirectory Phone, but no folders or files...?? Loaded in roms previously plus other stuff. Ideas anyone?
jelive said:
Ok...weird problem all of a sudden. Plug in USB, select Media Sync, and it shows only Evo and below that subdirectory Phone, but no folders or files...?? Loaded in roms previously plus other stuff. Ideas anyone?
Click to expand...
Click to collapse
yesturday i had almost same problem.. i put a few roms and other files on my sdcard and when u pluged my lte into my usb desktop nothing was showing up!!!??? i had to go into recovery under mount and check mount sdcard and mount internel storege.. went back on and its was fixed
evo401 said:
yesturday i had almost same problem.. i put a few roms and other files on my sdcard and when u pluged my lte into my usb desktop nothing was showing up!!!??? i had to go into recovery under mount and check mount sdcard and mount internel storege.. went back on and its was fixed
Click to expand...
Click to collapse
You were spot on...I had kinda pushed that fix to back of my brain. After all unmounting on its own Hope this is not something dorked up and just one time deal.
To show as mount as disk drive.media sync is for internal storage
par05is said:
To show as mount as disk drive.media sync is for internal storage
Click to expand...
Click to collapse
Don't have mount as disk drive as option...like evo 4g. Something I'm missing as media sync shows the whole 9GB, etc. Wonder if driver version affects that...I'm using latest...maybe older one ? Can see sd and sd2 in root explorer just fine.

[Q] USB Mount Storage on ICS Lisbon?

Hello XDA!
I know that there is a USB Mount tool in this rom, and ive tried it, but whenever i press "Turn on USB Storage", it loads for like 30 seconds until the button reappears, not mounting to the computer with either internal or external. I do have adb and fastboot access, and Wndows 7 64 bit sees it as an android phone, just not able to mount files. does anyone know how to mount to computer, because the tool in this rom just doesnt seem to work for me. I do have an sd adapter and can remove the card and have the computer see my sd card that way, but that is more of a pain and wish to have a solution. Dropbox is somewhat a pain too since i only have 2 gb....... Thanks!

[Q] how to imitate double mount sd card via adb ?

Hi,
I want to mount my sdcard to the PC and to the phone in one time, but i want to do it by the adb shell script.
Dual mount SD and similiar apps works well, but i think that script+tasker will make it better.
And there is my question, what ADB commands i must type to do that ?
what i must mount to what ?
i tried mounting /dev/block/mmnclk0p1 to some places and /dev/block/vold/179:1 but it dont work
I think that think might be usefull, because we can add this script to init.d and always have access to our SD cards from pc, when we plug in the phone.
Im on P.A.C. 4.3 Neo V ( haida) based on cm 10.2
Sorry for my bad english, still learning...

Categories

Resources