sync is a cli command which is unavailable in KDL. If Haiku enters KDL it means that something went really wrong, so syncing the data might result in a FS corruption. Often 'es' (short for escape) can let you out of KDL, Sometimes you need to do it several times or with combination with 'unreal' command. Read more here https://www.haiku-os.org/documents/dev/welcome_to_kernel_debugging_land
Comments
Re: Avoid data loss when KDL suceed
sync is a cli command which is unavailable in KDL. If Haiku enters KDL it means that something went really wrong, so syncing the data might result in a FS corruption. Often 'es' (short for escape) can let you out of KDL, Sometimes you need to do it several times or with combination with 'unreal' command. Read more here https://www.haiku-os.org/documents/dev/welcome_to_kernel_debugging_land
Re: Avoid data loss when KDL suceed
Thanks for your answer!
If I use crontab and call the 'sync' command every 20 minutes, for example (I mean, using the 'sync' command before the KDL), could be a solution?
Thank you!!
Re: Avoid data loss when KDL suceed
I think Haiku syncs disk cache automatically more often than every 20 minutes. It's better to open a ticket and attach a picture of KDL.
Re: Avoid data loss when KDL suceed
IIRC the command "on_exit sync", followed by exiting KDL is what I normally use.
Re: Avoid data loss when KDL suceed
Thank you for your answers! If I found some "pattern" I will open a ticket. (until now, the KDL errors were random).