Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: External hard drive can't be removed

07 Dec 2011   #1
AllOnTheBus

Windows 7 Home Premium 64 Bit OS
 
 
External hard drive can't be removed

Hello all

I have previously started a thread asking a question about
why external drives cannot be safely removed due to being either
in use by another process or wording similar to this.

I have now searched this forum for any previous threads relating to this problem, and also at other forums without any definitive answer as to a solution. I was previously told about a program called LockHunter which
I have used to identify the system processes which stop the drive from being able to be removed. Unfortunately, the tools within the program cannot solve the problem as shown in the screenshot below:

Attachment 187300

I have searched around for a few hours trying to find a solution to this problem to no avail.

Does anyone know of a definitive solution that they could outline step by step here or is this another bug in Windows that they have deemed to hard to patch and therefore placed the topic in the too hard basket?

Ty in advance for replies

Just thought I would add that I just checked the security of my external drive. This is unrelated to the previous question, but does anyone know why there would be an SID
(EG: S-1-5-21 ETC ETC) named as the owner of my external drive? I have just put about 600GB worth of backup on this and prior to that it was unused.

I understand that SID's can be remnants from having the drive plugged in to other machines, however the same SID which appears if I look at the owner of the root drive letter does not also appear in the first screen in the security tab under group or user names. I have always been useless when it comes to setting permissions and how they work - could anyone explain to me what is going on here please?


My System SpecsSystem Spec
.

08 Dec 2011   #2
badger906

Windows 7 Ultimate x64, & Mac OS X 10.9.2
 
 

as the wise Linus from "linus tech tips" once said "lifes to short to saftley remove"
My System SpecsSystem Spec
08 Dec 2011   #3
AllOnTheBus

Windows 7 Home Premium 64 Bit OS
 
 

Life is short I will agree with that.

Really not a helpful post though as you are probably aware.
My System SpecsSystem Spec
.


08 Dec 2011   #4
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by AllOnTheBus View Post
Life is short I will agree with that.

Really not a helpful post though as you are probably aware.
I could only get my USB drives to safely remove about 20% of the time. I changed the setting for them in Device Manager to Hot Plug. I use sync.exe from SysInternals:
Sync

to make sure disk data is flushed to the drive before I shut off my USB docks or unplug my USB key. Haven't had any issues.

afa the permission thing, this post may or may not fix it up:

File permissions mystery!

edit: I realize sync.exe was last updated in 2006. But on NT based systems like XP, Vista, W7, all it does is lock the volume, then unlock it. The OS automatically flushes all disk buffers when a volume is locked. So it's something that's likely to work fine for a long time.
My System SpecsSystem Spec
08 Dec 2011   #5
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Some processes have this habit of not releasing the handles. That does not mean that the drive cannot be removed. The "safely remove" function is there to prevent write operations in process to be prematurely terminated. And that is only significant, if the device was set to allow write caching.

But if the last write operation to the device has been a few seconds ago, it is very unlikely that there is still data "in transfer".

If you want to be 100% sure that the device can be removed, do a reboot. That will terminate all writes and release all handles.
My System SpecsSystem Spec
08 Dec 2011   #6
carwiz

Windows 7 Pro-x64
 
 

Those are part of the NT file system and normally of no concern to the user. I suspect Windows was terminated or the drive unplugged during a write. Or possibly a driver failure. Windows automatically saves backup of the metadata files and automatically restores them so with these staying open seems to indicate the backup is also hosed. The SID is one of Windows' global IDs. Windows is the owner of the metadata files.

If you can read the disk, I would try to backup it up and run chkdsk. Some of the files may be lost already though.
My System SpecsSystem Spec
08 Dec 2011   #7
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

Reboot, if that doesn't work reboot safe mode.
If you can shut off you can just remove it then.
My System SpecsSystem Spec
08 Dec 2011   #8
carwiz

Windows 7 Pro-x64
 
 

You can't just remove Windows NTFS. The disk will need to be repaired or formated.
My System SpecsSystem Spec
08 Dec 2011   #9
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by carwiz View Post
You can't just remove Windows NTFS. The disk will need to be repaired or formated.
I do it multiple times daily. Set the drive in device manager to hot plug rather than write caching. Run sync.exe. Press the button(in the case of a USB dock) or pull out the key drive.

If I waited for safely remove to work I'd never be able to do anything.

edit:
As WHS said, wait for file operations to complete. Obviously you don't yank the drive out while you're coping a file on. I run sync just to make sure the buffers are flushed. Now and then I'll see the access light give a flicker after I run it. It's just a precaution.
My System SpecsSystem Spec
08 Dec 2011   #10
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Quote:
If I waited for safely remove to work I'd never be able to do anything.
LOL, real life meets theory.
My System SpecsSystem Spec
Reply

 External hard drive can't be removed




Thread Tools





Similar help and support threads
Thread Forum
Best external to external hard drive synchronized backup plan?
So I want to clone one external 2TB with another. So one drive is the main use one and another the backup one. So I copy everything over to backup and i store the backup at another house and then I start using the main: deleting and adding/editing files. What is the best software or whatever to...
Hardware & Devices
External Hard Drive - Drive Letter changed - unable to change back
I have a USB external hard drive that I keep all my documents etc on (had it for years) I upgraded from Vista Home to & Home Premium then had to upgrade recently to Professional to run my Sage. Through all these upgrades my ext. drive ran fine. Occasionally the drvie letter would change if I...
Hardware & Devices
BSOD when booting up ONLY when second hard drive is removed
Hi, I have 2 hard drives in my computer, one with the OS and programs on it, and a second drive just for storage (videos and such, no programs). Recently my second hard drive has started having problems (bad sectors), so I recovered all the data I could and am going to RMA it. The second...
BSOD Help and Support
how to make your internal hard drive into and external hard drive ?
I have an internal hard disk not in use ,and I would like to make it as external disk ! I looked on the net and I found I should have the " encelsure " butt I think I wont find it here in my city . So is there another way ? like usb -esata cable ?
Hardware & Devices
Internal Hard Drive acting like an External Hard Drive
Hi guys, I'm new on any sort of forums so go easy if it's a stupid question..but here goes. Me and my brother built me a new computer from scratch (he did the building - i did the watching). To cut a long story short - I purchased an internal hard drive from Overclockers UK. It's a Samsung...
Hardware & Devices
Removed my Vista hard drive, now Windows 7 won't Boot?
Hey everyone. I obtained a student copy of Windows 7 back in October like many of us did, and like many of us, I installed as a clean install, not an upgrade. Or so I thought. I was running Windows 7 for months before I decided to finally remove the Vista harddrive (I installed Windows 7 on the...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:33.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App