Taking Ownership of EXT3 in Android - Android Q&A, Help & Troubleshooting

I recently purchased a Pivos Xios Android Media Center. I bought it to replace my Popcorn Hour Network Media Tank. I had been using a 1 terabyte drive in the NMT, which the Linux back end of the NMT had formatted to the EXT3 file system. After my NMT died, I moved the hard drive into an external USB enclosure. I was able to get the Xios to read from the drive using the USB OTG (On the Go) Helper; the Xios would not recognize the drive without the app, as apparently the build of ICS it uses cannot natively read from EXT3 devices connected externally (even though it uses an EXT format on its internal drive space). The Xios was able to read from the files deposited by the NMT on the drive fine; I could also see and read the files on my PC using the Samba File Sharing app. So things were looking up, and it looked like I had found a good replacement for my NMT. Then I ran into a problem.
Any file I copy from my PC to the EXT3 USB drive is unreadable. I can copy files to the FAT32 Microsd card without issue, but the files I copy to the HD show as Readable: No and Writable: No on ES File Explorer. Any media player that attempts to play the files fails. I can play media from the SD card fine, and from my PC fine. If I attempt to copy a file from the SD card to the HD using ES, the copy operation fails.
From my limited experience with Unix/Linux, I'd say permission to write a readable file to the HD still belongs to my dead Popcorn NMT. I need a way to have the Xios take ownership either for the files I copy from my PC, or the entire partition. The Xios comes rooted by default. Is there some kind of Android command line app and a script I can use to do this, or some kind of an ownership app I can use to take ownership of the drive?
Thanks!

Ustankragnar said:
I recently purchased a Pivos Xios Android Media Center. I bought it to replace my Popcorn Hour Network Media Tank. I had been using a 1 terabyte drive in the NMT, which the Linux back end of the NMT had formatted to the EXT3 file system. After my NMT died, I moved the hard drive into an external USB enclosure. I was able to get the Xios to read from the drive using the USB OTG (On the Go) Helper; the Xios would not recognize the drive without the app, as apparently the build of ICS it uses cannot natively read from EXT3 devices connected externally (even though it uses an EXT format on its internal drive space). The Xios was able to read from the files deposited by the NMT on the drive fine; I could also see and read the files on my PC using the Samba File Sharing app. So things were looking up, and it looked like I had found a good replacement for my NMT. Then I ran into a problem.
Any file I copy from my PC to the EXT3 USB drive is unreadable. I can copy files to the FAT32 Microsd card without issue, but the files I copy to the HD show as Readable: No and Writable: No on ES File Explorer. Any media player that attempts to play the files fails. I can play media from the SD card fine, and from my PC fine. If I attempt to copy a file from the SD card to the HD using ES, the copy operation fails.
From my limited experience with Unix/Linux, I'd say permission to write a readable file to the HD still belongs to my dead Popcorn NMT. I need a way to have the Xios take ownership either for the files I copy from my PC, or the entire partition. The Xios comes rooted by default. Is there some kind of Android command line app and a script I can use to do this, or some kind of an ownership app I can use to take ownership of the drive?
Thanks!
Click to expand...
Click to collapse
Update: I'm able to use Root Explorer to change the permissions on files deposited onto to the drive by PC over Samba. I have to change permissions on both the created folder and the file to do this. This is a tedious process using Root Explorer. Would I be able to use Remote ADB to change the permissions on the ext3 drive from my PC in bulk, or does it always have to be done at the file/folder level. I'd preferably just like to transfer ownership of the ext3 partition to the Xios.

Related

Somehow I can't copy MKV to my Prime. Avi works?

could someone help me I don't know what it is?
I had the same problem. I narrowed it down to the file size. Is the file more than 2GB? When copying two MKVs the difference between the two was that one was 2.2GB and the other, the one that worked, was 1.41GB.
Yes it is 8gb^^ full hd bluray rip I just read that it has a limitation for 4gb only? is that true? if yes is there a way I can change that?
Can't confirm a file size limit. Transfered an 8.73gb 1080p mkv file to my prime and it is a) on the primes internal storage and b) it plays flawlessly with dice player
Transfered mine using the usb cable and my pc is running win7 x64 professional.
thanks I tried it with a zip and that works 16gb but MKV doesn't work and I don't know why
what os are you using? are you transfering the files via usb or wifi? maybe someone with the same system specs as you can help you out
MACBLACK91 said:
could someone help me I don't know what it is?
Click to expand...
Click to collapse
How did you try to transfer it and what did the error msg say?
Format your SD cards/USB sticks to exFat or NTFS, that should do the trick.
The problem is the partition table, Anything upto FAT32 cant go larger then 2gb I think.
I have the Asus eee Pad transformer Prime 64gb verion and windows 7 64bit.
Im triing to put the movie on the internal storage, I don't have a other sd card.
And I'm triing to load it over the Usb Cable
And the error is that it says well I have to translate it, it says that windows-explorer doesn't work anymore and needs to restart
Its a windows 7 thing. I've had the same problem trying to transfer large mkvs to my home server. Some things to try:
in windows explorer, go to tools, folder options, view tab, first checkbox says "Always show icons, never thumbnails", check it
some have had success changing the file extension to jpg...
others have had to uninstall divx
MACBLACK91 said:
And I'm triing to load it over the Usb Cable
And the error is that it says well I have to translate it, it says that windows-explorer doesn't work anymore and needs to restart
Click to expand...
Click to collapse
Using USB you only have the option to save it to the SD card. This would mean you would need to format as NTFS to not run into the FAT32 file limit.
I would transfer this via wifi if you can save it to your internal storage; however, if you plan on doing this a lot you should save yourself the trouble and just properly format the SD CARD to NTFS.
fuzzer said:
Its a windows 7 thing. I've had the same problem trying to transfer large mkvs to my home server. Some things to try:
in windows explorer, go to tools, folder options, view tab, first checkbox says "Always show icons, never thumbnails", check it
some have had success changing the file extension to jpg...
others have had to uninstall divx
Click to expand...
Click to collapse
its working with the jpg method thank you very much
UmbraeSoulsbane said:
Using USB you only have the option to save it to the SD card. This would mean you would need to format as NTFS to not run into the FAT32 file limit.
I would transfer this via wifi if you can save it to your internal storage; however, if you plan on doing this a lot you should save yourself the trouble and just properly format the SD CARD to NTFS.
Click to expand...
Click to collapse
You can transfer files to the Internal Storage using USB. It would very very stupid if you can't.
UmbraeSoulsbane said:
Using USB you only have the option to save it to the SD card. This would mean you would need to format as NTFS to not run into the FAT32 file limit.
I would transfer this via wifi if you can save it to your internal storage; however, if you plan on doing this a lot you should save yourself the trouble and just properly format the SD CARD to NTFS.
Click to expand...
Click to collapse
Yes, but way more no. You are right, that it says sdcard on the prime. But that is just a case of really bad naming. When you go to the stock file manager on the prime you'll see that it distinguishes between "sdcard" and "removable" on the highest folder level. If you however access the "sdcard" folder you get to the internal storage.
As far as transfer speed goes nothing can beat the usb connection in my experience. My wifi (n standard) isn't even close to being as fast as the usb connection.

[Q] Using phone as a iso reader

Guys I searched in forums and I couldn't find a good thread (except mikob2d's thread)
You know when you disable usb debugging and then pluging usb cable and mount, Pc shows internal sd, external sd also a cdrom image. I know we can change internal external mounts but is there a way to change cdrom image? I've a ultrabook which hasn't got a optical drive, but it can mount sd cards also the cdrom image when I plugged my phone. I want to use my phone as a cdrom. If any developers interested, I want to help too.
Think about an app which selects iso files and then when you plug you phone via usb, pc saw phone's sd cards and also that chosen iso file as a cdrom.
Thank you for reading, I check my messages everyday.
You can mount isos to a virtual optical drive within Windows with various apps, I use Virtual CloneDrive:
http://www.slysoft.com/en/virtual-clonedrive.html
I'm not sure why you would want to do this from Android, seems like it would be more of a pain to have to transfer the iso file over.
Dude I know daemon methods but our phones can do this, And also you can't use Operating System based virtualization methods. Thus I need a external solution which can be a external optic drive but hey, our phones alredy does that. Just a little script can make the magic. also USB transfer speeds are low but sdcard transfer speeds are quite faster. Also this is a poweruser level request.
If I am right the cd image includes software drivers for the phone in that case you could find the file (which I am assuming is a image file) on the phone that it is using then replace it with a symlink to your cd image.
To figure out which file I would use a terminal to check the output of "lsof" when it is mounted on your computer to see possible filenames.
shadowofdarkness said:
If I am right the cd image includes software drivers for the phone in that case you could find the file (which I am assuming is a image file) on the phone that it is using then replace it with a symlink to your cd image.
To figure out which file I would use a terminal to check the output of "lsof" when it is mounted on your computer to see possible filenames.
Click to expand...
Click to collapse
That's what I'm saying. I can find it easily but I was thinking can I change the mount script. A little program which chooses the iso files from sdcard and mounts these isos instead of manifacturer's driver iso.

Cloning a USB mounted card as internal storage?

Hi,
If this has been asked before i apologies but i've searched, used google, and never really found the answer i'm looking for.
I have a nexus 7, OTG cable, flash drive and stickmount installed. As an external storage device this works fine for movies, audio etc.
I'm not experienced with android having only previously used it on my touchpad, and wondered if the following was possible.
Is there an app that can essentially clone the externally mounted USB drive so that when installing an app with a large data download i can choose to download the data to the externally mounted usb drive instead of the main device memory. An example, Spiderman has nearly 2GB of data and i would prefer to move it using an app rather than having to continuously move the data file from the root to the external USB using es file explorer.
Many thanks for the help
Doobdonk said:
Hi,
If this has been asked before i apologies but i've searched, used google, and never really found the answer i'm looking for.
I have a nexus 7, OTG cable, flash drive and stickmount installed. As an external storage device this works fine for movies, audio etc.
I'm not experienced with android having only previously used it on my touchpad, and wondered if the following was possible.
Is there an app that can essentially clone the externally mounted USB drive so that when installing an app with a large data download i can choose to download the data to the externally mounted usb drive instead of the main device memory. An example, Spiderman has nearly 2GB of data and i would prefer to move it using an app rather than having to continuously move the data file from the root to the external USB using es file explorer.
Click to expand...
Click to collapse
Hard Link feature of ext4 partition can help you.

NTFS Read/Write DOES work

Just for the heck of it I tried the Paragon NTFS/HFS download in the Play Store today to see if NTFS read/write would work. The app needs root, and of course we thankfully have that. I had a Seagate USB 3.0 drive formatted NTFS and connected it. Since Android auto mounts on the Mojo, it auto mounted as NTFS read only. I had to unmount it, and then re-mount it with the Paragon app and choose an alternate mount point (just created a folder called "NTFS" and mounted it) and I can confirm that I can read and write to the drive. Moving files, deleting files, and copying files all worked just fine. Just a heads up. I am sure there will be a better, more translucent way of doing this down the road, but for now there does exist the possibility. I wonder if anyone knows how to stop Android from auto mounting drives when plugged in?
I confirm that your method works, thanks!
Although I could have lived without the writing option enabled, it sure is nice being able to delete files I don't need on the fly.
I found that stock rom sucks in regards RW for external drives and doesnt allow it in exfat or NTFS the solution for me and others was installing CM12 rom instead of stock, now my drive has normal RW funtion without having to use an app to mount it
not I can use my 5TB drive

Speed up USB Disk Mount

I posted this on the Nexus7 pages, but I wonder if it might be better in a general android page .
I have a nexus 7 that i'm utilising in a car build.
It's running CM10.1 which I believe is based on 4.2.2, and Timurs custom Kernel.
I have a 175gb SSD dive, hooked up to a USB hub and OTG cable.
The SSD is recognised and mounts correctly on the Nexus via the kernel.
I'm looking to speed up the mount process.
When I connect the SSD, the led activity light on the SSD will start to blink rapidly, any media on the drive is inaccessible until the drive activity has ceased.
This process takes around 30 seconds or more.
The drive is formatted using exFat, with a single partition.
I've placed a number of .nomedia files inside the USBDISK folder, SDCARD folder, and in the root of the USB drive itself, but still mounting takes time.
Is there a way to speed up the mounting process.
Maybe moving the media folders inside a single folder, or some sort of file (like .nomedia) inside the folder structure to tell Android to not perform a file check and just mount it regardless.
Maybe a cache system.
The kernel is configured to have the drive in read only mode, so unless I manually add any files, then I have no need to scan for any file changes.
The drive could be in the car for months before I add any new media to it.
I noticed last night, when I connect the HDD to my Windows 7 PC, no such disk activity takes place.
The drive is mounted, and ready to access within seconds.
Thinking that the drive activity could be folder related, I created a new folder in the root named .files, and then moved all my data in to it.
However, the tablet is still performing some sort of laborious disk activity when the drive is connected.
This now has me thinking...
When a disk is mounted in Android, is it a real mount of a virtual one.
If it's a virtual one, then I guess the system needs to build the directory listing and populate this in a virtual folder ??
I guess no one else has experienced this, or I posted in the wrong forum, but i think i figured it out.
Just incase someone else has the same problem in the future, and in the vain hope that they stumble across this thread, I think it's only fair that I post my findings.
My SSD drive is formatted exFat for compatibilty between my PC, Tablet and S7 phone which is on Marshmallow.
I have 2 hard drives, I have a 2.5" SSD and a standard 2.5" Sata drive.
So something to experiment with.
I have 2 hard drives, I have a 2.5" SSD and a standard 2.5" Sata drive.
So something to experiment with.
Formatting the standard hard drive as NTFS and then copying a small number of my files on to it, i noticed that the mount time was instant, with hardly any drive activity.
All files are accessable.
It makes little sense, considering a standard mechanical drive is supposedly slower than SSD.
I then formatted it exFat, and copied roughly the same number of files, but now the mount time was about 5 seconds, with the drive light activity issue.
I reformatted my SSD as NTFS, copied my files back on to it, and the mount time is still almost instantaneous.
So it looks like whatever is causing the extended mount time is asscociated with exFat.
I've no idea why, so if anyone can explain, i'll be happy to learn.
somehow exfat formatted disk is checked for errors on android every time it mounts.

Categories

Resources