Where is My Device Mounted?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Cocolate
Level 1
Level 1
Posts: 23
Joined: Mon Jul 29, 2013 12:48 am

Where is My Device Mounted?

Post by Cocolate » Fri Mar 27, 2015 11:20 pm

My question is: where can I find

where is my android device mounted at on my OS?

It isnt showing up in Gparted, fdisk, and Im not exactly sure where to look in dmesg

I have no problem mounting my Android device.

Im looking for where it is mounted in dev/sd*

User avatar
SleeperService
Level 3
Level 3
Posts: 102
Joined: Fri Mar 20, 2015 12:06 pm

Re: Where is My Device Mounted?

Post by SleeperService » Sat Mar 28, 2015 12:41 am

Since new Android devices connect using Media Transfer Protocol (MTP, as opposed to USB mass storage) which has native support in the newer version of Mint, it should be mounting in

Code: Select all

/run/user/[uid]/gvfs
where uid=your numerical user id.
Think Penguin Korora, i5-4200U, Intel HD 4400, 4gb DDR3, Crucial MX100 SSD, Mint 17.2 Cinnamon 64-bit

Cocolate
Level 1
Level 1
Posts: 23
Joined: Mon Jul 29, 2013 12:48 am

Re: Where is My Device Mounted?

Post by Cocolate » Sat Mar 28, 2015 1:23 am

Whenever I run that command this is my output

Code: Select all

bash: /run/user/candi/gvfs/: No such file or directory
Ive tried variations such as preceding with sudo and replacing the uid with $USER same error.


I thought installing mtpfs would fix the issue but it did nothing for me.

http://www.webupd8.org/2012/12/how-to-m ... mtpfs.html

User avatar
wallaroo
Level 3
Level 3
Posts: 122
Joined: Thu Feb 09, 2012 3:42 am

Re: Where is My Device Mounted?

Post by wallaroo » Sat Mar 28, 2015 2:03 am

What SleeperService was saying is that '/run/user/[uid]/gvfs' is the likely directory where your device has been mounted.

You can check what [uid] you are by looking in file /etc/passwd and read the number against the entry for your user name.

For example if your [uid] turns out to be '1000' then go to directory '/run/user/1000/gvfs' and you should see your device.

Cocolate
Level 1
Level 1
Posts: 23
Joined: Mon Jul 29, 2013 12:48 am

Re: Where is My Device Mounted?

Post by Cocolate » Sat Mar 28, 2015 2:07 am

O I see ok yes it is ah yes, the GUI

Still though, this does not produce me with the location of ....

where is the device mounted sda? sdb? sdc? sde? etc

I did find the file in nautilus thank you for clarifying.

User avatar
wallaroo
Level 3
Level 3
Posts: 122
Joined: Thu Feb 09, 2012 3:42 am

Re: Where is My Device Mounted?

Post by wallaroo » Sat Mar 28, 2015 2:18 am

That's because the device ids (sda, sdb etc) only apply to devices directly connected to the PC, not devices connected remotely across a network.

Cocolate
Level 1
Level 1
Posts: 23
Joined: Mon Jul 29, 2013 12:48 am

Re: Where is My Device Mounted?

Post by Cocolate » Sat Mar 28, 2015 2:27 am

So if I deleted an important 40min long video today off my phone by accident - using this tutorial Im shown to run the device mounted at the location at 1:33

https://youtu.be/raa9-LT7fC0?t=1m33s

Which is dev/sdb1

Would you think the device will be the file name of the location inside of gvfs?

**that location fails**

User avatar
SleeperService
Level 3
Level 3
Posts: 102
Joined: Fri Mar 20, 2015 12:06 pm

Re: Where is My Device Mounted?

Post by SleeperService » Sat Mar 28, 2015 3:08 am

Enter this command into the terminal

Code: Select all

id
You'll get an output such as this:

Code: Select all

uid=1000(devinnull) gid=1000(devinnull) groups=1000(devinnull),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),110(sambashare)
Note the number next to "uid".

Then type

Code: Select all

cd /run/user/(the number next to uid)/gvfs
Then type

Code: Select all

ls
If something shows up, that's probably your phone's mount point. The reason /dev/sdb1 is shown in the video is most likely because that computer is mounting the phone as USB mass storage, which is not the protocol more current Android phones use to mount on Linux systems, MTP is used instead, which mounts to the gvfs directory (or so I've read...). Also, make sure your phone's usb port is set to allow file transfers over the connection using MTP.
Think Penguin Korora, i5-4200U, Intel HD 4400, 4gb DDR3, Crucial MX100 SSD, Mint 17.2 Cinnamon 64-bit

Cocolate
Level 1
Level 1
Posts: 23
Joined: Mon Jul 29, 2013 12:48 am

Re: Where is My Device Mounted?

Post by Cocolate » Sat Mar 28, 2015 4:41 am

rainbows ya you got it man it was in the MTP

I just had to switch my USB option from MTP to SD Card and it showed up in fdisk. Thanks a gajillion.

Post Reply

Return to “Newbie Questions”