playing movies from ntfs usb drives? - G Tablet Q&A, Help & Troubleshooting

I am using tnt lite 4.3.2 and have tried a couple of custom kernels and have been unable to view what is on the harddrive. Fat32 works fine does someone know what I am doing wrong?

Have you read this thread? Maybe it will help.
http://forum.xda-developers.com/showpost.php?p=10154595&postcount=27

Thanks for the reply. Now for a real noob question where do I add those lines? In other words where would I find the terminal file?

I think "terminal emulator" comes pre-loaded in the rom and should be in your apps drawer.

Thanks I was missing that I will download it and try it,

Is the drive powered? The Gtab USB runs around 5v, definitely not enough to power a hard drive.

I have been trying a thumbdrive and a wall powered external. I have not been able to get either to work. I just installed TNT Lite 4.4.0 and went into terminal emulator and typed
mount -o umask=000 -t ntfs /dev/block/sda1 /mnt/usbdisk
It then showed some options like -o -t etc. I then tried to look at the usbdisk in Ifilemanger but it just showed up as blank.
I then tried terminal emulator again and it didn't like the mount command or unmount command.
Thanks

Thanks I got it to work. Now my other question is there anyway to make it permanent so you don't have to enter that info in terminal emulator everytime?
Thanks again

Related

[Q] bricked and can't access internal sd storage

Joining the ranks of the "what was he thinking" Had TNT4.0 lite running fine. tried to upgrade to: GtabComb_b3.1_bl1.2 hung on 3 birds. A post said "go to cwm and partition the internal sd" ...fool that I am, I did. So now it hangs on booting and there's no update.zip on the internal sd to use to restore 'cause it all got wiped by the partition. Soooo managed to get the drivers (including NVIDIA boot recovery) so that NVIDIA Harmony shows as a device on my win7 notebook, but NVIDIA's "d:" drive, while listed, is grayed out and not available.
Back to CWM tried formatting and partitioning (ignorantly screwed with the sector and swap sizes) the internal SD card, mounting and unmounting (never shows and storage space, just mount/unmount) with no access from my pc to get some recovery files on it. HELP PLEASE-
1.suggestions to get access to the internal sd card and what files to put there
2.possible to get cwm 2.5.1.1 to see either the external sd or usb as location for update.zip file
3. proper settings for the internal sd card (sector size,swap size)
4 place to get my head examined
sesteinberg said:
Had TNT4.0 lite running fine. tried to upgrade to: GtabComb_b3.1_bl1.2 hung on 3 birds.
Click to expand...
Click to collapse
So you were on a 1.1 bootloader and you decided to jump to a 1.2 bootloader-based ROM (when that ROM has a perfectly good 1.1 bootloader-based version)?
First things first: Are you able to boot into ClockworkMod?
If yes, then you can copy any files you want to either sdcard, internal or external, using adb.
To copy files to the internal SD card:
Code:
C:\some\path\platform-tools> adb shell mount /dev/block/mmcblk3p1 /sdcard
C:\some\path\platform-tools> adb push c:\some\path\file.zip /sdcard/xyz.zip
C:\some\path\platform-tools> adb shell umount /sdcard
To copy files to the external SD card:
Code:
C:\some\path\platform-tools> adb shell mount [B]/dev/block/mmcblk2p1[/B] /sdcard
C:\some\path\platform-tools> adb push c:\some\path\file.zip /sdcard/xyz.zip
C:\some\path\platform-tools> adb shell umount /sdcard
If the "adb shell mount /sdcard" at the beginning complains about /sdcard already being mounted, just unmount the sdcard as shown in the last step, then start over again.
If you have inadvertently loaded a 1.2 bootloader, downgrade to 1.1 by following the steps given here.
After this, remove any external SD cards you may have so that there is no confusion when you format the SD card, then:
1. Reflash clockworkmod if needed, then boot into CWM.
2. Repartition internal SD card again with 2048 MB for /data and 0 for swap (no swap) and the rest for /sdcard.
3. Do a "wipe data/factory reset".
4. Use adb push to copy the GtabComb_b3.1_bl1.1.zip file onto the internal SD card using the commands above.
5. Install this zip file using CWM.
thank you very much for your help- i'm not experienced enough to know how to run adb...see below and thanks again
So you were on a 1.1 bootloader and you decided to jump to a 1.2 bootloader-based ROM (when that ROM has a perfectly good 1.1 bootloader-based version)? ***yes- saw a post that said that if the opening screen showed the slide lock, that bootloader was 1.2...go figure****
First things first: Are you able to boot into ClockworkMod? *yes**
If yes, then you can copy any files you want to either sdcard, internal or external, using adb. **can you help me understand how to do this- downloaded the java sdk; and the android sdk, but haven't been able to find out how to use them to move the files to the internal sd card....haven't figured out how to use adb***
To copy files to the internal SD card: ***I'm sorry, i don't understand the steps to do this...been looking on line so as not to bug you****
Code:
C:\some\path\platform-tools> adb shell mount /dev/block/mmcblk3p1 /sdcard
C:\some\path\platform-tools> adb push c:\some\path\file.zip /sdcard/xyz.zip
C:\some\path\platform-tools> adb shell umount /sdcard
To copy files to the external SD card:
Code:
C:\some\path\platform-tools> adb shell mount /dev/block/mmcblk2p1 /sdcard
C:\some\path\platform-tools> adb push c:\some\path\file.zip /sdcard/xyz.zip
C:\some\path\platform-tools> adb shell umount /sdcard
If the "adb shell mount /sdcard" at the beginning complains about /sdcard already being mounted, just unmount the sdcard as shown in the last step, then start over again.
If you have inadvertently loaded a 1.2 bootloader, downgrade to 1.1 by following the steps given here. ***how would I know this?***
After this, remove any external SD cards you may have so that there is no confusion when you format the SD card, then:
1. Reflash clockworkmod if needed, then boot into CWM.
2. Repartition internal SD card again with 2048 MB for /data and 0 for swap (no swap) and the rest for /sdcard. **done***
3. Do a "wipe data/factory reset". **done***
4. Use adb push to copy the GtabComb_b3.1_bl1.1.zip file onto the internal SD card using the commands above. **same problem as above**
5. Install this zip file using CWM.
sesteinberg said:
***yes- saw a post that said that if the opening screen showed the slide lock, that bootloader was 1.2...go figure****
Click to expand...
Click to collapse
OK, this is very important. In your first post, you said you, "Had TNT4.0 lite running fine." TnT Lite 4.0 is a 1.1-based custom firmware. Which is why I thought you were on a 1.1 based firmware. Are you in fact running ViewSonic's new stock firmware with the TapNTap UI?
***how would I know this?***
Click to expand...
Click to collapse
Read this thread. As the first post there says:
So, to check which branch you are on if you are on STOCK: Go to Settings -- About Tablet -- Tapu UI Version. If your firmware starts with "1.1", then you are on the 1.1 (old) branch. If your firmware starts with "1.2", then you are on the 1.2 (new) branch. Also an obvious difference between the two is that the 1.2 branch adds a lockscreen to the tablet.
Click to expand...
Click to collapse
TnT Lite is very close to stock, so you can, I think, still go to Settings > About Tablet > TapUI Version and check the firmware version which indicates the bootloader being used.
If, however, you find out that you do, in fact, have a 1.2 bootloader, then just flash the file you originally used: GtabComb_b3.1_bl1.2.zip. By reformatting the internal SD card and doing a factory reset, you've done all that's needed to prepare for a new ROM install.
**can you help me understand how to do this- downloaded the java sdk; and the android sdk, but haven't been able to find out how to use them to move the files to the internal sd card....haven't figured out how to use adb***
Click to expand...
Click to collapse
To set up adb on Windows, see this thread.
For quick one-shot use, follow the instructions here, and just replace the "adb" in the commands I gave with "sudo ./adb".
***Bought the tablet early this year, rooted it and installed a new rom tnt lite v 4.1.1 or 4.2.1 (i'm travelling and don't have the download--not viewsonic stock); I looked at the settings before this fiasco and did not see a 1.1 or 1.2 (because it was not longer stock?)- that's why I relied on the opening screen with the slide lock to (falsely?) conclude it was 1.2.
***on start-up the tablet loops at 3 birds--so I can no longer get to g-tab settings; I can reliably get to ClockworkMod Recovery v2.5.1.1-bekit-0.8- I did use it to "reset" the internal sd by partitioning it and using 2048mb and 0 for swap-no messages to suggest the internal sd was faulty**
***when I first flashed GtabComb_b3.1_bl1.2- it hung at 3 birds but I was able to revert to the tnt 4xxx by using CWM to select it on the internal SD card; when I flashed GtabComb_b3.1_bl1.2 the second time it hung again I found a posting on line that suggested re-partitioning the internal SD card which of course did not resolve the problem and took away my CWM restore possibilities***
***i've just finished downloading Knoppix with the hope of using it to run Adb to get access to the internal SD card---I do have NVIDIA Harmony as a "device" in win7-but the "d:" drive on it is grayed out and not browsable ***
this help you help me?
thanks again
sesteinberg said:
***Bought the tablet early this year, rooted it and installed a new rom tnt lite v 4.1.1 or 4.2.1 (i'm travelling and don't have the download--not viewsonic stock);
...
I can reliably get to ClockworkMod Recovery v2.5.1.1-bekit-0.8
Click to expand...
Click to collapse
The fact that you remember installing TnT Lite 4.x and also have CWM v2.5.1.1-bekit-0.8 working strongly suggests to me that your bootloader is 1.1.
I do have NVIDIA Harmony as a "device" in win7-but the "d:" drive on it is grayed out and not browsable ***
Click to expand...
Click to collapse
It might not show up as a USB disk, but, you should still be able to use adb on Windows. I'm not a Windows user--don't even have it on my PC--but, try this:
In CWM, select "mounts and storage", then "mount USB storage". See if the external SD card shows up as a drive on Windows.
EDIT:
If you don't have an external SD card, you can make the internal SD card's VFAT partition appear as a drive on Windows/Linux by using these adb commands:
1. Create a new file called fstab.txt with these contents:
Code:
/dev/block/mtdblock4 /cache yaffs2 rw
/dev/block/mmcblk3p2 /data ext3 rw
/dev/block/mtdblock3 /system yaffs2 rw
/dev/block/mmcblk3p1 /sdcard vfat rw
/dev/block/mmcblk2p2 /sd-ext auto rw
2. Copy this fstab.txt onto the gTablet using adb:
Code:
C:\> adb push C:\some\path\fstab.txt [B]/etc/fstab[/B]
3. On gTablet, create a symbolic link (it's like a shortcut) from /dev/block/mmcblk3p1 to /dev/block/mmcblk2p1, which is what CWM is trying to mount:
Code:
C:\> adb shell ln -sf /dev/block/mmcblk3p1 /dev/block/mmcblk2p1
4. Back in the CWM main menu, select "mounts and storage", then "mount USB storage".
I am having a similar issue with my G Tablet.
After farting around with it the other day I lost track of what I was doing and now at start up it just sits with the three birds image and does nothing.
When I try to boot into recovery I get:
"Detect a recovery key pressed"
followed by
"Booting recovery kernel image"
Then it just sits there.
So I searched all over for solutions and found the nvflash threads. I downloaded all the files needed but my PC's just won't detect the tablet and therefore I can't install the drivers for it.
I have two Win 7 machines, on 32 and on 64 . Both do the same.
What should I be doing next ? Any ideas ?
tried the various mounting options- internal sd mounts but makes no difference in terms of being visible on my PC; external sd (with memory card inserted) gives an error message; usb storage mount- no apparent effect
burning knopp disk now- and will try to get adb to allow commuication with tab...any tricks?
Frogbone said:
I downloaded all the files needed but my PC's just won't detect the tablet and therefore I can't install the drivers for it.
Click to expand...
Click to collapse
Is the USB cable OK?
What should I be doing next ? Any ideas?
Click to expand...
Click to collapse
Google "Viewsonic GTablet For Dummies" and follow the Code RED instructions there.
sesteinberg said:
tried the various mounting options- internal sd mounts but makes no difference in terms of being visible on my PC;
Click to expand...
Click to collapse
Did you try the adb push ... method? That should've worked without mounting anything.
external sd (with memory card inserted) gives an error message; usb storage mount- no apparent effect
Click to expand...
Click to collapse
That's no good. Need exact steps/commands tried and exact error messages returned.
burning knopp disk now- and will try to get adb to allow commuication with tab...any tricks?
Click to expand...
Click to collapse
If all else fails, Google "Viewsonic GTablet For Dummies" and follow the Code RED instructions on that site.
rajeevvp said:
Google "Viewsonic GTablet For Dummies" and follow the Code RED instructions there.
Click to expand...
Click to collapse
This ^^^^
I must have missed the Power plus Volume- to get to APX mode in all of the other procedures I read.
Thanks for pointing out this great site !!
Frogbone said:
Thanks for pointing out this great site !!
Click to expand...
Click to collapse
It is the distilled wisdom of the xda-developers gTablet forum in one place.
Consider making a donation to keep that site up.
Back home and at this again- went to "Dummies" "code red"
downloaded the USB driver (had done this previously through SDK tools) and while I don't get any error messages when connecting the g-tablet; Device manager shows only a "Android Debug Bridge Interface" working ok and drive up to date. below is from the code red instructions:
Using your PC, download the driver for USB connector here (clicky). Alternate source driver for USB connector. ***done***
Unzip the SystemUSB.zip file and place the folder "Flash USB driver" somewhere easy for you to find. I suggest your desktop. ***done***
Turn on your gtab by pressing the power button and volume less (-) button simultaneously and hold. Your screen will turn on with the 3 viewsonic birds and then it will turn black. Looks like it is off, but I promise you it is on in APX mode. ***As I mentioned before, I have CWM which reliably starts on holding the power button and the volume (-) button- I was able to get to a state (using the "menu" key) where the device is clearly on- black screen, but backlighting obvious.... is this APX mode?***
Do not click here.
Connect your gtab to your computer via usb. Your computer will say driver install unsucessful. ****doesn't happen...did before I installed the USB driver from the SDK****
Right click on Computer icon --> Properties --> Device Manager (left side) --> right click APX and choose upgrade driver. ***I see the Android Debug Bridge (working properly) but no APX; updated this driver with the USB driver recommended in code red- shows up to date, but still no APX reference*** Navigate to where you put the USB driver folder and select the folder. Your computer should now recognize the gtab in APX mode. ***I have no idea if this has occurred. In device manager it is listed as a "Portable device" drive d...but drive d isn't accessible....any way to confirm that the gtablet is in APX mode and that I've got the correct driver on my PC---again, no error on initial connection.
I downloaded NVFLash with CWM for 1.1 (the boot loader it seems most likely I had)- unzipped and ran it under the conditions above....ran nvflash_gtablet.bat (with CWM) --I get: "NVflash started" then "unknown device found" then "press enter to continue:" pressing "enter" closes the dos window but no activity on the pc and none on the tablet. If I run NVflash at the three birds screen on the tablet I get NVflash started and then "USB device not found" which I guess makes sense. Do I have the wrong USB driver on my PC? Am I not getting into APX mode on the tablet? Are the instruction different when Cwm is already installed -- should I have used the NVflash without CWM? thanks as ever.
The gTablet has 3 distinct modes of operation:
1. The normal mode.
Press the power button when the tablet is switched off and this is where you land. In this mode the gTab bootloader loads the linux kernel (which the firmware supplies) and this then runs the firmware you installed. This mode is where you will spend most of your time.
2. Recovery mode.
You enter this mode by first pressing the Volume [+] key, then while this key is pressed, pushing the power button. Keep the Volume [+] key depressed until you see a "Detect a recovery key pressed/Booting recovery kernel image" message.
Recovery mode will take you either into the stock recovery or into ClockworkMod recovery. This mode exists so that you can a) fix problems with your firmware, or b) install things like the firmware itself using a safe kernel, a mini-filesystem image and the CWM Recovery program.
3. APX mode.
You enter this mode by first pressing the Volume [-] key, then while this key is pressed, pushing the power button. Keep the Volume [-] key depressed until you see the blank screen right after the 3 birds boot logo has flashed by.
This is a very low-level mode which lets you recover from a "soft-brick". You should get into this mode only if CWM Recovery can't be used to fix your problems (and 90% of problems can be fixed within CWM with a bit of thinking).
In Linux you can tell which mode you're in by issuing a lsusb command:
Here's the gTab in APX mode (Volume [-] and Power):
Code:
$ [B]lsusb[/B]
Bus 002 Device 011: ID 0955:[B]7820[/B] NVidia Corp.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 001 Device 003: ID 0d49:7410 Maxtor Mobile Hard Disk Drive (1TB)
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Here's the other mode (both regular and recovery modes report the same device ID):
Code:
$ [B]lsusb[/B]
Bus 002 Device 013: ID 0955:[B]7100[/B] NVidia Corp.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 001 Device 003: ID 0d49:7410 Maxtor Mobile Hard Disk Drive (1TB)
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
From your last message it looks like you're going into Recovery mode rather than APX mode. I don't want to state the obvious here, but... look at the top of the tablet and see which key is the Volume [-] key and which is Volume [+]; then press the correct key. Many other users have made this same mistake.
BTW, did you try pushing the files you need to use (the 1.2 to 1.1 bootloader downgrade zip file and the GtabComb ROM install zip file) using adb on Linux, then installing the files after the push?
sesteinberg,
If you can get your G Tablet in APX Mode and connectect to your PC, then the steps I went through to restore a G Tablet may help you.
Guide - Restore G Tablet after a failed Recovery Mode update
djab67
THANK YOU - your description of the two modes was key- with vol- plus power the tablet showed up in windows device manager as USB recovery mode (rather than APX) BUT, in this mode the tablet was recognized by NVFlash and restored. THANK you again for your time and patience.
I am currently showing: Android 0s version 2.2 Tap UI version 1.1-3588 Kernal 2.6.32.9-00000-10.8.2-dirty [email protected] #16
Could you recommend a Rom? Will I need to root it before installing? (yes I recognize this as bootloader 1.1) worth going to android 3.0?
appreciate your expertise
Glad we could help you.
You wanted to try out GtabComb before. Beta 3.3 came out yesterday and it works pretty well--all considering. Try it out. Make sure you get the 1.1 bootloader version.
Copy the file onto the SD card, boot into CWM (Volume + and Power), then do a "wipe data / factory reset" from the menu first, and finally, install the GtabComb zip file. Note that it will take some time for the first boot--about 5 - 7 minutes--so don't panic if nothing seems to happen.
rajeevvp said:
Glad we could help you.
You wanted to try out GtabComb before. Beta 3.3 came out yesterday and it works pretty well--all considering. Try it out. Make sure you get the 1.1 bootloader version.
Copy the file onto the SD card, boot into CWM (Volume + and Power), then do a "wipe data / factory reset" from the menu first, and finally, install the GtabComb zip file. Note that it will take some time for the first boot--about 5 - 7 minutes--so don't panic if nothing seems to happen.
Click to expand...
Click to collapse
thx- does this support Flash 10.3 for Youtube and other flash video?
thank you again..
sesteinberg said:
thx- does this support Flash 10.3 for Youtube and other flash video?
Click to expand...
Click to collapse
The Flash version installed in 10.3 and flash does work. YouTube works for sure; don't know about other video sharing sites.

[Q] Comprehensive NTFS Mounting Guide?

Can anyone please help with mounting an NTFS formatted flashdrive or USB harddrive on Galaxy Tab 10.1 HC 3.2 pershoot kernel??
I'm pretty sure there are people out there who copied ntfs.ko to /data/local/modules/ and then performed chmod 644 and insmod instructions. Only to find out that the NTFS device is NOT displayed under /dev/block/ and there's nothing to do about it.
What are we doing wrong? Why is it super easy for some to mount NTFS partitions and for some of us it's a complete pain in the rear end?
Please help with a comprehensive guide!
Don't just post a couple of lines assuming that we find our way out.
Treat us as newbies to mounting.
Thanks!
komorka said:
Can anyone please help with mounting an NTFS formatted flashdrive or USB harddrive on Galaxy Tab 10.1 HC 3.2 pershoot kernel??
Click to expand...
Click to collapse
Download Terminal Emulator and USB Mass Storage Watcher OTG from the market.
Run TE and enter the commands I've outlined in the attached image. When you type "su" at the "$" you should get the super user permissions pop-up. If you see "ntfs xxxxxxxxx Live" as a response to the lsmod, you are good to go.
Use the USB Mass Storage app to mount your drive. I'll be honest, I haven't used this app yet. I used something called NTFS Mount, but after I updated to the last round of Galaxy Task, I forgot to back it up. Doh...
I hope this is helpful.
Edit: I did a search of XDA and found the app I used here: http://forum.xda-developers.com/showpost.php?p=13337600. Give this one a try too.
RGardner said:
Download Terminal Emulator and USB Mass Storage Watcher OTG from the market.
Run TE and enter the commands I've outlined in the attached image. When you type "su" at the "$" you should get the super user permissions pop-up. If you see "ntfs xxxxxxxxx Live" as a response to the lsmod, you are good to go.
Use the USB Mass Storage app to mount your drive. I'll be honest, I haven't used this app yet. I used something called NTFS Mount, but after I updated to the last round of Galaxy Task, I forgot to back it up. Doh...
I hope this is helpful.
Edit: I did a search of XDA and found the app I used here: http://forum.xda-developers.com/showpost.php?p=13337600. Give this one a try too.
Click to expand...
Click to collapse
Thanks, RGardner, USB Mass Storage Watcher OTG did the trick! Thanks so much!
thanks,
that did the trick for me too.... for a 8gb usb flash.
but, when i try to connect a 300gb western digital portable hard drive, it gives me a message << high speed usb flash connected>> and it cannot be mounted...
it might be that it is over 32 gb?
it might be that it needs more power than the cable can provide?
any suggestions?
nikosnt74 said:
thanks,
that did the trick for me too.... for a 8gb usb flash.
but, when i try to connect a 300gb western digital portable hard drive, it gives me a message << high speed usb flash connected>> and it cannot be mounted...
it might be that it is over 32 gb?
it might be that it needs more power than the cable can provide?
any suggestions?
Click to expand...
Click to collapse
busybox modprobe ntfs
busybox mount -t ntfs /dev/block/sda /mnt/usbdrive
1133431 said:
busybox modprobe ntfs
busybox mount -t ntfs /dev/block/sda /mnt/usbdrive
Click to expand...
Click to collapse
Thanks for the quick answer. I quess these are comands for a terminal emulator?
nikosnt74 said:
Thanks for the quick answer. I quess these are comands for a terminal emulator?
Click to expand...
Click to collapse
Or ADB Shell.
1133431 said:
Or ADB Shell.
Click to expand...
Click to collapse
Well, i installed busybox sucessfully, then terminal emulator is saying...
what am i doing wrong??

[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.

[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...

Mount USB and SDcard drives

I have a lenovo A10 Tab 2 upgraded to MM. I have su installed.
When I plug in an external usb drive, programs like vlc cannot find it as they do not seem to have access to /mnt or simply do not bother looking in it. I have a USB with music that I Would like to create playlists for and do other things(since I have multiple USB drives with various uses).
What I'd like to is is be able to create a permanent mount to the usb port to a useful place that I can easily access as well as other programs. I'd like to do this for the sdcard too.
One thing I hate is these "random" hex string representing the devices. I never know what is what.
I have tried to use mount -t /mnt/1DVE-4323 /drives/USBDrive
and get operation not permitted
I've tried to go in to /dev/block/vold/public:8,1 and mount that but same issue or other issues.
I've tried creating a symlink using ln -s but same issues.
executing mount by itself lists quite a bit of stuff and it does show the mount point to the 1DVE-4323 which I guess android creates internally when the usb drive is inserted but I can't mount that put.
I'm using terminal emulator and call su from the start.
All I want is to be able to access these damn devices in a convenient way but it's damn near impossible It really shouldn't be that difficult(in fact, I shouldn't have to go to the terminal). While I can use explorers to explore the disk I tend to have to bookmark things because stuff is just not organized in a natural way. (either hex values for drive names or things like emulated or usbtg, etc... most of which tend to be empty and I never remember what is what).
What would be awesome is if I had 3 directories like
/root which took me to the system root
/usbdrive which took me to the usb drive
/sdcard which too me to the sd card
and that these could easily be found by every other program.
or possibly
/drives/root
/drives/sd_internal
/drives/usb
/drives/sd_external
Any ideas how to achieve nirvana?

Categories

Resources