this post was submitted on 22 Nov 2024
2 points (58.3% liked)
Debian operating system
2773 readers
1 users here now
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I was under the impression that the sync command makes device removal safer somehow. Even though the device was unmounted, there may be cached data that wasn't written yet. Could be wrong about that, but it seems harmless to include.
Edit: looked it up, and umount calls sync, so there's no need to include it. And if you do include it, sync before umount, like you said.