LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 12-04-2012, 04:46 PM   #1
penguinator
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

Quote:
/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
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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
penguinator
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 10:01 PM.

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