Trying to write cli to external micro sd via USB-C port. Device mounts and is readable through apps, but cannot access via cli. Note I would like to accomplish this without the need to root device. Any suggestions or something that I am missing. Thanks.
What program are you trying to use? What OS is your PC running?
adb push /sdcard/ and adb pull /sdcard/filename work on a stock device.
So I am doing this from my Pixel C with Andriod. As for app, I am using Terminal Emulator 1.0.70. I would like to accomplish this without an external PC or laptop. The purpose is to program my RPI3 sdcard. Thanks,
so I'm assuming you're using the dd command, correct? Does it give any errors? Do you know what the device name is that you're trying to write to?
Sent from my Pixel C using Tapatalk
Related
I am not sure the correct section to put this into, but here goes.
I have heard ways to install Windows from a USB stick. I was wondering since I do not have a USB stick big enough and also a blank DVD on hand if I could place the image onto my Android SD card and install/reformat my computer that way.
Thanks!
PS. Please move to correct section if need be.
I don't think you could because the computer hardware doesn't recognize the sd card as a mass storage device, the software does, if you get what I mean.
I don't think it's possible to write a Windows live disk to the SD card and use it to format the Windows installation.
This in theory could be done. The one issue you might have is your computer might not recognize the SD card as a bootable option. If you can boot to USB device it might work. Also it isn't as simple as copying a windows install disk to the USB there is work that needs to be done to get it to read correctly and install. If you google linux pen drive I think it has a option to copy the windows cd to the drive boot to linux and install windows.
Yes you can do it. Sd card readers are on a usb connection to the motherboard of a pc. You have to make the sd card a bootable disk though the same way you would for a flash drive.
Never done it with the epic but I used to run puppy linux off my winmo samsung blackjack 2 on a thin client wyse computer. It had a micro sd card in it too. You would need to use a linux distro to be able to properly create a windows installation on another form of media though. Good luck
Sent from my SPH-D700 using XDA Premium App
Anyone know how to ADB Push / Pull in Terminal Emulator?
And any extra knowledge with terminal emulator? Like mounting sdcard because I am really frustrated with trying to mount my SDCARD! lol
You can't use ADB in a terminal emulator on the phone. It's meant to be run from a computer with either Windows, Linux or Mac OS X.
An unsecure boot.img will provide you with the possibility of using the adb remount command.
The SD card can be in three different modes (the expressions used here aren't the official ones): "phone mounted", "USB mass storage mounted" or unmounted.
"Phone mounted": accessible from the phone's ROM, or through adb push and pull, as /sdcard/
"USB Mass Storage mounted": the SD card behaves like any other mass storage device, accessible solely from the OS that has mounted it. The Android OS can't access it in that mode. You need to properly unmount the card from the computer first to avoid possible corruption, then toggle mass storage off so that the phone can remount the card for itself.
Unmounted is only used to remove the card while the phone is on, again, to avoid errors and corruption. Not a good idea if you're using /sd-ext hacks like Darktremor apps2sd or s2e.
Hi,
i wonder why they dropped mass storage device mode on the Gen9 devices.
No problem in the Windows world though, but i'm frequently using linux on my host computers and i'm little annoyed about the new MTP mode.
What do you think, could this be reverted easily?
Did anyone checked this out by tweaking some code or using a custom kernel?
Any information would be nice!
EDIT: O.K. i did some research... there's a lot discussion about it already.
Anyway would be nice to read your opinion.
Regards,
scholbert
I still see the mass storage option in my 4GB 80 G9, though I prefer MTP mode because it allows access to internal storage as well as SD card.
Yeah sure...
AFAIK, if you got a MicroSD in the slot it is accessed as USB mass storage.
I related to the device itself...
Anyway this will clear things up a bit.
I'll install libmtd and stuff on my laptop running Debian and see if it works out like expected.
Thanks for your reply!
scholbert
Well, internal storage is "media" directory of /data partition and it would be too dangerous for Archos to export whole /data as mass storage.
The benefit of this is to get rid of the limit of installed apps versus storage, the downside is that they can't export it as a drive. Google is pushing for this model too afaik.
Don't forget that storage for both SD and HDD models is formatted as ext4- unreadable for Windoze (it's the only reasonable option- fat32 supports max 32GB partitions, NTFS is not linux-frielndly IMO)
BTW it seems to me that MTP is becomming more popular- Xperia Arc S offers both MTP and UMS (MTP is factory default)
I don't know how to use it under Ubuntu or Linux mint, any recommendations?
thanks in advance.
get things rollin' on linux
Hi,
i started to do some research how to activate/implement the MTP on my laptop running Linux Mint (in partitular LMDE). Process would be the same for Debian and similar for Ubuntu.
To fully support the Gen 9 series libmtd version 1.1.2 should be installed on your machine.
See the logs at http://sourceforge.net/tracker/?group_id=158745&atid=809061
To start you need some essential packages first.
Afterwards you'll be able to see the device. I'm still in the process of sorting out how to make it work pleasantly.
Right now it'S not working the way it should. Anyway here are some requirements...
If you're on Debian Wheezy, simply install libmtp and stuff using your package manager.
Older versions only support older versions, not matching for the Archos G9 series.
If you're on Linux Mint it is possible to install version 1.1.2 manually from console (to force a partial upgrade).
Unfortunately some tools are little behind in this distro (at least LMDE)
Grab at least four packages from Debian Wheezy repo (e.g. 64bit machine):
- libmtp-common_1.1.2-2_all.deb
- libmtp9_1.1.2-2_amd64.deb
- libmtp-runtime_1.1.2-2_amd64.deb
- mtp-tools_1.1.2-2_amd64.deb
Remark: Install these in the right order. See the command below.
I found it to be safe to upgrade these packages partially, no depends are broken afterwards.
Please do not update your repository sources to point at the wheezy tree.
This might definitely confuse your package manager.
Additionally needed for handling virtual drives (better use package manager for install):
- fuse
- mtpfs
On Linux Mint (LMDE) you might then simply enter a root console to force upgrade of native libmtp:
Code:
dpkg -i libmtp-common_1.1.2-2_all.deb libmtp9_1.1.2-2_amd64.deb libmtp-runtime_1.1.2-2_amd64.deb mtp-tools_1.1.2-2_amd64.deb
I am not using Ubuntu, but i found out that 1.1.2 has found its way in 12.04 (precise), which is yet to be released.
Remark for Ubuntu 11.10 (oneiric):
In this distro libmtp 1.1.0 is used, unfortunately no Archos G9 support natively.
You could try to force a partial update though.
Please check dependencies first!
After installing you should add your username to the group audio:
Code:
adduser your_username audio
This is because the Gen 9 devices enumerate as audio device in the USB device-tree.
If you leave this out, only root will have access to this device.
Though this might be considered as optional.
Now you'll be able to use the mtp-tools (as a user) to discover your device and do lowlevel stuff.
As already stated things are not done automatically.
I will investigate, maybe some things are missing... (e.g. install package mtpfs).
Maybe this is the reason, why i got no virtual drive.
After installing mtpfs you may mount the internal storage of your Archos device (as root):
Code:
# mkdir ~/g9-storage
# mtpfs -o allow_other ~/g9-storage
The internal storage is now accessable...
To unmount:
Code:
# fusermount -u ~/g9-storage
Even with some scripting this is far from automount (like known from USB mass storage devices), but it works.
I'll try to find an even more convenient way...
Stay tuned!
scholbert
Any way to enable USB Mass Storage mode?
On 4.0.28 (stock), I only have MTP and PTP. I would like it to work as a "Normal" USB mass storage device, like most Android devices.
If all I can see is the SD Card, that's fine. It's much more convenient that carrying around a USB Card reader, and having to remove the card.
--
AW: Mobile Transfer Protocol (MTP) v.s. USB Mass Storage (UMS)
Hi, you can use FTP over Wi-Fi. With root access you can export every file you like.
Sent from my ARCHOS 101G9 using xda app-developers app
AW: Mobile Transfer Protocol (MTP) v.s. USB Mass Storage (UMS)
Hi, you can use FTP over Wi-Fi. With root access you can export every file you like.
Click to expand...
Click to collapse
Several other options:
1. SD card reader - Some Micro SD cards come with a tiny USB reader.
2. SD card adapter - Some Micro SD cards come with an adapter that lets them be used in a full size SD slot.
3. ADB via command line. adb push and adb pull.
Best I have found:
4. Use the file manager in DDMS. DDMS includes a simple file manager. It's basically a GUI for adb push and adb pull. DDMS is part of the Android SDK.
Is or has anyone thought of or tried this?
What I would like to do is use a terminal of sort to run an emulator on my phone to run grub4dos off my phones SD card.
sent to you from my PoS
I'm confused on what you mean... our internal storage already mimics an SD card
So a home PC can run through "virtual memory" an environment where one can test USB Boot Devices. Qumeu is the program I am currently using to check my USB Flash drives with "ISO" files.
Essentially I run Qumeu and then I can see in a GUI my USB device and work with it.
sent to you from my PoS
What i have going is as such:
2 partitions on my SD-Card. First partition is for my phones pictures, apps and roms ect... Second partition has my ComputerToolbox on it. Grub4DOS is the bootloader along with the ISO's i am currently using for troubleshooting a computer.
What I am currently doing is "removing my MicroSD Card" and then put it into a "Standard SD Card". I then place that Standerd sdcard into the computer which I would be fixing and run things as if I were using a USB for preboot repair/recovery.
What i find interesting is for Android Devices I have to remove the SD Card.
For my IPhone one can just plug the phone in through a USB and not have the issue of the computer "Read" the device as a usb device.
Any and all help is very welcome... Thankyou.
Sent from my SPH-D710 using xda premium
I'm receiving the attached error when attempting to copy files to either the internal or external sd storage when in TWRP. I am able to copy to the internal SD when the phone is booted. It doesn't seem to matter what type of file I attempt to copy, nor does the size of the file. The device also no longer shows up when trying to use ADB.
I'm running TWRP 2.8.4.0, the phone is rooted, usb debugging is enabled.
I've tried two separate USB cables, two separate computers, same result. Both computers running windows 7 x64. I've tried googling the problem, but I haven't been able to really find any good solutions.
Anyone have any ideas?
UPDATE: Able to bring it up with ADB again after flashing a new ROM, but I'm still unable to copy files when mounted in TWRP.