Page 1 of 1

Promlems copying to SD Card on Xoom

Posted: 2012-02-26, 21:32 UTC
by Yuccaman
I have a Xoom, rooted running the standard ICS build.

I am able to mount the external SD Card as Read/Write but TC cannot write any files to the card... Another program, FileManager HD can though, although I much prefer TC...

secondly, when clicking the copy/move button, when the dialogue box pops up, so does the keyboard. This does nor happen when using TC on my phone....

Cheers,

Posted: 2012-02-27, 15:05 UTC
by ghisler(Author)
Do you have the option "root functions everywhere" checked? If yes, try to uncheck it.

Posted: 2012-02-27, 15:58 UTC
by Yuccaman
That option wasn't checked....

Have checked it and tried and then unchecked it and tried but the same result.....

Posted: 2012-02-27, 15:59 UTC
by ghisler(Author)
Sorry, I have no more ideas. I'm using the normal Java functions to copy files anywhere in the file system.

Posted: 2012-02-27, 18:21 UTC
by Yuccaman
Ok, no probs....

I did some more experimentation with a couple of other FileManagers from the market.

ES File Explorer worked fine, Ghost Commander did not.

I found a post on a forum saying that FileManager HD borrowed some code from a paid app written expressly for the Xoom.

I know the mounting of the SD Card as Read / Write though TC is working as if I mount as Read Only, then FileManager HD cannot write to the card.

I will settle on A.N.Other tool for the occasions I want to copy to External SD and use TC for everything else.

Many thanks for writing such an excellent program !!!!

Posted: 2012-02-28, 09:39 UTC
by ghisler(Author)
I don't see why the SD-Card should be mounted as read only, but you can check that easily: In Total Commander, click on the button with the green plus sign to add a new button. Choose "Internal Command", then click on >> to choose command Nr. 119.

Now go to the SD card. If the button displays "R", the card is read only. If it displays "RW", it's read/write. Try to click on the button to remout it as read/write. If it's read only.

Posted: 2012-02-29, 19:11 UTC
by Yuccaman
On the US Xoom, the SD Card has always been Read Only in the standard builds (God know why !!!!).

I had already defined the button in TC to remount as Read Write and the SD card shows RW on that button....

The Remount is working as if I mount as Read Only, the other programs that can write to it then cannot :)

I've asked on xda if any other Xoom users have the same as I reckon there is something up at my end....

Cheers,

Posted: 2012-02-29, 20:34 UTC
by ghisler(Author)
You mean that when the button shows RW, the other program cannot write, and when it shows R, the other program can?

Posted: 2012-03-01, 21:39 UTC
by Yuccaman
Bad english....

When SD card shows as R, then neither program will write to the card.

When SD card shows as RW, the other program can then write to it...

Sadly, no reply to my question on XDA yet...

Posted: 2012-03-02, 10:22 UTC
by ghisler(Author)
When SD card shows as RW, the other program can then write to it...
I see - and Total Commander can't write even when it's RW? That's very odd. Do you get any error message?

Posted: 2012-03-02, 19:40 UTC
by Yuccaman
Nope, Remount button is showing as RW and if I try to copy, I get:

Write Error

Error writing to target file!
/mnt/external1/bookmarks.html!

In Xoom world, /mnt/sdcard is the Internal Storage and /mnt/external1 is the SD Card.....

Not sure if this helps - probably makes it even more weird :)

I can delete files with TC from the SD Card. I get the small info message from Superuser about "Total Commander being granted Superuser permissions" and the file vanishes.

Nothing like that pops up when I try to copy though, just the error message....

Posted: 2012-03-05, 13:51 UTC
by ghisler(Author)
I can delete files with TC from the SD Card. I get the small info message from Superuser about "Total Commander being granted Superuser permissions" and the file vanishes.
I see - so your device IS rooted, and TC is using the root functions to delete the files!

It's strange that copying fails, though. TC is using the function "cp" to copy files. I have looked at the source of FileManager HD, and it seems that it used the function "dd" to copy instead of "cp".

Could you try this in Total Commander too, please? You can test it like this:
1. Click on the button with the green plus sign to add a new command
2. As command type, choose shell command
3. As command, write: su
4. As parameters, write:
*dd if=%P%N of=%T%N bs=64k

The * at the beginning forces Total Commander to show the results as a dialog instead of a short message.

Now select a file in the internal memory while the other panel shows the external SD card, and press the button to copy it. You will need to press the green reload button to see the results.

Posted: 2012-03-05, 18:45 UTC
by Yuccaman
Yep, that works fine.....

Get the pop-up for TC being granted superuser permissions. and then the dialogue shows:

7692+1 records in
7692+1 records out
509577 bytes transferred in 0.114 secs (4469973 bytes/sec)

After the refresh, the files are on the SD Card. Copied any single file ranging from an 80k HTML file to a 41mb Game Data file.

Posted: 2012-03-06, 08:07 UTC
by ghisler(Author)
That's interesting, I wonder why the "cp" command doesn't work?!

Could you test this for me too, please? I could then detect that specific error, and retry with "dd".

You can test it like this:
1. Click on the button with the green plus sign to add a new command
2. As command type, choose shell command
3. As command, write: su
4. As parameters, write:
*cp P%N %T%N

Now try again to copy a file by checking it and pressing this button.

Thanks!

Posted: 2012-03-06, 08:43 UTC
by Yuccaman
I get this message:

sh: <stdin>[2]: cp: not found