Created
December 1, 2013 17:45
-
-
Save yantonov/7738224 to your computer and use it in GitHub Desktop.
how to mount android as media device on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HOW TO mount android as media device on ubuntu | |
# Step 1: | |
# Enable Developer options and enable USB debugging mode. | |
# Setting > About phone > Start tapping (7 times) | |
# on Build number option 'you are now developer' | |
# Then go to Setting > Developer options > Enable USB Debugging | |
# mount nexus 4 | |
# Step 2: | |
# Install MTP modules open terminal (Press Ctrl+Alt+T) | |
# and copy the following commands in the Terminal: | |
# Terminal Commands: | |
sudo apt-get install mtp-tools mtpfs | |
# Step 3: | |
# Configure 51-android.rules, | |
# Enter following command to open/create file in text editor: | |
# Terminal Command: | |
# sudo gedit /etc/udev/rules.d/51-android.rules | |
# Now paste following code at the end of text file: | |
# LG – Nexus 4 | |
# SUBSYSTEM=="usb", ATTR{idVendor}=="1004?, MODE="0666? | |
# Step 4: | |
# Make file executable and restart udev service, | |
# Enter following commands in terminal: | |
# Terminal Commands: | |
sudo chmod +x /etc/udev/rules.d/51-android.rules | |
sudo service udev restart | |
# Step 5: | |
# Create mount point for device and setup permissions with these commands: | |
# Terminal Commands: | |
sudo mkdir /media/nexus4 | |
sudo chmod 755 /media/nexus4 | |
# Step 6: | |
# Now Enable MTP on your Nexus 4 device then plugin your device to computer. | |
# Go to Setting > Device Category > Storage | |
# > USB Computer Connection > Enable Media Device (MTP) | |
# mount nexus 4 | |
# Step 7: | |
# Now enter following command in terminal to detect MTP device. | |
# Terminal Command: | |
mtp-detect | |
# Step 8: | |
# At this point you allow Ubuntu to access/mount device | |
# (You need following command every time when you connect your device to computer): | |
# Terminal Command: | |
sudo mtpfs -o allow_other /media/nexus4 | |
# Step 9: | |
# To unmount the nexus 4 device enter following command | |
# (You need following command whenever you need to disconnect your device from computer): | |
# Terminal Command: | |
sudo umount /media/nexus4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment