LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-14-2018, 11:37 PM   #1
john2x
LQ Newbie
 
Registered: Jul 2018
Posts: 7

Rep: Reputation: Disabled
Android device (OnePlus 5) not showing in /dev/sdX


I'm running Slackware 14.2 (kernel 4.4.132) and I'm trying to copy some files to my OnePlus 5 Android device.

So I plug in the USB cable and switch the phone to "USB Transfer files" mode.

The phone does show up in dmesg as shown below:

Code:
[ 6241.132007] usb 1-1: USB disconnect, device number 14
[ 6241.486275] usb 1-1: new high-speed USB device number 15 using xhci_hcd
[ 6241.651752] usb 1-1: New USB device found, idVendor=2a70, idProduct=f003
[ 6241.651761] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6241.651766] usb 1-1: Product: OnePlus
[ 6241.651771] usb 1-1: Manufacturer: OnePlus
[ 6241.651775] usb 1-1: SerialNumber: 1d8a05bd
[ 6241.862309] usb-storage 1-1:1.1: USB Mass Storage device detected
[ 6241.862466] scsi host17: usb-storage 1-1:1.1
[ 6242.864311] scsi 17:0:0:0: CD-ROM            OnePlus  Device Driver    0404 PQ: 0 ANSI: 2
[ 6242.866850] sr 17:0:0:0: [sr0] scsi-1 drive
[ 6242.867308] sr 17:0:0:0: Attached scsi CD-ROM sr0
[ 6272.603108] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 6272.614630] ISOFS: changing to secondary root
And in lsusb the product and device id does get listed, but it is not named (2nd item from the bottom):
Code:
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 005: ID 04f2:b2ea Chicony Electronics Co., Ltd Integrated Camera [ThinkPad]
Bus 003 Device 007: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
Bus 003 Device 006: ID 5332:1400
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0853:0100 Topre Corporation HHKB Professional
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 015: ID 2a70:f003
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
But it does not show up as a device in /dev/sdX.

I'm also able to mount the CD-ROM device /dev/sr0 as listed in the dmesg output (it contains some executables for macOS and Windows from OnePlus).
 
Old 07-15-2018, 02:59 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Try this :

In /etc/udev/rules.d, create a file 51-one-plus-5.rules with the rule below :
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="2a70",ATTRS{idProduct}=="f003", MODE="0660", GROUP="plugdev"
Attention, you must be member of group plugdev to access your device.


--
SeB
 
Old 07-15-2018, 03:15 AM   #3
john2x
LQ Newbie
 
Registered: Jul 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks. I did try that (found a similar thread), but it didn't work for me.

I'm already a member of the plugdev group and I've tried rebooting after adding the udev rule.

Could it be the fact that I had to manually switch the phone to "USB Transfer files" mode after it is plugged in?
 
Old 07-15-2018, 03:32 AM   #4
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Have you tried in MTP mode ? This might requires to enable developer options or something like that.

--
SeB
 
1 members found this post helpful.
Old 07-15-2018, 03:36 AM   #5
john2x
LQ Newbie
 
Registered: Jul 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ah that was it. Turns out that you're not supposed to be able to mount the storage like a normal USB flash drive. I installed jmtpfs and am able to copy files now. (mtpfs didn't work)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Android 8.1 Oreo Is Finally Rolling Out to OnePlus 5T and OnePlus 5 Owners LXer Syndicated Linux News 0 04-18-2018 12:02 AM
How to map a device with VID/PID with mounted path /dev/sdx? krishnamoorthy Linux - Newbie 1 03-23-2015 10:27 AM
How to map a device with VID/PID with mounted path /dev/sdx? krishnamoorthy Linux - Software 1 03-23-2015 08:43 AM
Lock different external drives to a set device name ? (/dev/sdX) Dark Carnival Linux - Hardware 5 10-20-2006 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration