On 05/07/18 21:23, Roger Heflin wrote:
Generally when I am messing with usb drives I have used these 2 commands:
grep Dirty /proc/meminfo (dirty is the amount of write buffers that
need to be flushed for all disks, most will usually be the disk that
was just copied to)
the second is "vmstat 1" and watch the bi/bo columns as they show
reads and writes to the disk subsystem, if it umounts when the writes
stop that implies the sync may have returned before it actually did
all its work.
.
I connected one of the usb flash drives, a 4G PNY Attache that has an
audio book file on it and clicked mount and then unmount on the desktop
icon, the usual 2 minute delay to unmount occurred.
Then I tried again and issued the following commands, nothing was being
written to the flash memory:
[root@Box10 bobg]# grep Dirty /proc/meminfo
Dirty: 324 kB
And vmstat looks the same as when tried earlier without touching the
mount/unmount in the desktop icon.
[root@Box10 bobg]# vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system--
------cpu-----
r b swpd free buff cache si so bi bo in cs us sy
id wa st
1 0 0 4397596 84492 1655812 0 0 23 15 205 617 8
1 90 1 0
0 0 0 4390280 84492 1663116 0 0 0 0 448 1887 8
2 90 0 0
0 0 0 4390288 84492 1663076 0 0 0 0 409 1207 7
2 92 0 0
1 0 0 4390280 84492 1663076 0 0 0 0 389 1267 8
1 91 0 0
1 0 0 4390280 84492 1663076 0 0 0 0 385 1170 8
2 90 0 0
1 0 0 4390396 84492 1663076 0 0 0 28 417 1300 7
2 91 0 0
1 0 0 4390264 84500 1663076 0 0 0 12 409 1313 8
2 85 5 0
^C
I'm not sure what all this is telling me but I will try clearing the
flash drive and repeating these commands with an actual write. I clear
the flash drive by doing:
# cd /run/media/bobg/PNYFD
# rm -fr *
Then write the audio book file:
$ cd /home/bobg/Downloads/Quirky
$ cp * /run/media/bobg/PNYFD
/Then wait the 30 seconds or so until the write finishes, e.g. the
prompt comes back, enter "sync," then exit the /run/media file [I use
two work spaces, one su and the other root], then unmount via the
desktop icon where I have to wait two minutes for it to finish
unmounting before disconnecting the drive./
/I've done this hundreds of times and it always works for me without a
hitch except for the delay that became manifest perhaps two years ago
... I added the "sync" step as I had done with sd cards some time ago
while trying to ensure that I was doing all I knew, not really knowing
if it is effective in this case. It doesn't seem to help./
--
Bob Goodwin - Zuni, Virginia, USA
http://www.qrz.com/db/W2BOD
box10 FEDORA-27/64bit LINUX XFCE Fastmail POP3
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org