Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Installation / Removal
| |-+  Rockbox Utility
| | |-+  UMS devices need to be unmounted properly!!
« previous next »
  • Print
Pages: [1]

Author Topic: UMS devices need to be unmounted properly!!  (Read 1190 times)

Offline pwabrahams

  • Member
  • *
  • Posts: 37
UMS devices need to be unmounted properly!!
« on: August 14, 2011, 05:41:55 PM »
Several times I've tried updating the Rockbox software via the Utility and got a parity error when I tried to restart my device (Sansa Clip+).   I finally discovered why.   The Utility indicates that the process is complete, especially since there's an OK button to click.  But it isn't.  There's more writing to be done.  If I wait for a while, I see the device flash "Connecting" a couple of times, then flash "Writing", then flash "Connecting" again.  It's necessary to wait until all writing is complete before restarting the device.   The problem is that aside from that one message -- which you might never see if you restart too quickly -- there's no indication that the process is incomplete.  Even then, there's no specific indication that you're done.  You just have to wait a while until you see several Connectings in a row without a Writing.

This was a lesson painfully learned.  I wonder if there's a way to save others from experiencing this problem.
« Last Edit: August 15, 2011, 06:59:20 AM by JdGordon »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Utility hazard -- WARNING!!!
« Reply #1 on: August 14, 2011, 05:47:09 PM »
Quote from: pwabrahams on August 14, 2011, 05:41:55 PM
The Utility indicates that the process is complete, especially since there's an OK button to click.  But it isn't.  There's more writing to be done.  If I wait for a while, I see the device flash "Connecting" a couple of times, then flash "Writing", then flash "Connecting" again.  It's necessary to wait until all writing is complete before restarting the device. 

Yes, thats how USB devices work on Windows and linux.  You have to to unmount/eject them before disconnecting.  If you don't, not everything gets written and your files will be corrupted as you've learned.   
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Utility hazard -- WARNING!!!
« Reply #2 on: August 14, 2011, 06:34:19 PM »
Under Windows it is possible to "Optimize for performance" or "Optimize for quick removal". Using the latter option disable write caching
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Utility hazard -- WARNING!!!
« Reply #3 on: August 15, 2011, 01:46:13 AM »
This is NOT a "Utility Hazard", that is completely nonsense. It has NOTHING to do with Rockbox Utility.

This is simply how computers work: all modern Operating Systems do write caching (not only Windows and Linux as already mentioned but also Mac OS X). You should NEVER remove a drive without "safely remove"ing it first -- CD drives have a button you press so the OS knows you're going to remove it. USB drives don't, so you need to tell the system somehow about it (like by using the icon in the systray on Windows).

Quote from: pwabrahams on August 14, 2011, 05:41:55 PM
This was a lesson painfully learned.  I wonder if there's a way to save others from experiencing this problem.

Sure: by not allowing people to use a computer that lack basic knowledge about how it works. You wouldn't be surprised to cut yourself with a razor if you use it improperly, wouldn't you? And it wouldn't be a hazard with the shaving foam, would it?

And speaking about programs again, there is no (simple) way for a program to tell if a file is actually written to disk or still in the OS cache -- a program shouldn't care about that, so there's not much a normal application can do about this. And Rockbox Utility doesn't tell to immediately remove the drive for several reasons (you might want to install other stuff or copy music anyway ...)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Installation / Removal
| |-+  Rockbox Utility
| | |-+  UMS devices need to be unmounted properly!!
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.081 seconds with 15 queries.