Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Mobile
User Name
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site:


  Search this Thread
Old 12-04-2012, 04:46 PM   #1
LQ Newbie
Registered: Nov 2012
Posts: 24

Rep: Reputation: Disabled
android adb push to external sdcard fails

hello all,

I installed android SDK to check it out. So far, so good.

I am using adb to pull and push files. So far I can:
  1. push and pull files to the internal sdcard storage.
  2. pull files from from the external card
But I cannot push files to the external card.
I get permission denied error.

Here are the mount settings for the internal sdcard card and extermal sdcard

/dev/fuse /mnt/sdcard fuse rw,nosuid,nodev,noexec,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/block/vold/179:33 /mnt/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utim e=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
I also have USB debuuging enabled on the phone in case you're wondering.

Android 4.0.4 has dropped USB Mass storage support. Right now, I am using a card reader to write files to the external card and it gets tedious removing it back and forth just to write to it.

Anyway, if you know a solution let me know. Thanks

Last edited by penguinator; 12-04-2012 at 04:50 PM.
Old 12-04-2012, 04:50 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
I assume you are able to create files on the SD card from within Android normally? What if you try and place a file on the SD card from the Android command line (using "adb shell")?
Old 12-04-2012, 06:27 PM   #3
LQ Newbie
Registered: Nov 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
I still get permission denied on the external card within the adb shell, I also did a chmod 777 on the extSdCard folder to no avail. However I was able to write a file on the internal sdcard within the adb shell. Very weird.

At least I have two ways I can write to the external card, one way is by removing it and using a card reader.

The second way is Airdroid. It interacts with the phone and desktop wirelessly. This method I don't have to remove the card.

Thanks for the reply and suggestion.

Last edited by penguinator; 12-04-2012 at 06:32 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install ADB And Fastboot Android Tools In Ubuntu Via PPA LXer Syndicated Linux News 0 09-01-2012 03:10 PM
[SOLVED] Android - USB drivers on linux (adb device missing) Taylrl Linux - Mobile 1 06-03-2012 10:36 PM
Ubuntu connect to Android with adb, cannot see it! Please help! PeterUK Ubuntu 8 04-30-2012 02:25 AM
Device unable to connect to adb; LG LU2300 (Optimus Q) Android tensionwind Linux - Mobile 3 11-26-2011 06:42 AM > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration