republican-creole
site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·Forum FAQ ·Attitude Adjustment ·Linux docs ·DistroWatch ·OPLM
AuthorAll Replies


Maxo
Your tax dollars at work.
Premium,VIP
join:2002-11-04
Tallahassee, FL

reply to unibroker

Re: adb umount problems

said by unibroker:

adb devices
List of devices attached
2010720135452002 device


adb shell
root@android:/ #


adb shell
root@android:/ # umount /sdcard/
failed: Device or resource busy

Those commands, if it actually worked, would unmount the sdcard that is inside your phone, from the Android OS.
--
"Padre, nobody said war was fun now bowl!" - Sherman T Potter

»maxolasersquad.com/

»maxolasersquad.blogspot.com

»www.facebook.com/maxolasersquad

unibroker
Premium
join:2010-11-12
Altadena, CA

So when I type "exit" from adb shell that umounts at the same time? I don't mount manually so this would make sense.



Maxo
Your tax dollars at work.
Premium,VIP
join:2002-11-04
Tallahassee, FL

said by unibroker:

So when I type "exit" from adb shell that umounts at the same time?

The device never got mounted in the first place, so there is no need to unmount it.
Mounting allows the filesystem of a device to exist in the tree of the PC. Instead, with adb, we are creating a connection similar to SSH or even telnet.

unibroker
Premium
join:2010-11-12
Altadena, CA
Reviews:
·SONIC.NET
·AT&T DSL Service

reply to Maxo
After our discussion I tried to flash what I had pushed. It failed. I restored my prior ROM and noticed in Root Explorer that the file I had pushed which had originally said 150MB now said 0. Again, I read yesterday that this happens when not properly unmounting.

So I flashed the ROM that I had previously used and when I hooked up adb the device shows up in nautilus. I also get a notice on my device "USB Storage In Use. Before turning off USB Storage make sure that you have unmounted (ejected) your Android SD Card from your computer." Note that this ROM is Gingerbread whereas the other ROM is Jellybean. The outputs under this scenario from BASH are below (note the device is now B&N Nookcolor). In nautilus I then drag and drop my cm file from my computer to the device and select Safely Remove Drive.

lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 002 Device 002: ID 03f0:110c Hewlett-Packard
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 010: ID 2080:0002 Barnes & Noble NOOKcolor

adb devices
List of devices attached
2010720135452002 device

$ adb shell# cd sdcard
# ls -a
. ..
# umount /sdcard
umount: can't umount /sdcard: Invalid argument


Notice that the only contents of my "sdcard" are pointers to the existing directory and the parent. When I would push the file it would end up here but could not be found on the device's sdcard. To add to the comedy I've just successfully flashed the zip file!

Apparently Gingerbread operates as mass storage and Jellybean adb when the usb cable is attached between the device and pc. I need adb to work if I'm to do the tinkering I want.

Thanks for your time.



Maxo
Your tax dollars at work.
Premium,VIP
join:2002-11-04
Tallahassee, FL

I'm running CM10 on my Galaxy S3 and cannot get mass storage to work. Every time I select it it goes back to MTP but still doesn't show up in Nautilus. When using the device as a mass storage device it is trivial to move files to and from the sdcard using Nautilus.
I've used adb push and adb pull to move files back and forth with good success on Jellybean.


unibroker
Premium
join:2010-11-12
Altadena, CA
Reviews:
·SONIC.NET
·AT&T DSL Service

The file is my build so my thought is the problem is with my environment (not using an IDE). Oh well, I seem to learn more with the problems I create along the way. At least I finally found out what "foo" means. I see that in the literature and always mean to look it up.


Wednesday, 19-Jun 06:52:19 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics