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

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon Jan 13 11:59:11 UTC 2020


>>> 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"?

> 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?


> 
> 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 





More information about the systemd-devel mailing list