HTC Android device mounted as USB drive is read-only unless I'm root
Posted
by
Ian Dickinson
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Ian Dickinson
Published on 2011-11-19T20:20:16Z
Indexed on
2011/11/22
2:11 UTC
Read the original article
Hit count: 310
When I connect my HTC Incredible S to my Ubuntu 10.10 system as a USB drive, the device seems to mount OK, but is read-only unless I access it as root. For example, if I run nautilus
, I can't drag and drop files to the SD-card in the phone, but if I run sudo nautilus
I can.
I have USB debug support set on the phone (Applications > Development > USB debugging
) and I have added a rule for the device in /etc/udev/rules.d/51-android.rules
on my Ubuntu system. Any suggestions as to how I can mount the drive so that I can copy content to the SD card without needing to sudo?
Update
Following advice from waltinator, I added the following line to my /etc/fstab
:
UUID=3537-3834 /media/usb1 vfat rw,user,noexec,nodev,nosuid,noauto
However, the Android device is still being auto-mounted on /media/usb1 with uid and gid root.
Update 2
syslog output:
Nov 21 23:38:40 rowan-15 usbmount[4352]: executing command: mount -tvfat -osync,noexec,nodev,noatime,nodiratime /dev/sdd1 /media/usb1
Nov 21 23:38:40 rowan-15 usbmount[4352]: executing command: run-parts /etc/usbmount/mount.d
© Ask Ubuntu or respective owner