2

I have pbm in creating a folder on sd card. this is how i did,

adb shell

mkdir /mnt/extSdCard/tmp
mkdir failed for /mnt/extSdCard/tmp, Permission denied

which gives me error like above,

any help regarding the same is appreciated.

I have also tried other command like mkdir /storage/extSdCard/tmp which gives me same error.

-Thanks, Manju

Blackbelt
  • 156,034
  • 29
  • 297
  • 305
Manju
  • 677
  • 5
  • 13
  • 27

2 Answers2

-1

Do you have an external sdcard?

do ls /mnt/extSdCard

you cannot create file in extSdCard it needs root permissions.
use /sdcard instead

blganesh101
  • 3,647
  • 1
  • 24
  • 44
  • external sd card is mounted and very much present on the device, below is the ls command from adb shell to display the contents of sdcard $ ls /storage/extSdCard DevIcon.fil DevLogo.fil LOST.DIR logger – Manju Jun 25 '13 at 12:50
  • oops i meant `ls -l`. wanted to check the permissions – blganesh101 Jun 25 '13 at 12:50
  • ls -l on external sd card below, lrwxrwxrwx root root 2013-06-25 14:22 extSdCard -> /storage/ext SdCard – Manju Jun 25 '13 at 12:52
  • the owner of the file is root. so you cannot be creating a new file in that. – blganesh101 Jun 25 '13 at 12:53
  • ok, but the permissions to others are rwxrwxrwx. so, i should be still able to create files/folders in it from adb shell right ? – Manju Jun 25 '13 at 13:14
  • Could you check if sdcard is working fine? And are you able to create files from a file manager? – blganesh101 Jun 25 '13 at 13:29
  • If it needs root permission how come I can copy on it using Windows Explorer? – Tomáš Zato Mar 17 '16 at 12:22
-1

Go to show view in eclipse and open "file explorer" , there you will find mnt/sdcard..and create folder under that.

Brinda K
  • 745
  • 3
  • 16
  • 34