TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: MARKUS ROBERT KESSLER
date: 2021-03-21 08:06:00
subject: Re: Raspbian on ext4: Str

Hi Martin,

On Sat, 20 Mar 2021 20:21:07 +0000 Martin Gregorie wrote:

many thanks for your very interesting thoughts!

Well, to make it short,

snip [...]

> So, what exactly did you run? Just fsck.ext4? If so, with what options?

First partition was ok and then I only tested the second one with

fsck.ext4 -y /dev/mmcblk0p2

I knew that this was not a good idea, but the filesystem was already so
corrupted that it was not even possible to switch to runlevel 1 and
unmount ext4 partition. Very soon it was clear that I can forget about
the installation and there was not much to lose.

I just tried to learn from what happened.

snip [...]

> Did you make a backup copy, as I also suggested, before running
> fsck.ext4?

I have the same data as backups and besides this there are several
machines running with almost identical configuration.

To make things easier, some weeks ago I started with setting up one
sample machine very carefully, I installed everything needed, created the
necessary users, made all updates, and then I created two tgz-balls, one
for boot and one for rootfs.

Making a new instance out of it can now be easily done by taking a new SD
card out of the box, overwrite the first hundred MBs with 'cat /dev/zero
> /dev/sdb' (stopping after some seconds) on a linux machine, then create
a Win95 partition with 256MB and the whole remaining space with linux
filesystem using fdisk.

Afterwards I only have to format both partitions with the appropriate
filesystem type and restore the backups.

Of course, the machine name has to be changed in /etc/hosts and /etc/
hostname, the most recent updates have to be applied and so on.

But creating a new installation based on this is a matter of half an hour.

So, there are only two things left annoying me somehow in this case:

- I still do not know why the filesystem changed to dust.
  Since I did not overload the machine, nor did I reboot all the time

- Now I have to travel to that location to replace the installation :-)

Well, the new box is already there, ready to replace the crashed one.
This one now has ext3 as second partition.
So, let's see how long this will work.

Thanks a lot!

Best regards,

Markus

--
Please reply to group only.
For private email please use http://www.dipl-ing-kessler.de/email.htm

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.