Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I've seen it. It's rubbish." -- Marvin the Paranoid Android


computers / alt.os.linux.slackware / Re: sync after mkfs?

SubjectAuthor
* sync after mkfs?Mike Small
`* Re: sync after mkfs?Rich
 `* Re: sync after mkfs?Richard Kettlewell
  `* Re: sync after mkfs?Mike Small
   +- Re: sync after mkfs?Richard Kettlewell
   +- Re: sync after mkfs?Bit Twister
   `* Re: sync after mkfs?Henrik Carlqvist
    `* Re: sync after mkfs?Mike Small
     `- Re: sync after mkfs?Henrik Carlqvist

1
sync after mkfs?

<jpkleq5g3im.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1419&group=alt.os.linux.slackware#1419

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: sma...@panix.com (Mike Small)
Newsgroups: alt.os.linux.slackware
Subject: sync after mkfs?
Date: Mon, 26 Sep 2022 18:44:01 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <jpkleq5g3im.fsf@panix5.panix.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader2.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="6868"; mail-complaints-to="abuse@panix.com"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
Cancel-Lock: sha1:GY998D9b/eWzjfkcrKrZGN+3PyQ=
 by: Mike Small - Mon, 26 Sep 2022 22:44 UTC

I'm noticing places in both Slackware's installer and debian-installer
where a mkfs run is immediately followed by a sync...

---------------SeTpartitions--------------------------------------------
... other fs types ...

elif [ "$ROOT_SYS_TYPE" = "ext4" ]; then
if [ "$DOFORMAT" = "Check" ]; then
make_ext4 $ROOT_DEVICE "y"
else
make_ext4 $ROOT_DEVICE "n"
fi
elif [ "$ROOT_SYS_TYPE" = "reiserfs" ]; then

... yet more fs types ...

fi
fi # DOFORMAT?

# Sync before identifying and mounting the root device:
sync
------------------------------------------------------------------------

And debian-installer...

---packages/partman-basicfilesystems/commit.d/format_basicfilesystems---
case $filesystem in
ext2)
options=''
if [ -f $id/usage ]; then
options="$options -T $(cat $id/usage)"
fi
if [ "$(udpkg --print-os)" = hurd ]; then
options="$options -b 4096 -I 128 -o hurd"
fi
db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if log-output -t partman --pass-stdout \
mkfs.ext2 -F $device $options >/dev/null; then
sync
status=OK
else
status=failed
fi
db_progress STOP
------------------------------------------------------------------------

Is this just a known thing among those who've been around? mkfs isn't
truly done and with all bits on disk when it exits?

- Mike Sm.

Re: sync after mkfs?

<tgtr9u$3viq2$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1420&group=alt.os.linux.slackware#1420

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ric...@example.invalid (Rich)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Tue, 27 Sep 2022 03:39:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <tgtr9u$3viq2$1@dont-email.me>
References: <jpkleq5g3im.fsf@panix5.panix.com>
Injection-Date: Tue, 27 Sep 2022 03:39:42 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="6777c1f172309c229fe2d2220561b2e8";
logging-data="4180802"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xtODexCxzIsBtZut/AU+d"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:gmiDQgaDDT5/1AzfXklPIYX7rUI=
 by: Rich - Tue, 27 Sep 2022 03:39 UTC

Mike Small <smallm@panix.com> wrote:
>
> I'm noticing places in both Slackware's installer and
> debian-installer where a mkfs run is immediately followed by a
> sync...
>
> [snip]
>
> Is this just a known thing among those who've been around? mkfs
> isn't truly done and with all bits on disk when it exits?

It is not just mkfs. Linux caches writes in RAM, with the data
actually being committed to disk some time later.

If you want to be sure a write has hit the disk (note, due to on disk
caches, you can never really be /sure/) you need to tell the kernel to
write the cached RAM data out to disk -- that is what 'sync' does.

Those sync's are not strictly necessary, but are likely present for
safety's sake. Run the mkfs, then try to make certian all the writes
have been at least sent to the disk controller.

Re: sync after mkfs?

<8735cddzuo.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1421&group=alt.os.linux.slackware#1421

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Tue, 27 Sep 2022 08:46:07 +0100
Organization: terraraq NNTP server
Message-ID: <8735cddzuo.fsf@LkoBDZeT.terraraq.uk>
References: <jpkleq5g3im.fsf@panix5.panix.com> <tgtr9u$3viq2$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="29612"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:/op986Sb3Pmd3rro21Wl+ZQ3LZE=
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 - Tue, 27 Sep 2022 07:46 UTC

Rich <rich@example.invalid> writes:
> Mike Small <smallm@panix.com> wrote:
>> I'm noticing places in both Slackware's installer and
>> debian-installer where a mkfs run is immediately followed by a
>> sync...
>>
>> [snip]
>>
>> Is this just a known thing among those who've been around? mkfs
>> isn't truly done and with all bits on disk when it exits?
>
> It is not just mkfs. Linux caches writes in RAM, with the data
> actually being committed to disk some time later.
>
> If you want to be sure a write has hit the disk (note, due to on disk
> caches, you can never really be /sure/) you need to tell the kernel to
> write the cached RAM data out to disk -- that is what 'sync' does.
>
> Those sync's are not strictly necessary, but are likely present for
> safety's sake. Run the mkfs, then try to make certian all the writes
> have been at least sent to the disk controller.

They are redundant, at least for ext4, since mkfs.ext4 calls fsync on
the target device. I’m not going to check other filesystems but the
situation is likely to be the same.

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

Re: sync after mkfs?

<jpk4jwsu4b6.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1422&group=alt.os.linux.slackware#1422

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: sma...@panix.com (Mike Small)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Tue, 27 Sep 2022 13:15:25 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <jpk4jwsu4b6.fsf@panix5.panix.com>
References: <jpkleq5g3im.fsf@panix5.panix.com> <tgtr9u$3viq2$1@dont-email.me>
<8735cddzuo.fsf@LkoBDZeT.terraraq.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader2.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="7148"; mail-complaints-to="abuse@panix.com"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
Cancel-Lock: sha1:ZJ/XTZj/g1Zj6x/f3ab/xNKWDe0=
 by: Mike Small - Tue, 27 Sep 2022 17:15 UTC

Richard Kettlewell <invalid@invalid.invalid> writes:

> Rich <rich@example.invalid> writes:
>> Mike Small <smallm@panix.com> wrote:
>>> I'm noticing places in both Slackware's installer and
>>> debian-installer where a mkfs run is immediately followed by a
>>> sync...
>>>
>>> [snip]
>>>
>>> Is this just a known thing among those who've been around? mkfs
>>> isn't truly done and with all bits on disk when it exits?
>>
>> It is not just mkfs. Linux caches writes in RAM, with the data
>> actually being committed to disk some time later.
>>
>> If you want to be sure a write has hit the disk (note, due to on disk
>> caches, you can never really be /sure/) you need to tell the kernel to
>> write the cached RAM data out to disk -- that is what 'sync' does.
>>
>> Those sync's are not strictly necessary, but are likely present for
>> safety's sake. Run the mkfs, then try to make certian all the writes
>> have been at least sent to the disk controller.
>
> They are redundant, at least for ext4, since mkfs.ext4 calls fsync on
> the target device. I’m not going to check other filesystems but the
> situation is likely to be the same.

Suppose the ext4 fs was on an encrypted volume on top of a dm raid,
i.e. two levels of device mapper. Is it possible that the fsync on the
crypt device wouldn't carry through to the raid?

My reason for looking at what Slackware and Debian do came from seeing a
script at work fail intermittently. It does the following:

1. create an ext4 fs
2. mount it
3. copy files to it
4. unmount it
5. remount it at a different point
6. access copied files.

This sequence sometimes fails at step 5 and rarely in step 6. Typically
it does not fail. Could be a hardware error or something else (I'm
always looking for a new thing to blame udevd on, for instance), but it
sure would be nice (but not reassuring) if only a sync or two was what
was needed.

Re: sync after mkfs?

<87wn9od8ws.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1423&group=alt.os.linux.slackware#1423

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Tue, 27 Sep 2022 18:28:03 +0100
Organization: terraraq NNTP server
Message-ID: <87wn9od8ws.fsf@LkoBDZeT.terraraq.uk>
References: <jpkleq5g3im.fsf@panix5.panix.com> <tgtr9u$3viq2$1@dont-email.me>
<8735cddzuo.fsf@LkoBDZeT.terraraq.uk>
<jpk4jwsu4b6.fsf@panix5.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="37906"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:lBbto0S87uUYSegui/qa4FrxGeU=
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 - Tue, 27 Sep 2022 17:28 UTC

Mike Small <smallm@panix.com> writes:
> Richard Kettlewell <invalid@invalid.invalid> writes:
>> Rich <rich@example.invalid> writes:
>>> Mike Small <smallm@panix.com> wrote:
>>>> I'm noticing places in both Slackware's installer and
>>>> debian-installer where a mkfs run is immediately followed by a
>>>> sync...
>>>>
>>>> [snip]
>>>>
>>>> Is this just a known thing among those who've been around? mkfs
>>>> isn't truly done and with all bits on disk when it exits?
>>>
>>> It is not just mkfs. Linux caches writes in RAM, with the data
>>> actually being committed to disk some time later.
>>>
>>> If you want to be sure a write has hit the disk (note, due to on disk
>>> caches, you can never really be /sure/) you need to tell the kernel to
>>> write the cached RAM data out to disk -- that is what 'sync' does.
>>>
>>> Those sync's are not strictly necessary, but are likely present for
>>> safety's sake. Run the mkfs, then try to make certian all the writes
>>> have been at least sent to the disk controller.
>>
>> They are redundant, at least for ext4, since mkfs.ext4 calls fsync on
>> the target device. I’m not going to check other filesystems but the
>> situation is likely to be the same.
>
> Suppose the ext4 fs was on an encrypted volume on top of a dm raid,
> i.e. two levels of device mapper. Is it possible that the fsync on the
> crypt device wouldn't carry through to the raid?

It’d certainly be a bug in whichever layer didn’t propagate it, and it
would (almost certainly) affect sync in the same way, i.e. the sync
wouldn’t help in the presence of that (hypothetical) bug.

> My reason for looking at what Slackware and Debian do came from seeing a
> script at work fail intermittently. It does the following:
>
> 1. create an ext4 fs
> 2. mount it
> 3. copy files to it
> 4. unmount it
> 5. remount it at a different point
> 6. access copied files.
>
> This sequence sometimes fails at step 5 and rarely in step 6. Typically
> it does not fail. Could be a hardware error or something else (I'm
> always looking for a new thing to blame udevd on, for instance), but it
> sure would be nice (but not reassuring) if only a sync or two was what
> was needed.

‘Fails’ isn’t really enough information to even speculate. Looking at
the behavior, any error message, and any kernel logs, might shed some
light on the situation.

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

Re: sync after mkfs?

<slrntj6g2b.sjb.BitTwister@wb.home.test>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1424&group=alt.os.linux.slackware#1424

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: BitTwis...@mouse-potato.com (Bit Twister)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Tue, 27 Sep 2022 13:26:19 -0500
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <slrntj6g2b.sjb.BitTwister@wb.home.test>
References: <jpkleq5g3im.fsf@panix5.panix.com>
<tgtr9u$3viq2$1@dont-email.me> <8735cddzuo.fsf@LkoBDZeT.terraraq.uk>
<jpk4jwsu4b6.fsf@panix5.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="32bf06ea8d52bd949ac82545858283b9";
logging-data="139166"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xqHjru8AZHAZkdd7VyTrbN/r4Fe1nGMA="
User-Agent: slrn/pre1.0.4-6 (Linux)
Cancel-Lock: sha1:WZjzpSW5x8i1OH4icijkgv+78zU=
 by: Bit Twister - Tue, 27 Sep 2022 18:26 UTC

On Tue, 27 Sep 2022 13:15:25 -0400, Mike Small wrote:
> Richard Kettlewell <invalid@invalid.invalid> writes:
>
>> Rich <rich@example.invalid> writes:
>>> Mike Small <smallm@panix.com> wrote:
>>>> I'm noticing places in both Slackware's installer and
>>>> debian-installer where a mkfs run is immediately followed by a
>>>> sync...
>>>>
>>>> [snip]
>>>>
>>>> Is this just a known thing among those who've been around? mkfs
>>>> isn't truly done and with all bits on disk when it exits?
>>>
>>> It is not just mkfs. Linux caches writes in RAM, with the data
>>> actually being committed to disk some time later.
>>>
>>> If you want to be sure a write has hit the disk (note, due to on disk
>>> caches, you can never really be /sure/) you need to tell the kernel to
>>> write the cached RAM data out to disk -- that is what 'sync' does.
>>>
>>> Those sync's are not strictly necessary, but are likely present for
>>> safety's sake. Run the mkfs, then try to make certian all the writes
>>> have been at least sent to the disk controller.
>>
>> They are redundant, at least for ext4, since mkfs.ext4 calls fsync on
>> the target device. I’m not going to check other filesystems but the
>> situation is likely to be the same.
>
> Suppose the ext4 fs was on an encrypted volume on top of a dm raid,
> i.e. two levels of device mapper. Is it possible that the fsync on the
> crypt device wouldn't carry through to the raid?
>
> My reason for looking at what Slackware and Debian do came from seeing a
> script at work fail intermittently. It does the following:
>
> 1. create an ext4 fs
> 2. mount it
> 3. copy files to it
> 4. unmount it
> 5. remount it at a different point
> 6. access copied files.
>
> This sequence sometimes fails at step 5 and rarely in step 6. Typically
> it does not fail. Could be a hardware error or something else (I'm
> always looking for a new thing to blame udevd on, for instance), but it
> sure would be nice (but not reassuring) if only a sync or two was what
> was needed.
>

I suggest adding test return status after each step to help find the problem.

Example:

if [ $? -ne 0 ] ; then
_code=$?
echo "Return status $_code is not 0 for command
command_executed_here
"
exit $_code
fi

Re: sync after mkfs?

<th3bmi$jm3b$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1425&group=alt.os.linux.slackware#1425

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Thu, 29 Sep 2022 05:50:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <th3bmi$jm3b$1@dont-email.me>
References: <jpkleq5g3im.fsf@panix5.panix.com>
<tgtr9u$3viq2$1@dont-email.me> <8735cddzuo.fsf@LkoBDZeT.terraraq.uk>
<jpk4jwsu4b6.fsf@panix5.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 29 Sep 2022 05:50:10 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b51551d05d3af7c528298eb120cfb3c1";
logging-data="645227"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zZfVcKI+0DgbX6zGSudZe"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:d81M0qX5OALQFxk72aB6de/SJDA=
 by: Henrik Carlqvist - Thu, 29 Sep 2022 05:50 UTC

On Tue, 27 Sep 2022 13:15:25 -0400, Mike Small wrote:
> 1. create an ext4 fs
> 2. mount it
> 3. copy files to it
> 4. unmount it
> 5. remount it at a different point
> 6. access copied files.
>
> This sequence sometimes fails at step 5 and rarely in step 6. Typically
> it does not fail. Could be a hardware error or something else (I'm
> always looking for a new thing to blame udevd on, for instance), but it
> sure would be nice (but not reassuring) if only a sync or two was what
> was needed.

Umount is supposed to sync the file system before unmounting and
returning.

As Bit Twister said, it might be a good idea to check the exit status of
all the commands and especially the umount commoand. Also look for error
messages from the commands and most of all, check for warnings and errors
in the output from dmesg when something like this goes wrong.

regards Henrik

Re: sync after mkfs?

<jpk35c9lr33.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1426&group=alt.os.linux.slackware#1426

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5.panix.com!not-for-mail
From: sma...@panix.com (Mike Small)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Thu, 29 Sep 2022 19:05:04 -0400
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <jpk35c9lr33.fsf@panix5.panix.com>
References: <jpkleq5g3im.fsf@panix5.panix.com> <tgtr9u$3viq2$1@dont-email.me>
<8735cddzuo.fsf@LkoBDZeT.terraraq.uk>
<jpk4jwsu4b6.fsf@panix5.panix.com> <th3bmi$jm3b$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader2.panix.com; posting-host="panix5.panix.com:166.84.1.5";
logging-data="6701"; mail-complaints-to="abuse@panix.com"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
Cancel-Lock: sha1:9Jquxn7HFPdT+h0Akt3jl5zBfSw=
 by: Mike Small - Thu, 29 Sep 2022 23:05 UTC

Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> writes:

> On Tue, 27 Sep 2022 13:15:25 -0400, Mike Small wrote:
>> 1. create an ext4 fs
>> 2. mount it
>> 3. copy files to it
>> 4. unmount it
>> 5. remount it at a different point
>> 6. access copied files.
>>
>> This sequence sometimes fails at step 5 and rarely in step 6. Typically
>> it does not fail. Could be a hardware error or something else (I'm
>> always looking for a new thing to blame udevd on, for instance), but it
>> sure would be nice (but not reassuring) if only a sync or two was what
>> was needed.
>
> Umount is supposed to sync the file system before unmounting and
> returning.
>
> As Bit Twister said, it might be a good idea to check the exit status of
> all the commands and especially the umount commoand. Also look for error
> messages from the commands and most of all, check for warnings and errors
> in the output from dmesg when something like this goes wrong.
>

Well, we checked at least for exit code 0 both on the cp and the umount,
e.g. umount X || die...

I'm looking more closely now, but getting dmesg output is tricky cause
it runs in an initramfs and reboots on the failure. Likely I'll have to
log debugging with dmesg, etc. Just trying to narrow now the steps to
reproduce.

Re: sync after mkfs?

<th5v5q$u4ob$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1427&group=alt.os.linux.slackware#1427

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: sync after mkfs?
Date: Fri, 30 Sep 2022 05:34:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <th5v5q$u4ob$1@dont-email.me>
References: <jpkleq5g3im.fsf@panix5.panix.com>
<tgtr9u$3viq2$1@dont-email.me> <8735cddzuo.fsf@LkoBDZeT.terraraq.uk>
<jpk4jwsu4b6.fsf@panix5.panix.com> <th3bmi$jm3b$1@dont-email.me>
<jpk35c9lr33.fsf@panix5.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 30 Sep 2022 05:34:50 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="49bf0e244d8a432094318d423c0bd444";
logging-data="987915"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19lw1Kt7csHliOI+QsinjpW"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:hBleT7WdBd9iRgYesVuOvx5rTgk=
 by: Henrik Carlqvist - Fri, 30 Sep 2022 05:34 UTC

On Thu, 29 Sep 2022 19:05:04 -0400, Mike Small wrote:
> I'm looking more closely now, but getting dmesg output is tricky cause
> it runs in an initramfs and reboots on the failure. Likely I'll have to
> log debugging with dmesg, etc. Just trying to narrow now the steps to
> reproduce.

Another thing that might be worth checking when suspecting bad hardware
is the output of something like:

smartctl --all /dev/sda

The SMART logged data in the disk is persistent between reboots.

regards Henrik

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor