1. Download our Official Android App: Forums for Android!

Apps Rooted G1, unmount SD card question.

Discussion in 'Android Development' started by N3TWORK BURN3R, Mar 23, 2009.

  1. N3TWORK BURN3R

    N3TWORK BURN3R Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    61
    Posts:
    554
    Joined:
    Sep 24, 2008

    Sep 24, 2008
    554
    7
    61
    Graphic Design/Help Desk
    Long Beach, CA
    So i recently went rooted and now im wondering if there is a way to unmount the SD card once i have it mounted to my pc using the usb cable. Reason i ask is that i usually charge my phone thru usb and sometimes i move files in and out of the device, but want to test said files without having to remove the usb cable and plug it back in to unmount the SD card. Can anyone help?
     

    Advertisement

  2. Ageless Stranger

    Ageless Stranger Android Enthusiast
    Rank:
    None
    Points:
    88
    Posts:
    699
    Joined:
    Dec 2, 2008

    Dec 2, 2008
    699
    49
    88
    Male
    Senior software developer
    UK
    I haven't rooted yet (shhh you didn't hear that) so I am going to grasp at a straw here and ask if using umount from the command line works?

    umount /sdcard
     
  3. justjimjpc

    justjimjpc Premium Member
    Rank:
    None
    Points:
    663
    Posts:
    10,543
    Joined:
    Nov 3, 2008

    Nov 3, 2008
    10,543
    210
    663
    Washington DC, USA

    umount (sp) ? unmount might work ... On my phone (not-rooted) it fails because permission denied ...
     
  4. Ageless Stranger

    Ageless Stranger Android Enthusiast
    Rank:
    None
    Points:
    88
    Posts:
    699
    Joined:
    Dec 2, 2008

    Dec 2, 2008
    699
    49
    88
    Male
    Senior software developer
    UK
    umount is the linux command for unmounting a disk, it might have been renamed to unmount but I thought it was only Microsoft that deviated from standards.
     
  5. justjimjpc

    justjimjpc Premium Member
    Rank:
    None
    Points:
    663
    Posts:
    10,543
    Joined:
    Nov 3, 2008

    Nov 3, 2008
    10,543
    210
    663
    Washington DC, USA
    Not doubt you are right ...

    Using Terminal Emulator :

    $ umount yields: umount <path>
    $ unmount yields: unmount: permission denied
    $ umount /sdcard yields: failed.

    so maybe both command are useable in different situations ..?

    BTW: I think English has more exceptions to rules than it has rules without exception .. :)

    .
     
  6. Ageless Stranger

    Ageless Stranger Android Enthusiast
    Rank:
    None
    Points:
    88
    Posts:
    699
    Joined:
    Dec 2, 2008

    Dec 2, 2008
    699
    49
    88
    Male
    Senior software developer
    UK
    try typing :

    $ FooBarAnyOldCommand

    you should get permission denied
     
  7. justjimjpc

    justjimjpc Premium Member
    Rank:
    None
    Points:
    663
    Posts:
    10,543
    Joined:
    Nov 3, 2008

    Nov 3, 2008
    10,543
    210
    663
    Washington DC, USA
    Yep ... I see what you mean .... of course I am not a linux-head definately have lots to learn ... and at such and old age ... easier to wait for the wizards to do the work for me :)
     
  8. MrCRB

    MrCRB Lurker
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Mar 25, 2009

    Mar 25, 2009
    4
    0
    5
    Don't forget to switch user (su). That meaning:

    $ su
    # umount /sdcard

    Later you can mount the device again with:

    $ su [if not already switched to root]
    # mount /sdcard

    That's all :)
     
  9. N3TWORK BURN3R

    N3TWORK BURN3R Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    61
    Posts:
    554
    Joined:
    Sep 24, 2008

    Sep 24, 2008
    554
    7
    61
    Graphic Design/Help Desk
    Long Beach, CA
    I think i tried that, not too sure tho. Ill try it in a sec.


    Edit : Nope, didnt work.
     
  10. muzicman0

    muzicman0 Well-Known Member
    Rank:
    None
    Points:
    36
    Posts:
    104
    Joined:
    Dec 12, 2008

    Dec 12, 2008
    104
    6
    36
    Network Engineer - Disney
    Laguna Niguel, CA
    um...I think you are thinking backwards...haven't tried...but I would think that you would need to safely remove the device from xp/vista/linux/whatever OS you are using...then, if it doesn't auto mount, then use the mount command...
     
  11. sherri

    sherri Android Expert
    Rank:
     #130
    Points:
    213
    Posts:
    1,168
    Joined:
    Nov 2, 2009

    Nov 2, 2009
    1,168
    507
    213
    The one I posted does what OP wants...(not endorsing nor condoning....)
     

Share This Page

Loading...