Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Files copied to USB thumb drive completely gone
- Date: Thu, 5 Nov 2009 09:22:31 +0900
- From: Curt Sampson <cjs@example.com>
- Subject: Re: [tlug] Files copied to USB thumb drive completely gone
- References: <4AEED4A8.8050601@example.com> <20091102144555.f827166f.attila@example.com> <4AEF033E.8020605@example.com> <8551bb4d0911031948s6e41b6daga09c26c433b5232c@example.com> <abb599560911040257i1a76f455r9b29b346bf34751e@example.com> <FF3FA413-6466-44C3-A619-A8A8D094AE5F@example.com>
- User-agent: Mutt/1.5.18 (2008-05-17)
On 2009-11-04 13:19 +0100 (Wed), Niels Kobschätzki wrote: > > I haven't seen such issues so far, but I have noticed that some of > > my (old) USB flashdrives continue to blink for a second or two after > > `umount` has returned. > > If you write to an USB-flash-drive often data is not directly copied > but goes only into a write cache. When you unmount the device the > content of the write-cache will be written to the USB-flash-drive. Note that he said "after `umount` has returned". From what I've seen, umount won't return under Linux until the unmount is complete, meaning that the buffer cache has been entirely written. I suspect that it's simply hysteresis in the light. An actual write operation will happen in a few milliseconds, and a light flash that short would be rather hard to see. A typical way to deal with this is to give the light two modes: off and blinking at 2 Hz. Whenever the drive receives a request for an operation, it sets the light to blinking mode with a timeout of 2 seconds until it goes back to non-blinking mode. Thus, the light will always blink for long enough that the user can see it, will continue to blink as long as operations are being performed, and it will never flicker so fast it can't be seen. cjs -- Curt Sampson <cjs@example.com> +81 90 7737 2974 Functional programming in all senses of the word: http://www.starling-software.com
- References:
- [tlug] Files copied to USB thumb drive completely gone
- From: Dave M G
- Re: [tlug] Files copied to USB thumb drive completely gone
- From: Attila Kinali
- Re: [tlug] Files copied to USB thumb drive completely gone
- From: Dave M G
- Re: [tlug] Files copied to USB thumb drive completely gone
- From: Craig Olinsky
- Re: [tlug] Files copied to USB thumb drive completely gone
- From: Kalin KOZHUHAROV
- Re: [tlug] Files copied to USB thumb drive completely gone
- From: Niels Kobschätzki
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] recomendations for a functional language
- Next by Date: [tlug] LVM2 and resizing partition
- Previous by thread: Re: [tlug] Files copied to USB thumb drive completely gone
- Next by thread: [tlug] Scaling Agile
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links