r/linuxquestions • u/KaKi_87 • 7d ago
Why does GParted "check filesystem consistency" 3 times before resizing ?
I understand the need to be sure, hence the first step "check file system", but then it still does it again in "run simulation" and also in "real resize" 🤔
Thanks
12
Upvotes
12
u/FuggaDucker 7d ago edited 7d ago
I am going to guess NTFS? .. It has an additional step.
GParted explicitly runs a simulation and then runs the real resize as two separate commands.
Both invoke ntfsresize which is what is showing the message.
The three executions:
For an NTFS resize, the source establishes this sequence:
The first call is made by GParted_Core::check_repair_filesystem().
The second and third are in ntfs::resize().
You can skip the pre-flight checks with the command line but I do not suggest it.
They are there for a reason.
2
u/ipsirc 7d ago edited 7d ago
For safety reasons. You can skip those steps if you have daily backups.
5
u/CobaltOne 7d ago
Because of the old carpenter saying: "Measure twice, cut once."
1
u/Booty_Bumping 5d ago
Progress bars work in mysterious ways