Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Man belongs wherever he wants to go. -- Wernher von Braun


aus+uk / uk.comp.homebuilt / bizarre linux mount failure seen any pointers?

SubjectAuthor
* bizarre linux mount failure seen any pointers?jkn
`* Re: bizarre linux mount failure seen any pointers?Richard Kettlewell
 `- Re: bizarre linux mount failure seen any pointers?jkn

1
bizarre linux mount failure seen any pointers?

<1d41a741-1ec8-409e-8182-28455df1b786n@googlegroups.com>

  copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=932&group=uk.comp.homebuilt#932

  copy link   Newsgroups: uk.comp.homebuilt
X-Received: by 2002:a05:6214:2427:: with SMTP id gy7mr1042439qvb.19.1621276279782;
Mon, 17 May 2021 11:31:19 -0700 (PDT)
X-Received: by 2002:a25:7ec4:: with SMTP id z187mr1604600ybc.136.1621276279607;
Mon, 17 May 2021 11:31:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: uk.comp.homebuilt
Date: Mon, 17 May 2021 11:31:19 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=84.92.96.37; posting-account=xy4V0QkAAAAoGgkMsSsv6bfFPHkQXvOY
NNTP-Posting-Host: 84.92.96.37
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1d41a741-1ec8-409e-8182-28455df1b786n@googlegroups.com>
Subject: bizarre linux mount failure seen any pointers?
From: jkn...@nicorp.f9.co.uk (jkn)
Injection-Date: Mon, 17 May 2021 18:31:19 +0000
Content-Type: text/plain; charset="UTF-8"
 by: jkn - Mon, 17 May 2021 18:31 UTC

Hi all - this is really a linux ... 'WTF? question, but I am not really signed up for any linux-specific answer sources, and there are some knowledgable people here ...

I am seeing this after my home server had a hiccup, when attempting to mount the (ext4) partition of a 1.5TB SATA drive

jkn@obrien:~$ sudo mkdir /mnt/newbackup
jkn@obrien:~$ sudo mount /dev/sde1 /mnt/newbackup
jkn@obrien:~$ ls -l /mnt/newbackup
# (many files listed)
jkn@obrien:~$ sudo umount /mnt/newbackup

OK, so far so good. Now try with a dirrerent mount point:

jkn@obrien:~$ sudo mkdir /mnt/backup
jkn@obrien:~$ sudo mount /dev/sde1 /mnt/backup
jkn@obrien:~$ ls /mnt/backup
jkn@obrien:~$ # (ie. no files listed)

WTF?!

There appears to be no difference between the (just-created) mount points.

jkn@obrien:~$ ls -l /mnt
total 244
drwxr-xr-x 2 root root 4096 May 17 18:17 backup
drwxr-xr-x 2 root root 4096 May 17 18:16 newbackup

even though the second mount returns with $?=0, it actually seems to fail; lsblk doesn't show it as mounted.

dmesg has the same entry for both attempts:
[36291.436752] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: (null)
[36355.625768] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: (null)

This actually started when I had problems with '/mnt/backup'. At one time I had this as immutable, (chattr +i), and the drive was autofs mounted on my remote desktop. But in this little demo I am creating both mount points from ...

Any clue where I might look further to try and understand what is going on?

Thanks a lot, Jon N

Re: bizarre linux mount failure seen any pointers?

<877djxxikb.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=933&group=uk.comp.homebuilt#933

  copy link   Newsgroups: uk.comp.homebuilt
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: uk.comp.homebuilt
Subject: Re: bizarre linux mount failure seen any pointers?
Date: Mon, 17 May 2021 20:32:20 +0100
Organization: terraraq NNTP server
Message-ID: <877djxxikb.fsf@LkoBDZeT.terraraq.uk>
References: <1d41a741-1ec8-409e-8182-28455df1b786n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="18634"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:tBFCunomVjVkapXB6k7Lj5dfTo8=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Mon, 17 May 2021 19:32 UTC

jkn <jkn_gg@nicorp.f9.co.uk> writes:

> Hi all - this is really a linux ... 'WTF? question, but I am not
> really signed up for any linux-specific answer sources, and there are
> some knowledgable people here ...
>
> I am seeing this after my home server had a hiccup, when attempting to
> mount the (ext4) partition of a 1.5TB SATA drive
>
> jkn@obrien:~$ sudo mkdir /mnt/newbackup
> jkn@obrien:~$ sudo mount /dev/sde1 /mnt/newbackup
> jkn@obrien:~$ ls -l /mnt/newbackup
> # (many files listed)
> jkn@obrien:~$ sudo umount /mnt/newbackup
>
> OK, so far so good. Now try with a dirrerent mount point:
>
> jkn@obrien:~$ sudo mkdir /mnt/backup
> jkn@obrien:~$ sudo mount /dev/sde1 /mnt/backup
> jkn@obrien:~$ ls /mnt/backup
> jkn@obrien:~$ # (ie. no files listed)
>
> WTF?!
>
> There appears to be no difference between the (just-created) mount points.
>
> jkn@obrien:~$ ls -l /mnt
> total 244
> drwxr-xr-x 2 root root 4096 May 17 18:17 backup
> drwxr-xr-x 2 root root 4096 May 17 18:16 newbackup
>
> even though the second mount returns with $?=0, it actually seems to
> fail; lsblk doesn't show it as mounted.
>
> dmesg has the same entry for both attempts:
> [36291.436752] EXT4-fs (sde1): mounted filesystem with ordered data
> mode. Opts: (null)
> [36355.625768] EXT4-fs (sde1): mounted filesystem with ordered data
> mode. Opts: (null)
>
> This actually started when I had problems with '/mnt/backup'. At one
> time I had this as immutable, (chattr +i), and the drive was autofs
> mounted on my remote desktop. But in this little demo I am creating
> both mount points from ...
>
> Any clue where I might look further to try and understand what is going on?

Most likely you are experiencing the behavior described here:

https://unix.stackexchange.com/questions/169909/systemd-keeps-unmounting-a-removable-drive

--
https://www.greenend.org.uk/rjk/

Re: bizarre linux mount failure seen any pointers?

<55cab142-dd0d-45de-ae20-44721e3b6e2an@googlegroups.com>

  copy mid

https://www.novabbs.com/aus+uk/article-flat.php?id=935&group=uk.comp.homebuilt#935

  copy link   Newsgroups: uk.comp.homebuilt
X-Received: by 2002:ac8:5fd5:: with SMTP id k21mr1304617qta.231.1621283866221;
Mon, 17 May 2021 13:37:46 -0700 (PDT)
X-Received: by 2002:a25:8190:: with SMTP id p16mr2373496ybk.156.1621283866014;
Mon, 17 May 2021 13:37:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: uk.comp.homebuilt
Date: Mon, 17 May 2021 13:37:45 -0700 (PDT)
In-Reply-To: <877djxxikb.fsf@LkoBDZeT.terraraq.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=84.92.96.37; posting-account=xy4V0QkAAAAoGgkMsSsv6bfFPHkQXvOY
NNTP-Posting-Host: 84.92.96.37
References: <1d41a741-1ec8-409e-8182-28455df1b786n@googlegroups.com> <877djxxikb.fsf@LkoBDZeT.terraraq.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <55cab142-dd0d-45de-ae20-44721e3b6e2an@googlegroups.com>
Subject: Re: bizarre linux mount failure seen any pointers?
From: jkn...@nicorp.f9.co.uk (jkn)
Injection-Date: Mon, 17 May 2021 20:37:46 +0000
Content-Type: text/plain; charset="UTF-8"
 by: jkn - Mon, 17 May 2021 20:37 UTC

On Monday, May 17, 2021 at 8:32:21 PM UTC+1, Richard Kettlewell wrote:
> jkn <jkn...@nicorp.f9.co.uk> writes:
>
> > Hi all - this is really a linux ... 'WTF? question, but I am not
> > really signed up for any linux-specific answer sources, and there are
> > some knowledgable people here ...
> >
> > I am seeing this after my home server had a hiccup, when attempting to
> > mount the (ext4) partition of a 1.5TB SATA drive
> >
> > jkn@obrien:~$ sudo mkdir /mnt/newbackup
> > jkn@obrien:~$ sudo mount /dev/sde1 /mnt/newbackup
> > jkn@obrien:~$ ls -l /mnt/newbackup
> > # (many files listed)
> > jkn@obrien:~$ sudo umount /mnt/newbackup
> >
> > OK, so far so good. Now try with a dirrerent mount point:
> >
> > jkn@obrien:~$ sudo mkdir /mnt/backup
> > jkn@obrien:~$ sudo mount /dev/sde1 /mnt/backup
> > jkn@obrien:~$ ls /mnt/backup
> > jkn@obrien:~$ # (ie. no files listed)
> >
> > WTF?!
> >
> > There appears to be no difference between the (just-created) mount points.
> >
> > jkn@obrien:~$ ls -l /mnt
> > total 244
> > drwxr-xr-x 2 root root 4096 May 17 18:17 backup
> > drwxr-xr-x 2 root root 4096 May 17 18:16 newbackup
> >
> > even though the second mount returns with $?=0, it actually seems to
> > fail; lsblk doesn't show it as mounted.
> >
> > dmesg has the same entry for both attempts:
> > [36291.436752] EXT4-fs (sde1): mounted filesystem with ordered data
> > mode. Opts: (null)
> > [36355.625768] EXT4-fs (sde1): mounted filesystem with ordered data
> > mode. Opts: (null)
> >
> > This actually started when I had problems with '/mnt/backup'. At one
> > time I had this as immutable, (chattr +i), and the drive was autofs
> > mounted on my remote desktop. But in this little demo I am creating
> > both mount points from ...
> >
> > Any clue where I might look further to try and understand what is going on?

Hi Richard

> Most likely you are experiencing the behavior described here:
>
> https://unix.stackexchange.com/questions/169909/systemd-keeps-unmounting-a-removable-drive
>
Ah yes, systemd, of course! Thanks a lot.

Yes, looks like it is that - I suppose the fact that I had the 'original' entry in /etc/fstab might have given me
a clue...

Actually, I am pretty sure I tried 'systemctl daemon-reload' earlier on when trying to track down the issue ...
but I can't remember now what I observed at the time!

Anyway, I can see from 'journalctl' that systemd is indeed implicated, I think I can take it from here.

Thanks a lot, Jon N

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor