this post was submitted on 22 Nov 2024
2 points (58.3% liked)

Debian operating system

2747 readers
3 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 4 days ago* (last edited 4 days 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.