1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

can't shell to sdcard

Discussion in 'Android Hacks and Help' started by dxMorgan, Aug 25, 2011.

  1. dxMorgan
    Offline

    dxMorgan New Member

    Joined:
    Aug 25, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi all.

    I've just gotten a new Droid X and I am trying to use ADB to gain access to the sdcard. when I shell into it and attempt to cd there I get:

    $ cd sdcard
    cd: can't cd to sdcard

    when I ls -l i get :

    d--------- system system 2011-08-25 11:12 sdcard-ext
    d--------- system system 2011-08-25 11:12 sdcard

    so I'm confident it's there. The sdcard shows up in the "SD Card & Phone Storage" area, and there is even another DroidX2 in the office here which works fine. I am running a corporate sync on this one which is not present on the other, but I don't see and haven't heard of that being an impediment to anyone else.

    Any help is much appreciated, thanks,
    Morgan
  2. travisn000
    Offline

    travisn000 New Member

    Joined:
    Aug 5, 2010
    Messages:
    132
    Likes Received:
    0
    Trophy Points:
    0
    "sdcard" is not a complete path... on all linux sysems the path to any directory always starts with "/"

    I'll install a terminal emulator on my DX and report back with better directions ASAP
    Last edited: Aug 25, 2011
  3. travisn000
    Offline

    travisn000 New Member

    Joined:
    Aug 5, 2010
    Messages:
    132
    Likes Received:
    0
    Trophy Points:
    0
    ..just checked; it looks like on my DX you should be able to access the sdcard from shell using either "cd /sdcard" or "cd /mnt/sdcard" (..without the quotes.. they both give the same results)
  4. dxMorgan
    Offline

    dxMorgan New Member

    Joined:
    Aug 25, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    $ cd /mnt/sdcard
    cd: can't cd to /mnt/sdcard

    Sorry, no go! I'm doing a lot of testing and I've done these commands on dozens of devices. cd mnt works fine cd /mnt works fine. but all other directories give the same error.

    $ cd config
    cd: can't cd to config
    $ cd /config
    cd: can't cd to /config
    $ cd root
    cd: can't cd to root
    $ cd dev
    $ cd data
    cd: can't cd to data
    $ cd proc
    cd: can't cd to proc
    $ cd sbin
    cd: can't cd to sbin

    Thanks for your reply.

  5. dxMorgan
    Offline

    dxMorgan New Member

    Joined:
    Aug 25, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    [solved]

    so thanks to all who looked into this.

    Settings->Applications->Developement->USB Debugging puts the phone into "connect as USB Mass Storage Device" by default. Change it to "Charge Only" if you want access to sdcard, etc.

    Happy coding, all.
  6. travisn000
    Offline

    travisn000 New Member

    Joined:
    Aug 5, 2010
    Messages:
    132
    Likes Received:
    0
    Trophy Points:
    0
Search tags for this page
/mnt/sdcard
,
adb can't get to shell
,
adb cd/sdcard not a directory
,
adb error can't cd to
,
adb shell can't cd sdcard
,
adb shell cant cd
,
adb shell cant read sd
,

can't cd to sdcard

,
cannot access sdcard adb
,
cant cd to /mnt
,
cd sdcard
,
cd:can't cd to adb
,
how to change directory to sd card
,
terimal emulator android cant cd sd card
,
terminal android cannot cd