DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 6 of 6

Thread: can't shell to sdcard

  1. Droid Newbie
    dxMorgan's Avatar
    Member #
    219184
    Join Date
    Aug 2011
    Posts
    3
    Phone
    Enter Current Phone Model Here
    #1

    can't shell to sdcard

    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. Senior Droid
    travisn000's Avatar
    Member #
    99599
    Join Date
    Aug 2010
    Posts
    132
    Phone
    Droid X
    #2
    "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 by travisn000; 08-25-2011 at 01:51 PM.
  3. Senior Droid
    travisn000's Avatar
    Member #
    99599
    Join Date
    Aug 2010
    Posts
    132
    Phone
    Droid X
    #3
    ..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. Droid Newbie
    dxMorgan's Avatar
    Member #
    219184
    Join Date
    Aug 2011
    Posts
    3
    Phone
    Enter Current Phone Model Here
    #4
    $ 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.

    Quote Originally Posted by travisn000 View Post
    ..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)
  5. Droid Newbie
    dxMorgan's Avatar
    Member #
    219184
    Join Date
    Aug 2011
    Posts
    3
    Phone
    Enter Current Phone Model Here
    #5

    [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. Senior Droid
    travisn000's Avatar
    Member #
    99599
    Join Date
    Aug 2010
    Posts
    132
    Phone
    Droid X
    #6
    [QUOTE=dxMorgan;1703832]
    cd mnt works fine cd /mnt works fine. but all other directories give the same error.
    [QUOTE]

    Glad to hear you figured it out!

    ..Just to clarify for anyone that my read my previous post regarding the correct format of a path...

    If you are entering a path that is relative to the directory your shell is currently navigated to you don't need to use the initial "/" symbol in the directory path, so if you where in the base directory ("/") you can use the command "cd mnt" and it will work just fine...

    However, if you had previously navigated into another directory using the cd command and wanted to navigate directly to a second directory that was not a subdirectory of your current directory, you would have to use the full path beginning with "\"

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Internal Memory (SDcard?) VS. External SDcard
    By bradleonard in forum Droid X2 Tech Support
    Replies: 0
    Last Post: 07-27-2011, 11:48 PM
  2. Difference between /mnt/sdcard and /sdcard?
    By mountaineerndixie in forum Motorola Droid
    Replies: 2
    Last Post: 07-27-2011, 01:59 AM
  3. APB Shell 3D
    By PARick in forum Droid X General Discussions
    Replies: 0
    Last Post: 06-14-2011, 11:46 AM
  4. Replies: 8
    Last Post: 01-22-2010, 12:39 AM

Search tags for this page

adb can't cd to sdcard

,
adb shell cant cd
,
android can't cd to sdcard
,
can't cd to ./data
,
can't cd to /sdcard
,
can't cd to sd card
,

can't cd to sdcard

,

cant cd to sdcard

,
cd can't cd to sdcard
,
cd: can't cd to sdcard
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+