1. Check out our companion app, Forums for Android! Download from Google Play

Rooted G1, unmount SD card question.

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

  1. N3TWORK BURN3R

    N3TWORK BURN3R Well-Known Member
    Thread Starter
    61

    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 Well-Known Member
    88

    Dec 2, 2008
    699
    49
    88
    Male
    Senior software developer
    Northamptonshire
    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
    663

    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 Well-Known Member
    88

    Dec 2, 2008
    699
    49
    88
    Male
    Senior software developer
    Northamptonshire
    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
    663

    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 Well-Known Member
    88

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

    $ FooBarAnyOldCommand

    you should get permission denied
     
  7. justjimjpc

    justjimjpc Premium Member
    663

    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 New Member
    5

    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 Well-Known Member
    Thread Starter
    61

    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
    36

    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 Well-Known Member
    213

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

Share This Page

Loading...