Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2517

Raspberry Pi OS • How to sync just a single partition ?

$
0
0
Hi !

I am working on a software power management for my HDDs connected to the Raspberry Pi 4 USB. My Python script will put in standby a drive after a period of idle time. The problem is that I want to sync the drive first, before puting it in standby. The only command I know is the `sync`, but they say that this flushes the buffers of all drives connected to the system. Or not ?

What I want to do is that, if I put a drive in standby and I'm not reading/writing it, it must not wake up when I shutdown the Pi and the system unmount all the partitions. Or this is not possible even if I find a way to sync the drive before standby ?

Statistics: Posted by Marus780 — Wed May 08, 2024 9:36 pm



Viewing all articles
Browse latest Browse all 2517

Trending Articles