Related
What's the best way to migrate all of my stuff on the stock 8GB card to a newer 16GB card? Can I just do it over the PC? With the amount of stuff that's probably hidden on there, I don't want to miss anything
xnifex said:
What's the best way to migrate all of my stuff on the stock 8GB card to a newer 16GB card? Can I just do it over the PC? With the amount of stuff that's probably hidden on there, I don't want to miss anything
Click to expand...
Click to collapse
The fastest is to take the cards out and put them in a card reader. Just copy the old card's contents to a directory on your PC then put in the new card and copy the contents from your PC to the new card. Change the Removal Policy to faster performance and enable write caching for faster transfers(in Windows). Write speeds while in the Sensation4g were slow as hell - 1Mb per sec while connected via USB.
To get to the Removal Policy - right click on the disk in explorer - Properties - Hardware Tab - Choose the device that has your card in it - Policies Tab
So going through the PC it will catch everything, even hidden files. I know in theory it should work, just wondering if in practice it does.
Hidden files in linux are just named starting with a period
.file
.folderA/.file
There's no special stuff to lose. Unless you had some weird filesystem on your sd card that your pc can't read it should be no problem.
The only problem you may have is with file names that include characters that can't be displayed or exceed your filesystem's limits. I've consistently gotten errors on cache files in multiple file directories on my sd card that were nested like 15 directories deep with long names and exceeded the character limitation for ntfs (255 utf-16 chars). They were not important files at all.
Good to know. Never messed with Linux before (may change soon). Will move everything over tomorrow when I have time. Thanks Master Pimp of the Gorillas!
Ok so I just ran in to the issue where the filename is too long. How can I get these files on to the new card as well?
GorillaPimp said:
The fastest is to take the cards out and put them in a card reader. Just copy the old card's contents to a directory on your PC then put in the new card and copy the contents from your PC to the new card. Change the Removal Policy to faster performance and enable write caching for faster transfers(in Windows). Write speeds while in the Sensation4g were slow as hell - 1Mb per sec while connected via USB.
To get to the Removal Policy - right click on the disk in explorer - Properties - Hardware Tab - Choose the device that has your card in it - Policies Tab
Click to expand...
Click to collapse
Good post. You definitely deserve some "thanks" for it.
xnifex said:
Ok so I just ran in to the issue where the filename is too long. How can I get these files on to the new card as well?
Click to expand...
Click to collapse
I skipped them since they aren't useful. But.......
You can use robocopy http://en.wikipedia.org/wiki/Robocopy
run it from the commandline - if you have win7 it's included otherwise it's a free download
or use this gui app richcopy http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx
GorillaPimp said:
I skipped them since they aren't useful. But.......
You can use robocopy http://en.wikipedia.org/wiki/Robocopy
run it from the commandline - if you have win7 it's included otherwise it's a free download
or use this gui app richcopy http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx
Click to expand...
Click to collapse
**** it... skipped them too. they were files for google maps & books apps. Now I need to find my damn 2GB card that was my Android install for my HD2. damn thing disappeared on me.
Here I will post the advantages and disadvantages of the two.
Advantages of UMC
UMC works at block level. It means that you access the partition from the operating system like if were local, and you have complete control of it.
For the previous reason, UMC keeps timestamps for files and folders. This is specially important for pictures, photos or videos that don't have EXIF, where you rely on file creation or modification time to arrange them and to know when were taken. MTP sets for all transferred files current system time, thus overwritting the real creation or modification time and ruining your gallery.
UMC allows the use of recovery software (Recuva) or partition software (Easeus Partition Master) and even format with a different filesystem. Without UMC you have to use android side software that usually is less powerful, needs a rooted phone, etc.
As you have total access to the partition, you can access all files there, even hidden, system, etc. With MTP you only have access to the files that the controlling operating system (android) wants. For example, with MTP, files starting with dot (.file) are not accessible. Some file formats are not allowed.
UMC is compatible with any operating system that allows connecting a FAT32 / exFAT pendrive, while MTP requires specific support. Linux and OS X may have built-in support or not.
With UMC you directly access the files, so modification is instant, and viewing. On the other side, with MTP you download it, modify it and re-upload the edited version, but you never do it directly. Even to play files you need to completely download it first. Imagine downloading a 5 GB MKV.
UMC is always the same, while for MTP there are several implementations: MTP, MTPZ (Microsoft Zune), Sony SonicStage, Apple DMAP.
UMC is faster than MTP because requires less time to initialize transfer, but isn't that big difference for an average user. The higher the number of files to be transferred and the lower the size of each file, the higher the ratio MTP/UMC.
Advantages of MTP or PTP
In MTP mode, the android device controls the input/output to the filesystem, so there is no risk of data loss because of cold disconnecting the device from USB. You work on a layer over the filesystem. With UMC you must be careful.
MTP allows you to use the sdcard from both the android phone and the computer at the same time, even to any desired number of them. On the other side, with UMC you only can do it from a device at a time, meaning that you have to unmount the sdcard from the android to view it on the computer, stopping apps, etc. Of course there are software that can force viewing UMC from both sides, but is a highway to corruption.
MTP does not show the native filesystem to the computer (it uses a hierarchery simulated by the MTP driver), so it will always be compatible. For example, on devices with the same partition for data and sdcard (like Galaxy Nexus, Galaxy S3) you are writing from the computer to an ext4 partition and you don't need windows to support it. The same if the device partition were in any imaginable filesystem, the MTP will show you it in a standard hierarchy. On the other side, with UMC your local operating system (windows, linux, mac) must support natively the filesystem of the partition or download some software that allows you to do it.
With MTP you use all capabilities and disadvantages of the device filesystem. If the filesystem is in ext4 you can copy files over 4GB to the device, that you couldn't in UMC mode because usually it will come formatted in FAT32, that is the most compatible fs for all operating systems.
MTP enables Windows Media DRM, UMC doesn't.
MTP allows the use of password for accessing the files (on compatible devices). On the other side, with UMC, of course you could use powerful tools like TrueCrypt, but you need the corresponding software on android that reads it.
How to preserve timestamps
- Use File Timestamp app. Root is required, and works recursively too.
- Use Mass Storage Mode when possible.
- zip or tar the files when sending them to the phone or receiving from.
- If the device has external sd, you can use it as a man in the middle.
- samba (smb protocol) allows preservation of timestamps, however applications for android don't support it.
- FTP allows preservation of timestamps, however applications for android don't support it.
- NFS allows preservation of timestamps, however couldn't get any application for android working properly (Servers Ultimate Pro).
- Rsync allows preservation of timestamps, however couldn't get any application for android working properly (Servers Ultimate Pro).
- adb push and pull does not preserve timestamps. Furthermore doesn't work recursively with folders.
- MTP does not preserve timestamps.
- Cloud services like Google Drive, Dropbox, etc. usually never preserve timestamps.
Questions and answers
Is possible to implement MTP on "put here your device"?Possibly yes, if has USB. MTP works on software side, so updating your rom or installing a new one will do the job
Is possible to implement UMC on "put here your device"?That depends on hardware mainly. If the internal sdcard and the data folders belong to the same partition, you can't. The reason is that you can't enable access to a part of a partition at block level, the whole or nothing. This is the case for Galaxy Nexus and Galaxy S3, in order to take advantage of all space, and discard the case where you have filled a partition and the other plenty of space.
Dan Morill said:
It isn't physically possible to support UMS on devices that don't have a dedicated partition for storage (like a removable SD card, or a separate partition like Nexus S.) This is because UMS is a block-level protocol that gives the host PC direct access to the physical blocks on the storage, so that Android cannot have it mounted at the same time.
With the unified storage model we introduced in Honeycomb, we share your full 32GB (or 16GB or whatever) between app data and media data. That is, no more staring sadly at your 5GB free on Nexus S when your internal app data partition has filled up -- it's all one big happy volume.
However the cost is that Android can no longer ever yield up the storage for the host PC to molest directly over USB. Instead we use MTP. On Windows (which the majority of users use), it has built-in MTP support in Explorer that makes it look exactly like a disk. On Linux and Mac it's sadly not as easy, but I have confidence that we'll see some work to make this better.
Click to expand...
Click to collapse
Sources:
Easy UMS, USB Mass Storage and Media Transfer Protocol – XDA Developer TV
DifferenceBetween: Difference Between MTP and MSC
Directions on Microsoft: What is MTP?
CrackBerry: On startup - Media Transfer Protocol
Ice Cream Sandwich supports USB mass storage after all, Galaxy Nexus does not
Issues and questions:
[Q] Hidden folders through Android MTP
Nexus 4 not showing files via MTP
[Q][MTP] Certain files/directories hidden to windows file manager?
Connecting to PC files are different!
MTP and hidden files
[Q] Hidden files and MTP/Windows
[Q] Do the S3 still using 2gb partition for data and 12 as virtual sd?
Just got meself a Nexus 7... But!
Upload to dropbox: file timestamps should be preserved
Android File Transfer - For Mac users only
Thanks for this guide !
If I understand this correctly, then devices like the Asus Transformer Eee Pad (TF300T) which has a 16GB or 32GB internal storage, PLUS a microSD card (and standard SD card slot when docked) could use UMC, if the manufacturer made it so (which they haven't), right?
invertedskull said:
If I understand this correctly, then devices like the Asus Transformer Eee Pad (TF300T) which has a 16GB or 32GB internal storage, PLUS a microSD card (and standard SD card slot when docked) could use UMC, if the manufacturer made it so (which they haven't), right?
Click to expand...
Click to collapse
The UMC should appear then for the microsd, which you can physically remove from the phone, plus the dock if existent.
For the 16/32 GB internal storage it depends if there is a dedicated partition for internal sdcard. Check it for the Eee Pad.
Well, then I assume(?) Asus were lazy or just didn't think to give us the choice, cos I only have MTP or PTP mode. I miss UMC.
invertedskull said:
Well, then I assume(?) Asus were lazy or just didn't think to give us the choice, cos I only have MTP or PTP mode. I miss UMC.
Click to expand...
Click to collapse
Well, assuming that you have your device rooted and with busybox, can you post the output of these three commands
Code:
ls -lR /dev/block
Code:
mount
Code:
su
parted /dev/block/mmcblk0
print
scandiun said:
Well, assuming that you have your device rooted and with busybox, can you post the output of these three commands...
Click to expand...
Click to collapse
Sorry, I don't have it rooted. I have been asking around if rooting / unlocking the TF300T would give me the option for UMC, but pretty much everyone told me chances are zip.
invertedskull said:
Sorry, I don't have it rooted. I have been asking around if rooting / unlocking the TF300T would give me the option for UMC, but pretty much everyone told me chances are zip.
Click to expand...
Click to collapse
Rooting can't change that because it's hardware implemented. You can't do anything about it. Probably the Eee pad transformer doesn't have a dedicated partition for sdcard.
A quick way to check it is see if the free space for the sdcard and the userdata is exactly the same, and is always like that no matter on which of the two partitions you write.
About the issue anyway, modern phones like Galaxy S3, Galaxy Nexus, Galaxy Note and probably newer like Nexus 2 and Note 2 won't have it anymore, it's just the way to go because takes all the advantage of the free space on the device. It will be the standard from now on.
EDITED:
If you want UMS on devices that don't have it, you can use DriveDroid from market (there's both free and paid). With it, create a blank file that will be used as "partition". Then you can connect your phone to your computer and put there the songs you want. Then do the same in the car. For example, in my Nexus 7 I've created a 2 GB file which serve for that purpose (takes a while when is big).
http://forum.xda-developers.com/showpost.php?p=39203658&postcount=21
I have 20.71GB free internal, and 1.89GB free on the mSD card. :/
invertedskull said:
I have 20.71GB free internal, and 1.89GB free on the mSD card. :/
Click to expand...
Click to collapse
Because the mSD is another sdcard, different than the internal, in case it has it.
Would be great if you could get the partition scheme as I requested before, or ask for it, to definitely rule it out.
scandiun said:
Because the mSD is another sdcard, different than the internal, in case it has it.
Would be great if you could get the partition scheme as I requested before, or ask for it, to definitely rule it out.
Click to expand...
Click to collapse
Is this what you need?
when i connect my device with computer(MTP conection), i saw 1drive appear, then i go inside, i saw 2drive(iternal&external with how many free space left), go inside again always empty... how to use it?
I get that also. Just go into either one (internal or external) that you want to copy your files to and do your stuff.
invertedskull said:
Is this what you need?
Click to expand...
Click to collapse
More or less. The internal sdcard and the external (microsd) are different, one has 27.15 GB and the other 29.80 GB.
Click in the More... and see if you have UMC for the external microsd
scandiun said:
More or less. The internal sdcard and the external (microsd) are different, one has 27.15 GB and the other 29.80 GB.
Click in the More... and see if you have UMC for the external microsd
Click to expand...
Click to collapse
Nope, I only have MTP or PTP. This makes me sad.
Of UMC, MPT, and PTP, which is the most benigh?
I don't know if this is the best place to ask my question, but at least you all seem to understand this all pretty well.
I plug my phone into my PC to just use ADB. Under Gingerbread, I would select "Charge only" as my USB connection type.
With ICS, there is no longer the "Charge Only" option for an USB connection to a PC. I have to pick UMC, MTP, or PTP.
Given I really don't want to use any of those, just ADB, which of the three is the most benign one?
WaltA said:
I don't know if this is the best place to ask my question, but at least you all seem to understand this all pretty well.
I plug my phone into my PC to just use ADB. Under Gingerbread, I would select "Charge only" as my USB connection type.
With ICS, there is no longer the "Charge Only" option for an USB connection to a PC. I have to pick UMC, MTP, or PTP.
Given I really don't want to use any of those, just ADB, which of the three is the most benign one?
Click to expand...
Click to collapse
Either the MTP or PTP are the safer ones. There is no possibility to select "none" like was possible in previous version as you say. The UMC has the disadvantage that if you activate the Mass Storage usually the /sdcard won't be available from ADB commands.
Anyway, the ADB is separate from those options. The ADB option is usually found under Developer options. You can use adb with any of the options you say.
Thanks a lot very very helpfull!
oops, delete post. wrong window lol
scandiun said:
Rooting can't change that because it's hardware implemented. You can't do anything about it.
...
About the issue anyway, modern phones like Galaxy S3, Galaxy Nexus, Galaxy Note and probably newer like Nexus 2 and Note 2 won't have it anymore, it's just the way to go because takes all the advantage of the free space on the device. It will be the standard from now on.
Click to expand...
Click to collapse
I thought I would let you (and anyone else reading this thread) know that your post here is wrong. It's not "hardware implemented" in the sense that these two protocols are software implementations of data transfer. In fact, in many cases, even where there is NOT a microSD card that is mounted as a separate partition from system/data, the UMS/MSC (USB Mass Storage Transfer/Mass Storage Class) can still be implemented by this procedure:
1. Root (and optionally flash a custom ROM, that can be easily modded)
2. boot into alt OS, such as Recovery or OS from alt. source (USB OTG?)
3. Partition such that you have the required "separate partition"
4. add kernel modules/libraries you want and will need for UMS/MSC
5. Boot up and enjoy UMS/MSC as well as MTP (if you don't mind crappy speed)
Done.
Also, regarding MTP/PTP (Media Transfer Protocol, which is actually different from Picture Transfer Protocol), being a future replacement for all "modern phones", I am not so sure. It is designed for that indeed, but the Android community is different from most others. I will personally be going out of my way in the future, to ensure all phones I buy have removable uSDcard slots, as long as I can still find them, because it makes recovery in a bind, much easier (like, if there's a problem establishing communications with a computer, and numerous other possibilities). There's nothing like popping in a 32 or 64 Gig card of movies, training videos, eBooks, etc., within 10 to 20 seconds, vice the hours it will typically take to transfer even 5 Gigs of videos over the MTP protocol. Again, I don't like programs handling all my media for me. I prefer to see the files where they live (a higher fidelity simulation, is afterall, a hallmark property of how sharper minds represent reality, and abstractions from it are always mere shortcuts we use in a hurry). You got an easier method to rapidly check file hashes on your phone, from your laptop? Think of it this way, saying that MTP will "replace" UMS, is like saying Apple will replace Linux.
Regards,
Paul
:good:
Hi all. I hope I'm posting this in the right forum.
I got my Asus TF300T about a week ago and am enjoying it so far. I don't like the MTP mode for USB though. Will rooting this bad boy give me Mass Storage USB mode?
1. Sorry, this is the wrong forum. Questions generally go in the question/answer section.
2. There may be an app that can do it, but rooting by itself won't give you UMS, and I'm not entirely sure any apps can do it. You're welcome to try a couple of the UMS apps and report back.
Root and use SAMBA
its an app that lets you connect via SMB/CIFS from any network device.
Wait, this app doesn't say anything about Mass Storage device... :/
no since with ics and JB the sdcard is a mounted folder on your internal memory - so the only one close to it is either use an ftp server/client (kinda clunky) or use SAMBA which you can use like a network share and works with Win/OSX/*unix.
To clarify things, there is a reason that ICS and JB use MTP and not UMS: filesystems. Before ICS (actually, Honeycomb, I think), manufacturers just shipped phones with microSD cards formatted as FAT32. This is convenient because all computers can read this filesystem. All the phone has to do is turn the SD card into a disk drive, and the computer will mount it. Now, with ICS and JB, manufacturers are using internal storage formatted as ext4 (the most common Linux filesystem), but there's a problem. Windows computers can't read ext4 (or ext2 or ext3 or anything besides FAT32, exFAT, and NTFS for that matter), so turning the storage into a disk drive isn't an option because Windows computers will completely ignore it, and since Windows is the most popular OS, that would alienate most of the potential customers. The solution is to mount the internal storage as a FUSE (Filesystem in Userspace) device. FUSE isn't a real filesystem. It's more of an intermediary solution. It kind of "translates" from one filesystem into a generic one. That is then sent to the computer as an MTP or PTP device.
Pretty much the only options if you can't find any UMS apps are to reformat your internal storage as FAT32, exFAT, or NTFS (which would cause other problems) or use a network-based solution as suggested. It doesn't have to be SAMBA, though. There are apps that create either an HTTP or FTP server on your phone so you can connect from your browser (or an FTP client) over Wifi. That's what I do because Linux doesn't play nice with MTP or PTP, and I refuse to use Windows unless necessary (it nearly killed me to root my GS3, because it requires Odin in Windows; finding and installing drivers again reminded me why I hate Windows). So, I'm in roughly the same spot as you, but I'm coping with it. Until Windows is finally killed or MS decides to support more than just its own filesystems, we don't have much choice.
EndlessDissent said:
To clarify things, there is a reason that ICS and JB use MTP and not UMS: filesystems. Before ICS (actually, Honeycomb, I think), manufacturers just shipped phones with microSD cards formatted as FAT32. This is convenient because all computers can read this filesystem. All the phone has to do is turn the SD card into a disk drive, and the computer will mount it. Now, with ICS and JB, manufacturers are using internal storage formatted as ext4 (the most common Linux filesystem), but there's a problem. Windows computers can't read ext4 (or ext2 or ext3 or anything besides FAT32, exFAT, and NTFS for that matter), so turning the storage into a disk drive isn't an option because Windows computers will completely ignore it, and since Windows is the most popular OS, that would alienate most of the potential customers. The solution is to mount the internal storage as a FUSE (Filesystem in Userspace) device. FUSE isn't a real filesystem. It's more of an intermediary solution. It kind of "translates" from one filesystem into a generic one. That is then sent to the computer as an MTP or PTP device.
Pretty much the only options if you can't find any UMS apps are to reformat your internal storage as FAT32, exFAT, or NTFS (which would cause other problems) or use a network-based solution as suggested. It doesn't have to be SAMBA, though. There are apps that create either an HTTP or FTP server on your phone so you can connect from your browser (or an FTP client) over Wifi. That's what I do because Linux doesn't play nice with MTP or PTP, and I refuse to use Windows unless necessary (it nearly killed me to root my GS3, because it requires Odin in Windows; finding and installing drivers again reminded me why I hate Windows). So, I'm in roughly the same spot as you, but I'm coping with it. Until Windows is finally killed or MS decides to support more than just its own filesystems, we don't have much choice.
Click to expand...
Click to collapse
yeah thats the TLR version put it on wiki - nice summary! - was to lazy to write it up
i suggested samba since you dont need a client to access it - just an OS for simplicity. and uploading via http is a pita imho. Samba shows you a folder structure plain and simple (like ums would have) its just not as a device on "my computer" but as a connected network share
but nice summary - btw - windows ain't so hard - had more probs on my gentoo with my droid tbh.
cheers
Honestly, I just never looked up how to set up SAMBA, but I've considered it. I got used to using MIUI File Explorer, which had a built-in FTP server. With gFTP or FileZilla, it was dead-easy to set up a connection. SAMBA would probably work well in my house since there are a couple Windows computers, but since I don't use them (they belong to others), I have no need to access them. Still kicking it over in my mind.
EndlessDissent said:
To clarify things, there is a reason that ICS and JB use MTP and not UMS: filesystems. Before ICS (actually, Honeycomb, I think), manufacturers just shipped phones with microSD cards formatted as FAT32. This is convenient because all computers can read this filesystem. All the phone has to do is turn the SD card into a disk drive, and the computer will mount it. Now, with ICS and JB, manufacturers are using internal storage formatted as ext4 (the most common Linux filesystem), but there's a problem. Windows computers can't read ext4 (or ext2 or ext3 or anything besides FAT32, exFAT, and NTFS for that matter), so turning the storage into a disk drive isn't an option because Windows computers will completely ignore it, and since Windows is the most popular OS, that would alienate most of the potential customers. The solution is to mount the internal storage as a FUSE (Filesystem in Userspace) device. FUSE isn't a real filesystem. It's more of an intermediary solution. It kind of "translates" from one filesystem into a generic one. That is then sent to the computer as an MTP or PTP device.
Pretty much the only options if you can't find any UMS apps are to reformat your internal storage as FAT32, exFAT, or NTFS (which would cause other problems) or use a network-based solution as suggested. It doesn't have to be SAMBA, though. There are apps that create either an HTTP or FTP server on your phone so you can connect from your browser (or an FTP client) over Wifi. That's what I do because Linux doesn't play nice with MTP or PTP, and I refuse to use Windows unless necessary (it nearly killed me to root my GS3, because it requires Odin in Windows; finding and installing drivers again reminded me why I hate Windows). So, I'm in roughly the same spot as you, but I'm coping with it. Until Windows is finally killed or MS decides to support more than just its own filesystems, we don't have much choice.
Click to expand...
Click to collapse
Bugger.
I think in this article/video You will find some answers:
http://www.xda-developers.com/android/easy-ums-usb-mass-storage-and-media-transfer-protocol-xda-developer-tv/
Cheers
invertedskull said:
Bugger.
Click to expand...
Click to collapse
Well, I didn't mean to rain on any parades. In fact, the way I'm thinking is, since FUSE more-or-less emulates a generic filesystem, it should be possible to get it to broadcast as UMS. But if it were that easy, why would the hardware vendors use MTP instead?
since a couple of you are linux guys like me, I'll mention NFS is also an option
well at least I'm able to mount my ubuntu-server NFS shares on my TF300
have been doing this daily for a while now
then about a week or so ago and I found a nice package botbrew-basil
which allows installation of packages from emdebian
NFS common runs just fine on my device
I did not look for the NFS server daemon
but should also be possible
EndlessDissent said:
Honestly, I just never looked up how to set up SAMBA, but I've considered it. I got used to using MIUI File Explorer, which had a built-in FTP server. With gFTP or FileZilla, it was dead-easy to set up a connection. SAMBA would probably work well in my house since there are a couple Windows computers, but since I don't use them (they belong to others), I have no need to access them. Still kicking it over in my mind.
Click to expand...
Click to collapse
install the samba app start it up, set username and pw then enable it. then use ur filebroeser/finder/explorer and browse to your device ip or name - done. easy .. takes 1 minute tops and nice thing is my gnex can talk to my tabs an vice versa with i.e. es file explorer
cheers
edit: kad79
nsf mount is nice but perm connections drain my batteries i feel. i use es file explorer to access any nsf/smb share and just fav it for easy access.
cheers
Sent from my Galaxy Nexus using xda app-developers app
I'm surprised
es file explorer can do NFS??
I've actually got es file explorer installed, will have to take a closer look
but I don't think it can do NFS (Network File System)
NFS shares usually must be mounted before you can access them
editbuster99 - I checked es file explorer does not do NFS
it can't even detect that they are available on the network
radekula said:
I think in this article/video You will find some answers:
http://www.xda-developers.com/android/easy-ums-usb-mass-storage-and-media-transfer-protocol-xda-developer-tv/
Cheers
Click to expand...
Click to collapse
Ta mang, will watch that in a moment.
A thought... What if I unlocked bootloader, and installed a custom ROM built from Honeycomb? Chances of me doing this are very slim, just a thought though.
Use the app Airdroid. Its quick, simple GUI, and user friendly.
Thanks for the suggestions. I have AirDroid, and forgot it does this. I only just got my wifi working again so I was looking primarily for a wired solution, but it looks like I'll either have to put up with MTP or use a wireless method.
Hi,
I have a stock Galaxy S7 running 6.0.1 with an SD card configured as portable storage. I tried two SSH servers (Ssh Server and SSH Server, I know the names are not very helpful) and they both work fine. However they can't access my SD card.
Is it possible to get this to work, can this never work, etc.? Various file managers can work with the SD card. I don't understand why the SSH servers don't.
The question behind this question is what's the easiest/fastest way to get a 100 gig of files onto an SD card that a phone or tablet running Marshmallow can access. Without Windows or Mac I don't know of any better way. Why, oh why didn't Android provide a normal plug and play USB interface like you normally get with most devices where you can mount all the drives and act like they're local...
If anybody has ideas on this that would be nice. If not if I can at least access my SD card from an SSH server running on the device I'll be able to pump my files over from my various systems.
Thank you.
Updated: I built the latest libmtp and stable gmtp today and it starts working great but eventually crashes in the middle of transferring a bunch of files. Oddly, it seems to die on the same file each time. I don't have time right now but later I'll check and see if I can prove whether it's after some amount of time/data/whatever or if the file is bad (unlikely). So unless somebody has a better idea how we can get good ole' 1990s USB mass storage working I'm kinda screwed atm.
midnightrider said:
Hi,
I have a stock Galaxy S7 running 6.0.1 with an SD card configured as portable storage. I tried two SSH servers (Ssh Server and SSH Server, I know the names are not very helpful) and they both work fine. However they can't access my SD card.
Is it possible to get this to work, can this never work, etc.? Various file managers can work with the SD card. I don't understand why the SSH servers don't.
The question behind this question is what's the easiest/fastest way to get a 100 gig of files onto an SD card that a phone or tablet running Marshmallow can access. Without Windows or Mac I don't know of any better way. Why, oh why didn't Android provide a normal plug and play USB interface like you normally get with most devices where you can mount all the drives and act like they're local...
If anybody has ideas on this that would be nice. If not if I can at least access my SD card from an SSH server running on the device I'll be able to pump my files over from my various systems.
Thank you.
Updated: I built the latest libmtp and stable gmtp today and it starts working great but eventually crashes in the middle of transferring a bunch of files. Oddly, it seems to die on the same file each time. I don't have time right now but later I'll check and see if I can prove whether it's after some amount of time/data/whatever or if the file is bad (unlikely). So unless somebody has a better idea how we can get good ole' 1990s USB mass storage working I'm kinda screwed atm.
Click to expand...
Click to collapse
there is a Galaxy S7 forum
http://forum.xda-developers.com/galaxy-s7
Sent from my XT1254 using XDA Labs
sd_shadow said:
there is a Galaxy S7 forum
http://forum.xda-developers.com/galaxy-s7
Sent from my XT1254 using XDA Labs
Click to expand...
Click to collapse
Thanks, but this is a generic Android Marshmallow issue as far as I know.
It appears the SD card filesystem is not world writeable. TotalCommander allows me to change it in the GUI but it doesn't actually get changed. No error or warning messages either.
edit: ok after hours of searching here and on the net this is apparently caused by design in Marshmallow. The permissions on the SD card make it not happening to directly update the card. I think, but I am not sure, there is an API for applications that want to write to the card. Some apps can certainly do it. I found a thread here where a guy figured out a solution if you are rooted. I'm sorry but I accidentally closed the tab (DOH!) and lost the link.
The choices seem to be:
1) ask the dev to fix his app to be able to write on the SD card
2) root your phone and change permissions or change the xml file to deal with it
3) use your SD card as adoptable storage. This only works if you have a really fast/expensive card otherwise your performance will suck hard and you'll be miserable. Lots of other downside to this, probably not worth it.
I have no idea if this is going to be fixed in N. I hope so because it is a huge PITA. And stupid!
I just built the linux fuse support for exfat and am downloading a bunch of doc to the sd card from linux. After I fill up the card I'll test it out and update again. Very easy build, the whole thing was less than 3 minutes. For anybody who wants to try this on a non package managed linux (I use Slackware) see here: https://github.com/relan/exfat
I want to mount all of my phone's storage read/write with ssfs, but I haven't yet found an SSH server able to do that properly. SimpleSSHD came closest, but it doesn't get write access to /storage/148C-40DE, which is my removable SD card. Also, it doesn't support setting the file attributes and date/time, which is annoying (all files I copy to the phone will have the current date/time).
It's not the protocol, because I've also tried the open source Primitive FTPD app, and it had the same problem. So back to SSH, I've tried a bunch of other free and paid apps from Play, and all had the same problem with the external SD Card, except for WiFi FTP Server, which was able to write on folders in the external SD card, but the connection kept breaking to the point of being unusable, but it did show that it's possible for a server app to offer write access to the SD card without root.
So is there a current solution to run an SSH server on Android Nougat with write access to the external SD card? The guides I've found were very old (2011).
Nothing?
I'm looking for the same thing, since I really want wireless file syncing with my microSD card, but NFS/SMB is out due to not being rooted.
This is the best one I've seen so far -- https://forum.xda-developers.com/android/apps-games/app-ssh-sftp-server-terminal-interface-t3740091 -- https://play.google.com/store/apps/details?id=net.xnano.android.sshserver
It can write to the SD card. But it does have some odd issues -- file modification times aren't kept, and mounting from windows causes an error if you have more than one root per user (workaround: I just created a user for the internal memory root and one for the SD card). But the modification time is a big problem. I haven't found any SSH server on Android that keeps modification times, where openSSH out the box does it on Linux.
In the reviews for this app someone mentioned a better app that's not on the playstore, but I couldn't find one like that.
I'm surprised no one has really gotten wireless sharing on Android working well yet (and frankly, I'm surprised it just isn't support by Android directly on the correct port numbers.