Re: Odd diff -qr / /mnt "Only in " results

From: Mark Millard <marklmi_at_yahoo.com>
Date: Mon, 21 Sep 2020 16:16:41 -0700
On 2020-Sep-21, at 13:38, Mark Millard <marklmi at yahoo.com> wrote:

> Context: head -r365932 (on a Rock64). But this could well not
> be new.
> 
> First a look at the / context and then the /mnt/ :
> 
> # ls -laT /
> total 225
> drwxr-xr-x  24 root  wheel       512 Sep 21 02:20:37 2020 .
> drwxr-xr-x  24 root  wheel       512 Sep 21 02:20:37 2020 ..
> -rw-r--r--   2 root  wheel      1083 Jul  8 23:53:07 2020 .cshrc
> drwxr-xr-x   2 root  wheel       512 Jan 31 19:57:35 2017 .libs
> -rw-r--r--   1 root  wheel      1349 Sep 15 18:45:26 2019 .profile
> -rw-------   1 root  wheel      1024 Dec 31 16:00:41 2009 .rnd
> drwxrwxr-x   2 root  operator    512 Aug  8 19:02:22 2020 .snap
> -r--r--r--   1 root  wheel      6170 Feb  1 04:48:34 2020 COPYRIGHT
> drwxr-xr-x   2 root  wheel      1024 Sep 21 01:56:39 2020 bin
> drwxr-xr-x  24 root  wheel      1536 Sep 21 01:58:43 2020 boot
> dr-xr-xr-x  18 root  wheel       512 Sep 21 02:20:24 2020 dev
> -rw-------   1 root  wheel      4096 Sep 21 02:20:37 2020 entropy
> drwxr-xr-x  27 root  wheel      2560 Sep 21 01:58:16 2020 etc
> drwxr-xr-x   5 root  wheel      2048 Sep 21 01:56:39 2020 lib
> drwxr-xr-x   3 root  wheel       512 Sep 21 01:56:38 2020 libexec
> drwx------   2 root  wheel     98816 Jul 24 21:28:53 2020 lost+found
> drwxr-xr-x   2 root  wheel       512 Mar 30 05:23:44 2020 media
> drwxr-xr-x   6 root  wheel       512 Sep 21 01:49:57 2020 microsd_ufs
> drwxr-xr-x  23 root  wheel       512 Mar 30 05:23:44 2020 mnt
> drwxr-xr-x   2 root  wheel       512 Mar 30 05:23:44 2020 net
> dr-xr-xr-x   2 root  wheel       512 Mar 30 05:23:44 2020 proc
> drwxr-xr-x   2 root  wheel      2560 Sep 21 01:56:38 2020 rescue
> drwxr-xr-x  17 root  wheel      2560 Mar 30 05:23:44 2020 root
> drwxr-xr-x   2 root  wheel      2560 Sep 21 01:56:38 2020 sbin
> lrwxr-xr-x   1 root  wheel        11 May  1 19:22:54 2018 sys -> usr/src/sys
> drwxrwxrwt  59 root  wheel      3584 Sep 21 04:16:21 2020 tmp
> drwxr-xr-x   1 root  wheel     16384 Dec 31 16:00:00 1979 usb_efi
> drwxr-xr-x  16 root  wheel       512 Mar 30 05:23:44 2020 usr
> drwxr-xr-x  26 root  wheel       512 Sep 21 02:20:36 2020 var
> drwxr-xr-x   3 root  wheel       512 Sep 18 13:04:15 2018 wrkdirs
> 
> # ls -laT /mnt
> total 120
> drwxr-xr-x  23 root  wheel      512 Mar 30 05:23:44 2020 .
> drwxr-xr-x  24 root  wheel      512 Sep 21 02:20:37 2020 ..
> -rw-r--r--   2 root  wheel     1083 Jul 16 16:41:10 2020 .cshrc
> drwxr-xr-x   2 root  wheel      512 Jan 31 19:57:35 2017 .libs
> -rw-r--r--   1 root  wheel     1349 Sep 15 18:45:26 2019 .profile
> -rw-------   1 root  wheel     1024 Dec 31 16:00:41 2009 .rnd
> drwxrwxr-x   2 root  operator   512 Mar 14 19:02:19 2020 .snap
> -r--r--r--   1 root  wheel     6170 Feb  1 04:48:34 2020 COPYRIGHT
> drwxr-xr-x   2 root  wheel     1024 Sep 21 03:32:17 2020 bin
> drwxr-xr-x  13 root  wheel     1024 Sep 21 03:32:17 2020 boot
> dr-xr-xr-x   2 root  wheel      512 Mar 30 05:23:44 2020 dev
> -rw-------   1 root  wheel     4096 Sep 13 14:02:57 2020 entropy
> drwxr-xr-x  27 root  wheel     2560 Sep 21 03:36:49 2020 etc
> drwxr-xr-x   5 root  wheel     2048 Sep 21 03:32:16 2020 lib
> drwxr-xr-x   3 root  wheel      512 Sep 21 03:32:16 2020 libexec
> drwx------   2 root  wheel      512 Mar 17 16:16:42 2020 lost+found
> drwxr-xr-x   2 root  wheel      512 Mar 30 05:23:44 2020 media
> drwxr-xr-x   2 root  wheel      512 Mar 17 16:16:08 2020 microsd_ufs
> drwxr-xr-x   2 root  wheel      512 Mar 30 05:23:44 2020 mnt
> drwxr-xr-x   2 root  wheel      512 Mar 30 05:23:44 2020 net
> dr-xr-xr-x   2 root  wheel      512 Mar 30 05:23:44 2020 proc
> drwxr-xr-x   2 root  wheel     2560 Sep 21 03:32:16 2020 rescue
> drwxr-x---  18 root  wheel     2048 Mar 30 05:23:44 2020 root
> drwxr-xr-x   2 root  wheel     2560 Sep 21 03:32:13 2020 sbin
> lrwxr-xr-x   1 root  wheel       11 May  1 19:22:54 2018 sys -> usr/src/sys
> drwxrwxrwt  60 root  wheel     5120 Mar 30 05:23:44 2020 tmp
> drwxr-xr-x  16 root  wheel      512 Mar 30 05:23:44 2020 usr
> drwxr-xr-x  26 root  wheel      512 Mar 30 05:23:44 2020 var
> drwxr-xr-x   3 root  wheel      512 Sep 18 13:04:15 2018 wrkdirs
> 
> # df -m
> Filesystem             1M-blocks   Used  Avail Capacity  Mounted on
> /dev/gpt/Rock64root       195378 105474  74273    59%    /
> devfs                          0      0      0   100%    /dev
> /dev/label/Rock64root     109101    362 100010     0%    /microsd_ufs
> /dev/msdosfs/RPI4EFIFS        99      7     92     8%    /usb_efi
> /dev/gpt/PINE642Groot     195378  76731 103016    43%    /mnt
> 
> 
> But when I do the "diff -qr / /mnt" I get the following "Only in "
> notices:
> 
> Only in /mnt: .cshrc
> Only in /mnt: .libs
> Only in /mnt: .profile
> Only in /mnt: .rnd
> Only in /mnt: .snap
> Only in /mnt: COPYRIGHT
> Only in /mnt: bin
> Only in /mnt: boot
> Only in /mnt: dev
> Only in /mnt: entropy
> Only in /mnt: etc
> Only in /mnt: lib
> Only in /mnt: libexec
> Only in /mnt: lost+found
> Only in /mnt: media
> Only in /mnt: microsd_ufs
> Only in /mnt: mnt
> Only in /mnt: net
> Only in /mnt: proc
> Only in /mnt: rescue
> Only in /mnt: sbin
> Only in /mnt: sys
> Only in /mnt: tmp
> Only in /mnt: usr
> Only in /mnt: var
> Only in /mnt: wrkdirs
> 
> It still does the diff's inside the likes of /usr/ and /mnt/usr/ .

Well, after the complete diff I went looking in places that I
had expected a few differences to show (but did not). I found
some files with differences.

So it appears that at least some of those "Only in " notices
did result in lack of comparisons in the areas reported.

> This is not something that I normally do so I've no clue what range
> of versions do this.
> 


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
Received on Mon Sep 21 2020 - 21:16:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC