HowTo: GUI disk buffer flusher
Posted: Sat Sep 19, 2020 3:41 pm
This is a script that you can click with a mouse that will flush the disk I/O buffers with 'sync'
the 'yad' version:
The 'Xdialog' version:
Here is the script (yad version) with a useful icon you can set to it. Put it in /my-applications/bin, then drag to the desktop
the 'yad' version:
Code: Select all
yad --info --height=100 --width=100 --center --title="Syncing" --text="$(printf "\n\tSyncing buffers to disk ..\t\n")" &
sleep 2
sync
killall yad
yad --info --height=100 --width=100 --timeout=10 --center --title="Syncing" --text="$(printf "\n\t Sync complete!\t\n")"
Code: Select all
Xdialog --title "Syncing" --msgbox " Syncing buffers to disk .. " 10 40 &
sleep 2
sync
killall Xdialog
Xdialog --title "Syncing" --timeout 10 --msgbox " Sync complete! " 10 40
Here is the script (yad version) with a useful icon you can set to it. Put it in /my-applications/bin, then drag to the desktop