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
page: 1 · 2
AuthorAll Replies


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

1 edit

reply to unibroker

Re: adb umount problems

Have you tried this:
sudo umount /dev/<device>
 

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

1 edit

It returns: sudo umount /dev/
umount: /dev: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))


Don't I have to use a more specific path because there are other 'dev' mounted (hard drive)? I added /sdcard to what you suggested but that just returned 'not found'.

I've done a 'lsusb' and it returned Bus 001 Device 004: ID 18d1:2d03 Google Inc among others but this is my device. Not sure how to use this info to unmount.



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

Sorry, the formatter took away my carrots.


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

According to Ubuntu 12.04 my device is not attached. Nautilus tells me it's not and the is sdcard and terminal tells that's not found. However, when I'm in adb shell it tells me the sdcard is busy. When I try to su mount sdcard it tells me I lack permission (umount is not recognized). The different scenarios in adb shell follow.

root@android:/ # su umount /sdcard/
Unknown id: umount
1|root@android:/ # su umount
Unknown id: umount
1|root@android:/ # su mount /sdcard/
sh: /sdcard/: Permission denied



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

Are you trying to unmount the sdcard in your Android phone from the Android OS?


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

I'm trying to unmount my device from my pc which is connected through adb. The push was to the sdcard in my device so I assume that is the connection I'm trying to properly break. Kind of strange that the device used to appear in nautilus and gparted for that matter under dev/sdg and dev/sdh but push never worked. To get around that I'd just drag the zip to the device in nautilus. Recently the device hasn't appeared in nautilus/gparted (does in terminal) but I am able to do a push as I see the file under Root Explorer of my device.

I have been dealing with this for the last week. I've thought about completely uninstalling the sdk and reinstalling it but that may be a time-consuming wasted effort. Thanks for the input by the way.



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

When you run adb shell, you are then at the shell on your phone. All commands you type are then executed by your phone. /sdcard/ on your phone represents the sdcard on your phone. You need to run commands on your PC to unmount devices from it.


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

All of the activities described have been done from the pc. The only one that hasn't has been the observation of a successful push in the Root Explorer of my device/phone.



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

reply to unibroker

said by unibroker:

root@android:/ # su umount /sdcard/
Unknown id: umount
1|root@android:/ # su umount
Unknown id: umount
1|root@android:/ # su mount /sdcard/
sh: /sdcard/: Permission denied

Every single one of those commands where executed on your phone, not your computer.
--
"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

1 edit

I stand corrected. I was at my pc. Now I'm getting a clearer picture of what's going on.

I'm still stuck as to why I can't umount from my phone's sdcard.



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

From the adb shell just type "exit" without the quotes to break the adb connection.
After that you should be able to cleanly unmount using Nautilus.



EUS
Kill cancer
Premium
join:2002-09-10
canada
Reviews:
·voip.ms

reply to unibroker

said by unibroker:

According to Ubuntu 12.04 my device is not attached. Nautilus tells me it's not and the is sdcard and terminal tells that's not found. However, when I'm in adb shell it tells me the sdcard is busy. When I try to su mount sdcard it tells me I lack permission (umount is not recognized). The different scenarios in adb shell follow.

root@android:/ # su umount /sdcard/
Unknown id: umount
1|root@android:/ # su umount
Unknown id: umount
1|root@android:/ # su mount /sdcard/
sh: /sdcard/: Permission denied

You're already root, and you're confusing the poor device by calling "su", hence the errors.
--
~ Project Hope ~

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

reply to Maxo
The device never shows up in Nautilus. Before it did and that was how I "Safely Removed Device". How can the device be listed in a bash terminal but not in Nautilus.

This thing is maddening. Before when I could see the device in Nautilus and would push to the sdcard, I could never find the file I pushed. Now when I can see the file I pushed the device has disappeared from nautilus so I can't safely unmount! Obviously this is user-error. Maybe that's why Apple makes a locked bootloader for customers like me.


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

reply to EUS
I initially started without su and with umount got that the device was busy.



EUS
Kill cancer
Premium
join:2002-09-10
canada
Reviews:
·voip.ms

How about starting over and posting the proper output from the proper device, so we can see what's happening, and give some good advice?
That was not meant to rhyme.
--
~ Project Hope ~



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

reply to unibroker

said by unibroker:

Maybe that's why Apple makes a locked bootloader for customers like me.

People like you are the best. Those who try, fail, learn, and then succeed are the best.


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

reply to EUS

said by EUS:

How about starting over and posting the proper output from the proper device, so we can see what's happening, and give some good advice?

Agreed. Restart from "adb shell" and then copy everything you do into this thread.

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

reply to EUS
This is the output from BASH of lsusb:

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 009: ID 18d1:2d03 Google Inc


The device is the last one. Presently the device doesn't show in nautilus.


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

reply to Maxo
okay


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

1 edit

adb devices
List of devices attached
2010720135452002 device


adb shell
root@android:/ #


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


I don't know why I am logged into the adb shell as root. I never login as root.


Friday, 24-May 10:38:16 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