On 11/5/18 10:03 PM, Paul Allen Newell wrote: > ToddAndMargo: > > I am struggling with this one as well. To the best of my googling, it > seems that the "sync" command needs to be done before clicking "safely > remove" (or whatever). Documentation also says that "sudo umount > <stick>" should do it, but I have experienced at least one instance > where it didn't seem like it worked ... not certain what happened. > > I am still testing but I "think" I am seeing that doing a "safely > remove" and then a sync before physically removing gives best result (as > in no pop-up warning). Do not understand why this is. > > Not happy that the led light is vanishing on newer sticks ... > > The "sync" command does not appear to be all that nice to the stick and > there doesn't appear to be any way to isolate the "sync" to the stick. If you issue the sync command, give it a "-f" and specify a file on that stick (perhaps the root of the filesystem): sync -f /flash/mountpoint/ then it should only sync the filesystem on /flash/mountpoint. > I would hope that someone on this user-list who is more knowledgeable > will correct me with a better way. That's the best I can offer. Remember that USB and FLASH are a lot slower than IDE/SATA/SAS stuff. > On 11/05/2018 09:03 PM, ToddAndMargo via users wrote: >> Hi All, >> >> I am starting to use flash drive s with no led activity indicator. >> In my scripts that write to them, I am able to umount then watch >> the blinking lights to make sure it is done before removing them >> >> But with no led indicator, how can I test from my script to >> make sure it is done writing? As far as I know, there's no way to reliably tell if everything has been flushed to the media. The sync command above shouldn't return until it's complete, so if you include it in your script, you should be OK. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - You know the old saying--any technology sufficiently advanced is - - indistinguishable from a Perl script - - --Programming Perl, 2nd Edition - ---------------------------------------------------------------------- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx