Re: how to mount phone?

2020-07-15 Thread Stuart Longland
On 15/7/20 1:11 am, Peter Nicolai Mathias Hansteen wrote:
> I believe I have at some point managed to mount a phone as storage, but not 
> recently.

I think the issue is that for it to expose the block device to the USB
host, it must first unmount it from the device (otherwise hilarity
ensues as the two OS kernels stomp on one another writing to it).  If an
application on the phone has a file on that block device open, it can't
unmount it.

Rather than battle that, they've gone the "file sharing" route, using
Media Transfer Protocol.  Kinda sucky compared to NFS or CIFS (or better
yet, rsync/ssh, scp or sftp), but it's what we have to work with.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

Help fund COVID-19 research:
https://stuartl.longlandclan.id.au/blog/2020/04/20/who-covid19/



Re: how to mount phone?

2020-07-15 Thread Manuel Solis
Hello,

If you have an Android phone, you could install the app "termux"

Within the app you could "pkg add rsync" and then you could share all the stuff 
you want in a wireless, and fancy, way.

I think there is a similar termux app in iphone too.

Best regards

⁣Get BlueMail for Android ​

On Jul 13, 2020, 16:51, at 16:51, Justin Muir  wrote:
>Hi,
>
>Just wishing to mount my phone to access photos.
>
>Here's the output from dmesg:
>
>ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
>
>Any ideas on how this might be mounted??
>
>
>tia!


phone syncing [was: Re: how to mount phone?]

2020-07-15 Thread Marcus MERIGHI
pe...@bsdly.net (Peter Nicolai Mathias Hansteen), 2020.07.14 (Tue) 17:11 (CEST):
> > 13. jul. 2020 kl. 23:39 skrev Justin Muir :
> > Just wishing to mount my phone to access photos.
>
> I believe I have at some point managed to mount a phone as storage,
> but not recently.
> 
> What usually works better is to install an sftp client (I use AndFTP
> in sftp mode) on the phone and use that to transfer the pictures to
> your machine.

now that this thread turns to general phone syncing: syncthing
(in ports/packages) works very well for me, unless you want sycthing to
have write access to all of your sdcard in the phone. on my
lineagos17/android10 phone, syncthing only gets read-only access to the
sdcard, apart from its app-folder. other than that: start syncthing on
both ends, wait, have files on both ends reliably synced. 
(i am not affiliated, btw.)

Marcus



Re: how to mount phone?

2020-07-15 Thread Roderick



On Tue, 14 Jul 2020, Peter Nicolai Mathias Hansteen wrote:


What usually works better is to install an sftp client (I use AndFTP
in sftp mode) on the phone and use that to transfer the pictures to your 
machine.


No, no! Better the server on the phone, as I wrote before.

Do you get why? :)

Rod.



Re: how to mount phone?

2020-07-15 Thread David Demelier

Le 13/07/2020 à 23:39, Justin Muir a écrit :

Hi,

Just wishing to mount my phone to access photos.


Hello,

There is Airdroid application on Android phones that could be 
interesting. It's an application that acts as a server and that you 
could access from any computer/any os. You simply need to open a web 
browser and access its IP. Then you have full access to photos, music, 
contacts, messages, etc.


HTH,

--
David



Re: how to mount phone?

2020-07-14 Thread prx
simple-mtpfs works fine for me : 
 https://www.romanzolotarev.com/openbsd/mtp.html


Le 14 juillet 2020 17:11:04 GMT+02:00, Peter Nicolai Mathias Hansteen 
 a écrit :
>
>
>> 13. jul. 2020 kl. 23:39 skrev Justin Muir :
>> 
>> Hi,
>> 
>> Just wishing to mount my phone to access photos.
>> 
>> Here's the output from dmesg:
>> 
>> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr
>2
>> 
>> Any ideas on how this might be mounted??
>
>
>I believe I have at some point managed to mount a phone as storage, but
>not recently.
>
>What usually works better is to install an sftp client (I use AndFTP in
>sftp mode) on the phone and use that to transfer the pictures to your
>machine.
>
>All the best,
>
>—
>Peter N. M. Hansteen, member of the first RFC 1149 implementation team
>http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
>"Remember to set the evil bit on all malicious network traffic"
>delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: how to mount phone?

2020-07-14 Thread Peter Nicolai Mathias Hansteen


> 13. jul. 2020 kl. 23:39 skrev Justin Muir :
> 
> Hi,
> 
> Just wishing to mount my phone to access photos.
> 
> Here's the output from dmesg:
> 
> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
> 
> Any ideas on how this might be mounted??


I believe I have at some point managed to mount a phone as storage, but not 
recently.

What usually works better is to install an sftp client (I use AndFTP in sftp 
mode) on the phone and use that to transfer the pictures to your machine.

All the best,

—
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.






signature.asc
Description: Message signed with OpenPGP


Re: how to mount phone?

2020-07-14 Thread myml...@gmx.com

On 7/14/20 2:46 AM, Antal Ispanovity wrote:

On Mon, Jul 13, 2020 at 2:57 PM Justin Muir 
wrote:


Hi,

Just wishing to mount my phone to access photos.

Here's the output from dmesg:

ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2

Any ideas on how this might be mounted??


I use the simple-mtpfs package.




tia!








As Antel suggested, simple-mtpfs, in packages, is a very easy way to
actually mount your phone so it can be browsed like any other type of
storage device.

I haven't used android 7 for a long time and never this phone, so I
don't know the procedure, but you will need to set the usb mode to file
transfer instead of charging only or whatever options may be there.

doas simple-mtpfs -o allow_other --device 1 /mnt/phone/



Re: how to mount phone?

2020-07-14 Thread Roderick



The easiest way I know is to install in the phone:

https://play.google.com/store/apps/details?id=org.galexander.sshd

and use the WLAN hotspot to transfer files with scp / sftp / rsync.

Rod.



On Mon, 13 Jul 2020, Justin Muir wrote:


Hi,

Just wishing to mount my phone to access photos.

Here's the output from dmesg:

ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2

Any ideas on how this might be mounted??


tia!





Re: how to mount phone?

2020-07-14 Thread infoomatic
also: you can use the app termux if you want some nice terminal programs
... I rsync all my files from my phone to my computer.


On 14.07.20 13:11, Abel Abraham Camarillo Ojeda wrote:
> On Tue, Jul 14, 2020 at 5:07 AM Jan Stary  wrote:
>
>> On Jul 13 14:39:35, justinkm...@gmail.com wrote:
>>> Just wishing to mount my phone to access photos.
>>> Here's the output from dmesg:
>>> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
>>> Any ideas on how this might be mounted??
>> I believe phone OSes go out of their way to _not_ expose
>> the storage as an umass. You need a dedicated app to do
>> things as fundamental as copying a file.
>>
>>
> I think you can use adb (in packages) to copy more "easily"
> (without installing third-party apps on phone):
>
> https://developer.android.com/studio/command-line/adb#copyfiles



Re: how to mount phone?

2020-07-14 Thread Greg Thomas
Well, damn, I'm sorry, I guess I got myself confused.  I could have sworn I
used my phone to transfer a file when I couldn't find a thumbdrive but I
only get cd0 with some drivers and an adb script.

umass0 at uhub3 port 2 configuration 1 interface 1 "OnePlus OnePlus" rev
2.10/4.09 addr 6
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
cd0 at scsibus4 targ 1 lun 0:  removable
ugen2 at uhub3 port 2 configuration 1 "OnePlus OnePlus" rev 2.10/4.09 addr 6


On Tue, Jul 14, 2020 at 4:15 AM Abel Abraham Camarillo Ojeda <
acam...@verlet.org> wrote:

> On Tue, Jul 14, 2020 at 5:07 AM Jan Stary  wrote:
>
> > On Jul 13 14:39:35, justinkm...@gmail.com wrote:
> > > Just wishing to mount my phone to access photos.
> > > Here's the output from dmesg:
> > > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
> > > Any ideas on how this might be mounted??
> >
> > I believe phone OSes go out of their way to _not_ expose
> > the storage as an umass. You need a dedicated app to do
> > things as fundamental as copying a file.
> >
> >
> I think you can use adb (in packages) to copy more "easily"
> (without installing third-party apps on phone):
>
> https://developer.android.com/studio/command-line/adb#copyfiles
>


Re: how to mount phone?

2020-07-14 Thread Abel Abraham Camarillo Ojeda
On Tue, Jul 14, 2020 at 5:07 AM Jan Stary  wrote:

> On Jul 13 14:39:35, justinkm...@gmail.com wrote:
> > Just wishing to mount my phone to access photos.
> > Here's the output from dmesg:
> > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
> > Any ideas on how this might be mounted??
>
> I believe phone OSes go out of their way to _not_ expose
> the storage as an umass. You need a dedicated app to do
> things as fundamental as copying a file.
>
>
I think you can use adb (in packages) to copy more "easily"
(without installing third-party apps on phone):

https://developer.android.com/studio/command-line/adb#copyfiles


Re: how to mount phone?

2020-07-14 Thread Jan Stary
On Jul 13 14:39:35, justinkm...@gmail.com wrote:
> Just wishing to mount my phone to access photos.
> Here's the output from dmesg:
> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
> Any ideas on how this might be mounted??

I believe phone OSes go out of their way to _not_ expose
the storage as an umass. You need a dedicated app to do
things as fundamental as copying a file.



Re: how to mount phone?

2020-07-14 Thread Antal Ispanovity
>> On Mon, Jul 13, 2020 at 2:57 PM Justin Muir 
>> wrote:
>>
>> > Hi,
>> >
>> > Just wishing to mount my phone to access photos.
>> >
>> > Here's the output from dmesg:
>> >
>> > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
>> >
>> > Any ideas on how this might be mounted??

I use the simple-mtpfs package.

>> >
>> >
>> > tia!
>> >
>
>



Re: how to mount phone?

2020-07-14 Thread Marcus MERIGHI
get.misc.open...@gmail.com (Greg Thomas), 2020.07.14 (Tue) 00:33 (CEST):
> Have you set your USB preferences on your phone?  To File transfer?  My
> Android defaults to charging only.

Mine too; but "File transfer" does not work for me, either. I get a
ugen(4) instead of umass(4), on -current.

Therefore I currently use gphoto2(1) from the gphoto-2.5.23 package:

$ gphoto2 --get-all-files --skip-existing

Watch out for the permissions on the USB device files: 

$ more /usr/local/share/doc/pkg-readmes/libgphoto

Marcus

> On Mon, Jul 13, 2020 at 2:57 PM Justin Muir  wrote:
> 
> > Hi,
> >
> > Just wishing to mount my phone to access photos.
> >
> > Here's the output from dmesg:
> >
> > ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
> >
> > Any ideas on how this might be mounted??
> >
> >
> > tia!
> >



Re: how to mount phone?

2020-07-13 Thread Greg Thomas
Have you set your USB preferences on your phone?  To File transfer?  My
Android defaults to charging only.

On Mon, Jul 13, 2020 at 2:57 PM Justin Muir  wrote:

> Hi,
>
> Just wishing to mount my phone to access photos.
>
> Here's the output from dmesg:
>
> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2
>
> Any ideas on how this might be mounted??
>
>
> tia!
>


how to mount phone?

2020-07-13 Thread Justin Muir
Hi,

Just wishing to mount my phone to access photos.

Here's the output from dmesg:

ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr 2

Any ideas on how this might be mounted??


tia!