FerryAr / lhroot

Linux Chroot Installer & Bootscript Magisk Module.
GNU General Public License v3.0
190 stars 20 forks source link

Use lazy or force argument when unmounting filesystems #50

Open zavocc opened 3 months ago

zavocc commented 3 months ago

Ideally using force or lazy arguments in umount ensures that all mountpoints are detached safely or forcibly so that the busy device can be unmounted before removal of the filesystem has been started

Lazy ensures safe unmount when a process constantly looks after it results in busy device, or force if the processes don't usually write something in the device nodes, whichever is sensible first

https://github.com/FerryAr/lhroot/blob/master/system/bin/killlinux

https://superuser.com/questions/412109/lazy-umount-or-unmounting-a-busy-disk-in-linux