Don't pull that plug too quickly

A word of warning.  Here's a little popup that made my heart flutter last night:

It happened when I was preparing to suspend my laptop so I could take it with me and get a little work done while I was out & about.

I store VPC images on an external LaCie d2 hard drive that is connected to my laptop via USB.  What I'd just done was save the state of the VPC I was working in at the time.  Because I've had problems in the past with suspending & resuming my laptop while a VPC image was running, I've made it a habit to save the VPC before suspending.  As soon as VPC indicated it was done saving everything, I pulled all the plugs that were tethering my laptop to my desk to head for the car.  A beat after pulling the plug, that scary little balloon pops up. 

Apparently even though VPC proper was done writing everything out to disk, Windows wasn't done just yet.  Delayed write is one of those features of Windows that I knew was there, but not one I dwelled at all in my day to day life; or had ever been affected in a negative way by before.  So it wasn't even on my mental radar when I pulled the plug.

Luckily it was just the VSV file where the state of my VPC was stored that was hosed.  The VMC file that contains the VPC's configuration was also toast (the reported file size was correct, but it appeared empty in notepad).  After deleting the corrupt VSV file and restoring the VMC file with a backed up copy, I've sinced booted that VPC and had a look around.  It seems to be working fine, but I suppose time will tell.

At any rate, that was a little too close for comfort.

So don't be too quick to pull that plug.


Posted May 27 2005, 07:55 AM by mike-woodring

Comments

swildermuth@adoguy.com (Shawn Wildermuth) wrote Re: Don't pull that plug too quickly
on 05-27-2005 8:12 AM
USB Drives are too easy to just pull, I always 'stop' them just in case...
Mike wrote re: Don't pull that plug too quickly
on 05-27-2005 8:41 AM
Sure. Rub it in. :-)

Maybe I should have started my post with "A word of warning for lazy people like me."
Sahil Malik wrote re: Don't pull that plug too quickly
on 05-27-2005 10:21 AM
That error can be caused in many more circumstances than just pulling the plug too soon.
Mike wrote re: Don't pull that plug too quickly
on 05-27-2005 11:03 AM
And those would be....?

In my case, it was definitely pulling the plug that caused the error. I did it on purpose several times this morning to monitor what was happening with filemon and to capture the screenshot of the error message.
Ry Jones wrote Delayed write failed
on 05-27-2005 12:05 PM
losing network connectivity, using windows file sharing over nat, lots of stuff.

I also always stop my usb / firewire drives before I unplug them - after too many losses.
Mike wrote re: Don't pull that plug too quickly
on 05-27-2005 12:33 PM
Oh, sure. I took Sahil's comment to mean what happened to me might not have been related to me pulling the plug. Since he didn't list any 'for examples' of other circumstances he was referring to, I couldn't tell that he was just trying to be informative and wasn't really commenting on cause & effect.

And *yes* I get that the right thing to do is to properly stop the device. I always have. But that's never stopped me from just pulling the plug anyways, being the lazy guy that I am :-) I was just doing my small part to warn my kindred spirits that danger lurks for those of us who have always willfully ignored that little 'Safely Remove Hardware' icon...
Sahil Malik wrote re: Don't pull that plug too quickly
on 05-27-2005 5:19 PM
It could also be a sign of an impending harddisk failure :).
Sean wrote re: Don't pull that plug too quickly
on 05-31-2005 9:51 AM

Can you turn off write caching on the drive? There's also the "Optimize for quick removal" option.

(Right click on the drive in Windows Explorer -> properties, select the hardware tab, choose the device, hit properties, then the policies tab
Mike wrote re: Don't pull that plug too quickly
on 05-31-2005 10:22 AM
Thanks, Sean. That was a new one for me. But oddly, when I check it out, I discovered that it was already configured that way by default:

http://www.bearcanyon.com/etc/lacieproperties.jpg
Scott Allen wrote re: Don't pull that plug too quickly
on 06-16-2005 4:51 AM
I've also had that error a number of times after hibernating and unhibernating a laptop with an external NTFS formatted drive plugged in. For me I'm sure this is an NTFS "thing". It's hard to remember to "stop" devices before just closing the lid.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?