I am using Linux on my Android phone via use of Linux deploy.

I have some files in /root/android/ - folder of that linux partition.

And I want one of those files to move to my /storage/sdcard1/ - folder of my android.

Now the thing is all data of that linux file is saved in linux.img in sdcard1.

I literally have no way to move that file from "linux root" to "android sdcard".

How to install Linux in Android?

or to how to transfer files from Linux (on a PC) to Android?

share|improve this question
up vote 0 down vote accepted

I found the ans which is at number 3::: 1-by uploading-downloading

I went further to check if any online upload-download site supports use of command line, and came across https://transfer.sh site. Using it I transfered my file by uploading and downloading.

First upload your file to that site using below command after moving to that folder which contains file.

curl --upload-file https://transfer.sh/yourfilename

When you execute this command , it will give you a new URL (e.g. https://transfer.sh/lPTH/yourfilename) using which u can download ur file..

To download your file use following command.

curl "https://transfer.sh/lPTH/yourfilename" -o -k yourfilename

(Replace URL in "" with whtever url you get by uploading) Another way is just open any browser and open URL which you get by uploading.

Enjoy.

2- using usb

I still cant mount my sdcard(which is in) but i found way(actually command) to mount usb.. Use otg cable and connect usb with yout phone. Then.

Use command "lsusb" to check if linux can detect your usb.

Use "blkid" command to check location of your usb(in my case it was /dev/block/sda), which normally would be somewhere in dev folder, also note down partition type of your usb(normally vfat) cause we will need it in mounting command.

Now to mount your usb in linux use this command.

mount -t vfat /dev/block/sda /mnt

It will mount your usb to /mnt folder from there you can transfer your things. To check size and left space use "df -h".

To unmount.:

umount /dev/block/sda

3-mount sdcard

Just like number 2, i found my sdcard at

/dev/block/mmcblk1p1

Location, using command "blkid"..

So mount it (whtever ur sdcard location is) to /mnt and exchange data..

Enjoy..

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.