Re: External disk (umass) still writing: how to tell?

2019-07-26 Thread tlaronde
Thank you to both of you. Things are clearer. And since it's a spare disk and I want to test for example between eSata and USB connections, I will test various things. And if I find something of value (would it be only the differences of throughput between USB and eSata or the differences of the

Re: External disk (umass) still writing: how to tell?

2019-07-26 Thread Johnny Billquist
Hi. On 2019-07-26 13:41, tlaro...@polynum.com wrote: Hello, On Fri, Jul 26, 2019 at 01:23:34PM +0200, Johnny Billquist wrote: I think it's a serious mistake to use the physical action inside the disk as any kind of indication that there is any actual work going on, from the perspective of

Re: External disk (umass) still writing: how to tell?

2019-07-26 Thread Greg Troxel
tlaro...@polynum.com writes: You have said that you are hearing "write noises". I would suggest that you don't actually know that; you are simply hearing noises. Writing and reading are basically silent. What you hear is rotation and seeking. It would not surprise me if the disk moved the

Re: External disk (umass) still writing: how to tell?

2019-07-26 Thread tlaronde
Hello, On Fri, Jul 26, 2019 at 01:23:34PM +0200, Johnny Billquist wrote: > I think it's a serious mistake to use the physical action inside the disk as > any kind of indication that there is any actual work going on, from the > perspective of system data transfers. > > The disk can internally be

Re: External disk (umass) still writing: how to tell?

2019-07-26 Thread Johnny Billquist
I think it's a serious mistake to use the physical action inside the disk as any kind of indication that there is any actual work going on, from the perspective of system data transfers. The disk can internally be doing various stuff at any point, which is totally irrelevant from this

Re: External disk (umass) still writing: how to tell?

2019-07-26 Thread tlaronde
On Thu, Jul 25, 2019 at 08:21:02PM -0400, Greg Troxel wrote: > tlaro...@polynum.com writes: > > >> Another question is if your disk is following the specifications > >> > > > > It's a not used disk but not new that I'm using as a guinea pig because > > I don't trust it. It was in a Iomega

Re: External disk (umass) still writing: how to tell?

2019-07-25 Thread Greg Troxel
tlaro...@polynum.com writes: >> Another question is if your disk is following the specifications >> > > It's a not used disk but not new that I'm using as a guinea pig because > I don't trust it. It was in a Iomega enclosure with an ARM board, that I > bought several years ago (because I

Re: External disk (umass) still writing: how to tell?

2019-07-25 Thread tlaronde
On Thu, Jul 25, 2019 at 07:14:32PM -, Michael van Elst wrote: > tlaro...@polynum.com writes: > > >But I have heard the disk writing after the filesystem was unmounted and > >the prompt back. Several seconds after, even one minute or a bit more... > > unmounting flushes caches, so all writes

Re: External disk (umass) still writing: how to tell?

2019-07-25 Thread Michael van Elst
tlaro...@polynum.com writes: >But I have heard the disk writing after the filesystem was unmounted and >the prompt back. Several seconds after, even one minute or a bit more... unmounting flushes caches, so all writes will be done when umount returns. >This was with the USB connection. >With

Re: External disk (umass) still writing: how to tell?

2019-07-25 Thread tlaronde
On Thu, Jul 25, 2019 at 06:20:19PM -, Michael van Elst wrote: > tlaro...@polynum.com writes: > > >2) Is there a way to query the status of the disk in order to give a hint > >to the user about if it's safe or not to unplug the external device? > > It is safe to unplug the device when you

Re: External disk (umass) still writing: how to tell?

2019-07-25 Thread Michael van Elst
tlaro...@polynum.com writes: >2) Is there a way to query the status of the disk in order to give a hint >to the user about if it's safe or not to unplug the external device? It is safe to unplug the device when you have unmounted the filesystem. -- -- Michael

Re: External disk (umass) still writing: how to tell?

2019-07-25 Thread tlaronde
Hello, On Thu, Jul 25, 2019 at 12:04:52PM -0400, Greg Troxel wrote: > tlaro...@polynum.com writes: > > > It's then clear that writes are differed (the write cache is not > > settable with dkctl(8)) and that the disk gets a lot in its cache > > memory and writing only after. > > Does it write

Re: External disk (umass) still writing: how to tell?

2019-07-25 Thread Greg Troxel
tlaro...@polynum.com writes: > It's then clear that writes are differed (the write cache is not > settable with dkctl(8)) and that the disk gets a lot in its cache > memory and writing only after. Does it write things within a few seconds? > 2) Is there a way to query the status of the disk in

External disk (umass) still writing: how to tell?

2019-07-25 Thread tlaronde
If the subject line isn't clear, I hope the explanations will be: Context: I'm testing an ARM Soc (Olimex Lime2 based on Allwinner A20 and earmv7hf proc) and the board has a SATA port and is able to power a 2.5" HDD but not a 3.5" one. I have then to connect an external disk (3.5" HDD) with its