How to get external SATA drive in the Safely Remove Hardware list?

  • Thread starter Rick Blackthorn
  • Start date
R

Rick Blackthorn

An external SATA drive of mine does not appear in the Safely
Remove Hardware list, yet when I disconnect it, winxp grouses
about it in the event log (not with a pop-up window). It says:

The device 'WDC WD50 00AAKS-00TMA0 SCSI Disk Device'

(SCSI\Disk&Ven_WDC_WD50&Prod_00AAKS-00TMA0&Rev_12.0\5&25ed112b&0&000)
disappeared from the system without first being prepared for
removal.

Then, there are 4 other events saying:
The system failed to flush data to the transaction log.
Corruption may occur.

How can I get the device in the list of devices able to be
removed? Interestingly,my system disk and data disk (both SATA)
are in the list, but not the external one.
 
P

Pegasus \(MVP\)

Rick Blackthorn said:
An external SATA drive of mine does not appear in the Safely
Remove Hardware list, yet when I disconnect it, winxp grouses
about it in the event log (not with a pop-up window). It says:

The device 'WDC WD50 00AAKS-00TMA0 SCSI Disk Device'

(SCSI\Disk&Ven_WDC_WD50&Prod_00AAKS-00TMA0&Rev_12.0\5&25ed112b&0&000)
disappeared from the system without first being prepared for
removal.

Then, there are 4 other events saying:
The system failed to flush data to the transaction log.
Corruption may occur.

How can I get the device in the list of devices able to be
removed? Interestingly,my system disk and data disk (both SATA)
are in the list, but not the external one.
prohibited. - Vernon Schryver

AFAIK, only USB devices and disks installed in a hot swap
RAID array can be removed while on-line.
 
U

Uwe Sieber

Rick said:
An external SATA drive of mine does not appear in the Safely
Remove Hardware list, yet when I disconnect it, winxp grouses
about it in the event log (not with a pop-up window). It says:

The device 'WDC WD50 00AAKS-00TMA0 SCSI Disk Device'

(SCSI\Disk&Ven_WDC_WD50&Prod_00AAKS-00TMA0&Rev_12.0\5&25ed112b&0&000)
disappeared from the system without first being prepared for
removal.

Then, there are 4 other events saying:
The system failed to flush data to the transaction log.
Corruption may occur.

How can I get the device in the list of devices able to be
removed? Interestingly,my system disk and data disk (both SATA)
are in the list, but not the external one.

My commandline tool RemoveDrive should be able to prepare
the drive for save removal:
http://www.uwe-sieber.de/files/removedrive.zip

To bring it back online a 'Scan for new hardware' might be
required. It can be initiated by a
DEVCON rescan
or my RescanDevcices tool:
http://www.uwe-sieber.de/files/rescandevices.zip


If a drive is listed in the save removal dialog depend on some
device property bits.
http://groups.google.com/group/micr...ardware/browse_thread/thread/88af269e39119f5b


Greetings from Germany

Uwe
 
R

Rick Blackthorn

Pegasus \(MVP\) said:
AFAIK, only USB devices and disks installed in a hot swap
RAID array can be removed while on-line.

Interesting, because my system disk and data disk, both SATA but
not RAID, are in the list, but not the external that comes on
line.
 
R

Rick Blackthorn

Uwe Sieber said:
My commandline tool RemoveDrive should be able to prepare
the drive for save removal:
http://www.uwe-sieber.de/files/removedrive.zip

To bring it back online a 'Scan for new hardware' might be
required. It can be initiated by a
DEVCON rescan
or my RescanDevcices tool:
http://www.uwe-sieber.de/files/rescandevices.zip

If a drive is listed in the save removal dialog depend on some
device property bits.
http://groups.google.com/group/micr...ardware/browse_thread/thread/88af269e39119f5b

Thanks for these. I'll look at them.
 
R

Rick Blackthorn

Greetings Uwe. I tried removedrive and got a success indication:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>removedrive f: -b

RemoveDrive V1.4 - prepares drives for safe removal
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive 'F:\' (WDC WD50 00AAKS-00TMA0 SCSI Device)
success

C:\>

But windows still complained in the event log:
The device 'WDC WD50 00AAKS-00TMA0 SCSI Disk Device'
(SCSI\Disk&Ven_WDC_WD50&Prod_00AAKS-00TMA0&Rev_12.0\5&25ed112b&0&000)
disappeared from the system without first being prepared for
removal.

Wanted to let you know in case there is more info you might
need.
 
D

dobey

Rick Blackthorn said:
Greetings Uwe. I tried removedrive and got a success indication:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>removedrive f: -b

RemoveDrive V1.4 - prepares drives for safe removal
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive 'F:\' (WDC WD50 00AAKS-00TMA0 SCSI Device)
success

C:\>

But windows still complained in the event log:
The device 'WDC WD50 00AAKS-00TMA0 SCSI Disk Device'
(SCSI\Disk&Ven_WDC_WD50&Prod_00AAKS-00TMA0&Rev_12.0\5&25ed112b&0&000)
disappeared from the system without first being prepared for
removal.

Wanted to let you know in case there is more info you might
need.

--

Provided the drive isn't actually being accessed when removed there is no
real problem. Just make sure the HDD activity light is not on the external
drive before removing it.

Off hand the other solution might be to get an eSATA add in card - if such a
thing exists, if the event log entry bothers you.
 
U

Uwe Sieber

Rick said:
Greetings Uwe. I tried removedrive and got a success indication:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>removedrive f: -b

RemoveDrive V1.4 - prepares drives for safe removal
Freeware by Uwe Sieber - www.uwe-sieber.de
Removing Drive 'F:\' (WDC WD50 00AAKS-00TMA0 SCSI Device)
success

C:\>

But windows still complained in the event log:
The device 'WDC WD50 00AAKS-00TMA0 SCSI Disk Device'
(SCSI\Disk&Ven_WDC_WD50&Prod_00AAKS-00TMA0&Rev_12.0\5&25ed112b&0&000)
disappeared from the system without first being prepared for
removal.

Wanted to let you know in case there is more info you might
need.

Yep :)

I've made this tool initially for USB drives. Here the device
to 'eject' is the USB device which is the parent device of
the disk device. Maybe that's not the right choice for SATA
drives.
Please start it with an additional -d (like debug).

If it shows "Found removable parent Device to remove" then
it removes the SATA controller port. If it's not shown, then
the disk device is removed. In first case we could try a
special version which removes the disk device only.


Greetings from Germany

Uwe
 
R

Rick Blackthorn

I saw your reply in google groups although me newsreader didn't
get it, so I'll reply to you on this thread. Here's the -d info:

C:\>removedrive f: -d

RemoveDrive V1.4 - prepares drives for safe removal
Freeware by Uwe Sieber - www.uwe-sieber.de
volume=\\?\Volume{0d013a66-e570-11db-b715-0015f2f49c6d}
Removing Drive 'F:\' (WDC WD50 00AAKS-00TMA0 SCSI Device)
RemoveDevice('F:\',
'\\?\Volume{0d013a66-e570-11db-b715-0015f2f49c6d}', '\Device
\HarddiskVolume3', 0)
Volume's DeviceNumber=2
Dev's DevInst=3776
Device to remove

ID=SCSI\DISK&VEN_WDC_WD50&PROD_00AAKS-00TMA0&REV_12.0\5&25ED112B&0&000

CM_Query_And_Remove_SubTree Success=1 VetoType=0 VetoName=
success
 
U

Uwe Sieber

Rick said:
I saw your reply in google groups although me newsreader didn't
get it, so I'll reply to you on this thread. Here's the -d info:

C:\>removedrive f: -d

RemoveDrive V1.4 - prepares drives for safe removal
Freeware by Uwe Sieber - www.uwe-sieber.de
volume=\\?\Volume{0d013a66-e570-11db-b715-0015f2f49c6d}
Removing Drive 'F:\' (WDC WD50 00AAKS-00TMA0 SCSI Device)
RemoveDevice('F:\',
'\\?\Volume{0d013a66-e570-11db-b715-0015f2f49c6d}', '\Device
\HarddiskVolume3', 0)
Volume's DeviceNumber=2
Dev's DevInst=3776
Device to remove

ID=SCSI\DISK&VEN_WDC_WD50&PROD_00AAKS-00TMA0&REV_12.0\5&25ED112B&0&000

CM_Query_And_Remove_SubTree Success=1 VetoType=0 VetoName=
success

It successfully removes the disk device because the disk's
parent device hasn't the 'removable' flag.

Please try this tool:
http://www.uwe-sieber.de/files/removedrivebyletter.zip

It's simplified version of the RemoveDrive tool made for
demonstration. It does not care about the removable flag,
it always removes the disk's parent device. The only
command line parameter is the drive letter to remove,
like
removedrivebyletter X


Uwe
 
R

Rick Blackthorn

Please try this tool:
http://www.uwe-sieber.de/files/removedrivebyletter.zip

It's simplified version of the RemoveDrive tool made for
demonstration. It does not care about the removable flag,
it always removes the disk's parent device. The only
command line parameter is the drive letter to remove,
like
removedrivebyletter X

This one failed:

C:\>removedrivebyletter f
failed
Result=0x17
VetoName=PCI\VEN_1095&DEV_3132&SUBSYS_819F1043&REV_01\4&2a4d88f&0&00B0)


C:\>
 
U

Uwe Sieber

Rick said:
This one failed:

C:\>removedrivebyletter f
failed
Result=0x17
VetoName=PCI\VEN_1095&DEV_3132&SUBSYS_819F1043&REV_01\4&2a4d88f&0&00B0)

0x17 is CR_REMOVE_VETOED which is normal when there are open handles
to the disk or the volume. But the VetoName shows the device ID of
the Silicon Image SATA controller. I've never see a veto like this
before. Maybe it just means that it's not made for removal...

No more ideas...



Uwe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top