[systemd-devel] reformat partition when device is in emergency mode

Belisko Marek marek.belisko at gmail.com
Mon Jan 13 12:20:03 UTC 2020


On Mon, Jan 13, 2020 at 12:59 PM Ulrich Windl
<Ulrich.Windl at rz.uni-regensburg.de> wrote:
>
> >>> Belisko Marek <marek.belisko at gmail.com> schrieb am 13.01.2020 um 10:19 in
> Nachricht
> <CAAfyv37bDCLvbAryW8Wqe5JT5n5Nbwyjik_YsE=eh2sGmLd9qA at mail.gmail.com>:
> > Hi,
> >
> > I have embedded system which contains fat32 partition at the end of
> > partition table. In case partition cannot be mounted (I'm using
>
> Is that "immediately after the MBR" or "immidiately after the last
> partition"?
Partition can be after the last partition.
>
> > fstab‑generator to automatically mount partition) device will enter
> > emergency mode. My idea is to check somehow in this mode that
> > partition is corrupted and reformat it. Is there some simple way to
> > detect that condition? Thanks for any pointers.
>
> Is it related to the position of the partition in any way?
Well not. I just wan to have device with kind of "self healing
process" to avoid remote maintenance or so.
>
>
> >
> > BR,
> >
> > marek
> >
> > ‑‑
> > as simple and primitive as possible
> > ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
> > Marek Belisko ‑ OPEN‑NANDRA
> > Freelance Developer
> >
> > Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> > Tel: +421 915 052 184
> > skype: marekwhite
> > twitter: #opennandra
> > web: http://open‑nandra.com
> > _______________________________________________
> > systemd‑devel mailing list
> > systemd‑devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/systemd‑devel
>
>
>
Thanks,

marek


More information about the systemd-devel mailing list