Friday 19 June 2015

Textual Representation of logo

How To Enable Mass Storage on YU

This document describes how to connect mobile phones (like Yuphoria,Yureka), which are based on Cyanogenmod OS as Mass Storage/MTP in Linux.

This is a solution for ticket : https://jira.cyanogenmod.org/browse/YU-4This post will enable you to mount your device sd card and internal storage on PC .

STEP 1

Firstly we're going to need to install some of the common MTP apps that will be needed. Open up a terminal and type the following two lines one after the other.
sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9
sudo apt-get dist-upgrade
STEP 2

Then we're going to amend the fuse.conf file. At the terminal type
sudo nano /etc/fuse.conf
We want to remove the # from the below line of code for user_allow_other, like so...
#/etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)

#Set the maximum number of FUSE mounts allowed to non-root users.
#The default is 1000.
#mount_max = 1000

# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other

Now save the file by pressing Ctrl+x, press Y and then Enter.


STEP 3

We now need to set up some rules for our device that we plan on connecting, but before we do that we need to find out.

Connect your device via an available usb port and from terminal enter
lsusb
This should bring up an output similar to the following

usermac44@usermac44:~/workspace/ps$ lsusb 
Bus 002 Device 004: ID 17ef:6019 Lenovo  
Bus 002 Device 003: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard 
Bus 002 Device 003: ID 0fce:01b1 Yuphoria Inc.  
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

You need to look for your device, in this instance my Yuphoria in the list, the vendor id is 0fce and product id is 01b1 .


STEP 4

We're then going to amend the mtp udev rules as follows, from a terminal type :
sudo nano /lib/udev/rules.d/69-mtp.rules
# Yuphoria YU5010
ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
Once done, save the file.


STEP 5

The next step would also be to add a line of code to the 51 android rules file, again from a terminal type
sudo nano /etc/udev/rules.d/51-android.rules
ATTR{idVendor}=="0fce", ATTR{idProduct}=="01b1", MODE=”0666"
put your device product id and vendor id here .

Once that is done and the file is saved, remove any usb device currently connected and issue the following commands to reboot the system.
sudo service udev restart
sudo reboot
Enjoy Using Mass Storage in Yureka/Yuphoria (Cyanogen) Mobile Phones.


Post Comment , if any better solutions found