Detach the ubi device of rootfs

Richard Weinberger richard at sigma-star.at
Tue Oct 10 00:33:27 PDT 2017


Am Dienstag, 10. Oktober 2017, 04:02:09 CEST schrieb Rock Lee:
> > Why do you think you need to detach upon reboot?
> > UBI and UBIFS are designed to face power-cuts at any time.
> > Although, sane setups with initramfs/systemd unmount also the rootfs
> > upon reboot.
> 
> When reboot, UBIFS will be remount as read-only, from the filesystem
> part, it is safe, because there is no data write to it.  I see ubi
> background thread will exit when ubi detach, and there would no
> scrubing anymore, I am sure reboot after detach is safe enough in UBI
> layer. I am just curious what will happen when reboot the system while
> ubi is scrubing. Will it damage the flash if this situation happens a
> lot?

Scrubbing is an atomic operation, just like copying a LEB.
What problem do you have in mind?

Thanks,
//richard

-- 
sigma star gmbh - Eduard-Bodem-Gasse 6 - 6020 Innsbruck - Austria
ATU66964118 - FN 374287y



More information about the linux-mtd mailing list