this post was submitted on 22 Nov 2024
3 points (61.5% 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
 

If one unmounts a disk, is that disk still available for write and can the following sync do anything?

[Solved]

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 month ago* (last edited 1 month ago)

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.