Mount Transformer to Linux Mint - automated.

Search This thread

foh1981

Senior Member
Aug 20, 2008
55
8
Örebro
I've got the Playlists directory showing up when mounted too (along with all the other folders), but can't find it on the device. I could however create a file in that directory, but it was automatically renamed to .m3u. It might be an implementation thing related to MTP, ie it always shows up when an MTP device is found and is handled in some special way?

I think the best bet is to see how it compares to Windows. If no files (except possibly the Playlist folder) shows up, I think it's safe to assume that the problem somehow relates to the encryption.
 

valsacar

Member
Dec 29, 2010
34
1
I'm getting "Could not display "/media/Transformer"

Error: Error stating file '/media/Transformer': Transport endpoint is not connected. Please select another viewer and try again.

Got the same thing with the script or the new udev rules.

Ubuntu 10.10 64b
 

foh1981

Senior Member
Aug 20, 2008
55
8
Örebro
Have you tried disconnecting and connecting a couple of times? (Rebooting ofcourse, both computer and pad possibly).

If it doesn't work, I would recommend clearing 51-android.rules and trying the commands in a terminal instead. Especially the mtpfs command is of interest. I guess you need to chmod /media/Transformer as well, 0666 or 0755 should do it.
 

foh1981

Senior Member
Aug 20, 2008
55
8
Örebro
I find it strange that typing the commands in a terminal doesn't give some sort of error message. Are you using the original ROM?
 

ritterkeks

Senior Member
Oct 20, 2007
51
0
now for a long time i didn't use mtp at all, haven't transferred any big files and for everything else I use dropbox.

BUT I now have done the step to Ubuntu Oneiric, with which I am overall very unhappy, yet there is no alternative in terms of usability for me...
I hope Mint comes to rescue and makes it better.

so, besides other quirky issues, I installed mtpfs and it is unable to mount the Transformer.
IF it is mounted, then there is nothing shown, besides the empty Playlist folder.
but in most cases, mtpfs fails and, in debug mode, shows a lot of errors...

anyone else here experiencing the same?
 

foh1981

Senior Member
Aug 20, 2008
55
8
Örebro
I have updated to Oneiric (fresh install) and it works for me. I installed mtpfs with apt-get and added the udev rules, and added myself to the fuse group. Worked after reloading udev rules (or rebooting).

The Users and Groups program in Ubuntu 11.10 is not as complete as in earlier Ubuntu versions, due to the transition to Gnome 3.x. So I used the CLI instead, "sudo adduser username fuse" if I remember correctly.
 

ritterkeks

Senior Member
Oct 20, 2007
51
0
You were right, I did forget to add myself to the fuse group,
the problems however did also happen when I sudid the commands,
so the group permission didn't help either.

Don't know why it would not work now with 11.10 for me, I did a fresh installation also.
Well I can still use sftp or smb, or Dropbox but without lansync, this would take some time.

Now if you would please update your signature, I could just copy it and place it in mine :D
 

akulik1990

New member
Aug 31, 2010
2
0
revert

Hello, you mentioned it is easy to revert

I though in the script it made back-up files. Could you please tell me how to restore those back-ups?)))I want to start from scrap))
 

chustazo

New member
Mar 20, 2012
2
0
Problem when trying to access

Hello guys,
I'm a newbie so, please, understand that maybe my questions are about something that "everybody should know".

I tried to use the TransformerMount2.7Z and, after executing the file within my terminal, it seems to mount the device (since it appears as an additional device in my computer). However, when trying to access it, the system prompts a message that says: "Unable to mount location. /bin/sh/: mtpfs: not found"

I did it with the Transformer connected and powered. What do you think the problem can be?

Thank you in advance for your help!!
 

deleuzer

New member
Jun 5, 2012
1
0
deleuzer.net
udev rules modification for debian wheezy

This is the content of /etc/udev/rules.d/51-android.rules:
Code:
ACTION=="add", SUBSYSTEM=="usb", ENV{ID_MODEL}=="MTP", ENV{ID_MODEL_ID}=="4e0f", MODE="0666", RUN+="/bin/bash -c 'mkdir -p /media/Transformer && mtpfs /media/Transformer -o allow_other'"
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_MODEL}=="MTP", ENV{ID_MODEL_ID}=="4e0f", RUN+="/bin/bash -c 'fusermount -u /media/Transformer && rmdir /media/Transformer'"

If you have other Android devices you may or may not have other lines here too. If so, just add these two lines to the end of the file.

For my Transformer B60 on Debian Wheezy, I had the problem that the ID_MODEL_ID was not registered by udev on add, but it was on remove. So I had to use this line in 51-android.rules for the add directive.

Code:
ACTION=="add", SUBSYSTEM=="usb", ENV{PRODUCT}=="b05/4e1f/9999", MODE="0666", RUN+="/bin/bash -c 'mkdir -p /media/Transformer && mtpfs /media/Transformer -o allow_other'"

I hadn't played much with udev before, so this post was great...many thanks!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Hey TF owners,

    For anyone looking for a way to mount their Transformer to Linux Mint, I wrote a script to automate the process of configuring your machine to allow you to browse/modify files on the tablet's SSD. This will probably also work on Ubuntu, but I have only so far tested it on Linux Mint.

    Download the attached file, and run it.

    Edit: Connect your Transformer to your PC before running.
    Edit 2: You only need to run this script once - not every time you connect the tablet to your PC.

    Hit the thanks button/comment if this worked for you. If not, also comment and I/someone will probably help you out. Also, if anyone tests it on Ubuntu successfully, be sure to comment and let people know.

    Note: All configuration files are backed up in the script before changes are made. You can always revert safely.

    I'll throw in the ever so popular "use at your own risk" for safe measure.

    Cheers.

    June 29: Updated script uploaded.
    -Cleaner
    -Removes an unnecessary comment pushed into fstab in the previous script
    -Already executable. Just run it. [Thanks MagnusRagnarok for the idea]
    -Packed in 7z from Linux Mint this time as opposed to in zip format from the TF, for [hopefully] universal accessibility.
    -md5sum 615f2bfa820ee9ac8ea2c967149a2f03 TransformerMount2.7z
    2
    Try This....

    anyone having issues try one of the following extensions.. tar.gz would be my first suggestion for those using ubuntu like myself. i also took the liberty of changing the perms to exe on the script before i compressed all these so now all you need to do is

    1.download the extension pack i upped
    (find the one that works for you)
    2.open file
    3.execute

    *i also tossed the edited script in the pack for anyone who cannot get it to open.

    fyi; ark also worked for me to access the file from the op, while my 7z kept erroring out.
    2
    These are instructions for automatically mounting and unmounting your pad (not keyboard!). This will create (when plugged in and detected) and remove (when unplugged) the Transformer directory under /media, so that the experience is more in line with other USB devices.

    For those of you who already have run the script in the first post, you need to do some cleanup. Edit /etc/fstab and /etc/udev/rules.d/51-android.rules and remove the lines which the script created. Which lines in fstab should be straight forward, and in 51-android.rules look for rows that either have no idVendor set or has it set to 0b05. If unsure, post here FIRST before making changes!

    This is the content of /etc/udev/rules.d/51-android.rules:
    Code:
    ACTION=="add", SUBSYSTEM=="usb", ENV{ID_MODEL}=="MTP", ENV{ID_MODEL_ID}=="4e0f", MODE="0666", RUN+="/bin/bash -c 'mkdir -p /media/Transformer && mtpfs /media/Transformer -o allow_other'"
    ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_MODEL}=="MTP", ENV{ID_MODEL_ID}=="4e0f", RUN+="/bin/bash -c 'fusermount -u /media/Transformer && rmdir /media/Transformer'"

    If you have other Android devices you may or may not have other lines here too. If so, just add these two lines to the end of the file. My Transformer is bought in Sweden so if things don't work for you, maybe there's another idProduct/ID_MODEL_ID out there? Check with lsusb when your pad is plugged in, the vendor (xxxx) and product (yyyy) ID is [xxxx:yyyy] on the line that says ASUSTek Computer Inc. For my pad, the productID/ID_MODEL_ID is 4e0f.

    You need to uncomment allow_other in /etc/fuse.conf and add your user to the fuse group (preferably via Users and Groups) apart from adding the above two lines to your 51-android.rules:

    • Start Users and Groups, choose your user and press Advanced settings. Under the tab User Privileges you should mark Mount user-space filesystems (FUSE).
    • Open and edit /etc/fuse.conf (see below on how to use nano). Uncomment user_allow_other in the end (remove the # at the beginning of the line).

    After this you should reboot your computer. This will have two effects: The udev rules will be reloaded so the changes apply, and your user will have the necessary privileges granted.

    Now you can try to plug in your pad and see if it shows up under /media. Give it some time, it takes a while. (Approx. 30 seconds for me.)

    A note on editing files from the terminal window
    When editing files from the terminal I always use nano. The command is (if opening a file that requires super user rights):
    sudo nano [path-to-file]
    The editing is straightforward, works just like any other text editor. When you're finished, press Ctrl+X (Exit) and answer the question with Y (if your system is in english that is) if you want to overwrite the earlier file.

    Problems?
    If you have ADB activated you could try rmbell's udev rules. This removes the match ID_MODEL == MTP and changes the productID to 4e1f. The productID changes depending on what functions are activated, as discussed in this post by ritterkeks. If you want the pad to be mounted with and without ADB activated, you can add all four rules.

    If the udev rules doesn't work, run this command in the terminal and see what happens when you plug the pad in:
    udevadm monitor --property --udev
    Exit with Ctrl+C. Are the values the same as in the udev rules you're using? If not, change accordingly or deactivate some function which has made the productID change.
    1
    ok so maybe a stupid question, but does my tf need to be rooted to try this? also if you can create an automated script to install a linux distro you think it would be possible for you to create a script to root?? btw any idea on what actually works? can the tegra 2 run with compiz??

    I thin you've misunderstood the intention of the OP.

    It was to be able to mount your Transformer under Linux and be able to read/write the files stored on the Transformer's internal storage. Not to actually install a full blown Linux Distro on your Transformer.
    1
    I have a problem extracting the zip file with Ubuntu 10.10
    Do I need an alternate unzip program? If so please specify. I do not run MS products.

    Error:
    7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30
    p7zip Version 9.04 (locale=en_CA.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)

    Processing archive: /tmp/TransformerMount.zip

    Extracting TransformerMount.bash Unsupported Method

    Sub items Errors: 1

    Had the same issue with Archive manager - Xarchiver worked, however.