Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a computer running Mythbuntu 11.04, and it has Banshee 2.0 installed on it. I also have an Android phone that I use as a music player.

I want to get Banshee and Android talking to each other so that I can synchronize my playlists and all that good stuff.

Here's the thing... my Mythbuntu machine is hidden away under a desk, where it acts as a sort of file and media server. It has a screen and remote control attached for watching videos, but no keyboard or mouse.

When I want to use Banshee, I access it from one of my other two machines via this SSH command: ssh -X mythbuntu@ banshee

So far, so good.

Now, I plug in my Android device to a USB port on the Mythbuntu machine, then open up Banshee via SSH on one of my other computers. The Android device does not appear in the Banshee interface.

For a long time I thought I was missing some driver or something, but after some experimentation, I discovered that if I open up Banshee on the computer itself (in other words, I plug in a keyboard and mouse and test out accessing it directly), then the Android device is automagically detected and everything works as expected.

So... the problem seems to be that for some reason, when I am running Banshee from an SSH connection, it can not see the Android device.

But that confuses me... why should the SSH connection matter? Is it that the SSH user is a different user from the one when I log into the machine directly (I use the same user name and password)?

More importantly, is there a way I can convince Banshee that when I open it via SSH and plug in the Android device that it should talk to the Android the same way it talks to Android when I am sitting at the computer itself?

I hope I've explained the situation clearly.

Any advice would be greatly appreciated.

share|improve this question
up vote 4 down vote accepted

Why you don't see it

Mounting file systems is a privileged operation on Unix systems. The udisks daemon is used to provide a way for non-privileged users to mount volumes (such as the USB Mass Storage service offered by your phone), but will only allow active sessions to perform the operation.

When you are logged on at the console and haven't locked the screen, you are considered to have an active session. When you ssh into the system, this is not the case. The idea is to only let someone with physical access to the system mount removable devices.

If you mount the phone manually, your music player should be able to access the files on it.

How to find it

  1. Run dmesg and look for your device. It should show up as something like /dev/sdb2. "sd" for scsi disk (scsi instructions are standard for disks now), a letter for the disk (a, b, c, etc), and a number for the partition.

  2. Or run sudo fdisk -l to get a list of your disks and partitions. You'll see it here somewhere.

Mount it manually

Once you find the device path (eg, /dev/sdb2), mount it with this command:

mount /dev/sdb2 /mnt

If you want, make a folder and mount it there instead:

mkdir ~/android
mount /dev/sdb2 ~/android
share|improve this answer
Thank you for the explanation, but I'm a little confused by what you mean by "mount the phone manually". You mean I can issue a mount command that will make the Android available while in an SSH session? I'm a GUI guy... any chance you could give me some guidance on what that command might be? – Questioner Jun 1 '11 at 9:55
@Dave M G I edited in more instructions. Hope it helps. – djeikyb Aug 8 '11 at 12:03
Thank you for clarifying. I can now successfully mount the drive via SSH, and view it like any other directory. However, Banshee still does not automount it or view it as a removable media player. Is there a way to force Banshee to see a directory as a media device? – Questioner Aug 9 '11 at 3:26
Sorry... something isn't quite right. I can only mount the drive using "sudo", and then I can't create or remove files as a regular user. This also might be preventing Banshee from doing anything with it. How do I mount the drive in such a way that the logged in user can edit/create/delete files? – Questioner Aug 9 '11 at 3:33
instead of 'mount' may you can use 'pmount' for unprivileged users see – Boris Jan 15 '12 at 10:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.