Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #51246

Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?

From Jasen Betts <jasen@xnet.co.nz>
Newsgroups alt.os.linux
Subject Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?
Organization JJ's own news server
Message-ID <pprj6h$euc$1@gonzo.alcatraz> (permalink)
References <ppqffl$oao$1@news.mixmin.net> <o76dnVEkZouVW13GnZ2dnUU7-U2dnZ2d@giganews.com> <ppqn0p$58o$1@news.mixmin.net> <g2chg9Fkm0jU1@mid.individual.net> <pprd62$95a$1@dont-email.me>
Date 2018-10-13 01:53 +0000

Show all headers | View raw


On 2018-10-13, Paul <nospam@needed.invalid> wrote:
> ray carter wrote:
>> On Fri, 12 Oct 2018 17:52:26 +0000, Arlen    Holder wrote:
>> 
>>> On Fri, 12 Oct 2018 11:04:24 -0500, Wildman wrote:
>>>
>>>> I would either browse to the mount point using Nautilus and open a
>>>> terminal in that directory via context menu or just open the terminal
>>>> and change to the mount point using the cd command.  From there run the
>>>> command(s).
>>> Thanks. That post was written yesterday when I didn't have it tested,
>>> where it works fine.
>>>
>>> The Linux question is what "magic" is on Ubuntu that isn't on Windows
>>> that allows this to work with dual-boot Ubuntu 18.04 but not Windows 10?
>> 
>> The 'magic' is that - on linux, everything is a file.
>
> The same approach has been used in Linux (and Unix) a
> number of times.
>
> A new thing is exposed as a command-line-only feature first.
>
> You cannot see the files initially in a file manager.
> We used to work with floppy drives with MTOOLS, and
> there was a utility for working with Mac HFS which
> were like this. Today, mounting a floppy is transparent
> (and visible in your file manager), as is the Mac stuff.
>
> http://manpages.ubuntu.com/manpages/trusty/man1/mtp-tools.1.html
>
> The other way is with MTPFS, which aligns with your
> statement about "magic". In the fullness of time, indeed,
> everything is a file.

It's much deeper than that. the read() and write() system 
calls work on pipes, tcp sockets, character devices (tty, pty,
serial port, printer port) block devices (tape, disk, MMC), 
system memory (via /dev/mem), and regular files on mounted
filesystems.

 Every _thing_ is a file.

On windows It's not like that, the comsole, and serial ports, are files;
but tcp sockets aren't so different calls are needed to handle them,
select works on sockets but something different is needed for serial ports
etc...

https://en.wikipedia.org/wiki/Everything_is_a_file

mtools (for reading FAT devices) wirked by opening the device 
(or a image file) like a file and modifying its content in the 
normal way.  the main advantage of mtools was that you didn't
need to mount disk to access the content or remember to unmount
it, linux has has FAT mount/read/write capability since "forever"
(it was there in kernal 0.95)

-- 
  Notsodium is mined on the banks of denial.

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-12 15:43 +0000
  Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-12 15:49 +0000
  Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Wildman <best_lay@yahoo.com> - 2018-10-12 11:04 -0500
    Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-12 17:52 +0000
      Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? ray carter <ray@zianet.com> - 2018-10-12 21:20 +0000
        Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Paul <nospam@needed.invalid> - 2018-10-12 20:10 -0400
          Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-13 01:52 +0000
            Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E.R." <robin_listas@es.invalid> - 2018-10-15 04:42 +0200
              Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-15 09:53 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-15 10:41 +0000
              Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-15 10:34 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Aragorn <thorongil@telenet.be> - 2018-10-15 12:45 +0200
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-15 11:01 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-15 11:14 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-15 12:19 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E.R." <robin_listas@es.invalid> - 2018-10-15 15:03 +0200
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-15 13:15 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Wildman <best_lay@yahoo.com> - 2018-10-15 09:33 -0500
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-15 14:41 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E.R." <robin_listas@es.invalid> - 2018-10-15 23:27 +0200
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-15 10:59 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E.R." <robin_listas@es.invalid> - 2018-10-15 15:04 +0200
          Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Jasen Betts <jasen@xnet.co.nz> - 2018-10-13 01:53 +0000
            Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-13 03:34 +0000
              Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-13 04:44 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-14 15:36 +0000
    Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-12 18:48 +0000
      Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-15 10:50 +0000
  Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-19 23:42 +0000
    Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-20 00:20 +0000
      Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-20 03:15 +0000
        Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-20 16:13 +0000
          Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-20 18:13 +0000
            Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? William Unruh <unruh@invalid.ca> - 2018-10-20 18:43 +0000
          Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E.R." <robin_listas@es.invalid> - 2018-10-21 13:14 +0200
          Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "R.Wieser" <address@not.available> - 2018-10-21 15:45 +0200
            Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-21 18:29 +0000
              Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "R.Wieser" <address@not.available> - 2018-10-21 22:39 +0200
              Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E.R." <robin_listas@es.invalid> - 2018-10-21 22:56 +0200
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "R.Wieser" <address@not.available> - 2018-10-21 23:20 +0200
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-22 09:25 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen    Holder <a%rlenh.older@no.spam.net> - 2018-10-21 23:14 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-22 09:27 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? RonB <ronb02NOSPAM@gmail.com> - 2018-10-23 00:49 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? RonB <ronb02NOSPAM@gmail.com> - 2018-10-23 00:47 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E. R." <robin_listas@es.invalid> - 2018-10-23 13:00 +0200
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? gazelle@shell.xmission.com (Kenny McCormack) - 2019-05-09 15:40 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E. R." <robin_listas@es.invalid> - 2019-05-09 20:47 +0200
              Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? Dan Purgert <dan@djph.net> - 2018-10-22 09:23 +0000
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "Carlos E. R." <robin_listas@es.invalid> - 2018-10-22 13:12 +0200
                Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB? "R.Wieser" <address@not.available> - 2018-10-22 13:49 +0200
  Re: Do you already know how to run a Linux command (like ls) on the Android filesystem plugged into USB?  Arlen_Holder <a%rle%20nh.older@no.spam.net> - 2018-11-02 15:21 +0000

csiph-web