PC Review


Reply
Thread Tools Rate Thread

command line eject of AHCI eSata drive?

 
 
ToddAndMargo
Guest
Posts: n/a
 
      15th May 2009
Hi All,

Anyone know how to eject an AHCI eSata
drive from the command line? In other words, go
into the device manager and uninstall an eSata drive.

Many thanks,
-T
 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      15th May 2009

"ToddAndMargo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> Anyone know how to eject an AHCI eSata
> drive from the command line? In other words, go
> into the device manager and uninstall an eSata drive.
>
> Many thanks,
> -T


"Uninstall" and "Eject" is not the same thing. If you mean "Eject" then
devcon.exe may do it for you. You can download it from here:
http://download.microsoft.com/downlo...240/devcon.exe.
It requires a small amount of scripting to make it work - post again if you
need more details.


 
Reply With Quote
 
ToddAndMargo
Guest
Posts: n/a
 
      15th May 2009
Pegasus [MVP] wrote:
> "ToddAndMargo" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi All,
>>
>> Anyone know how to eject an AHCI eSata
>> drive from the command line? In other words, go
>> into the device manager and uninstall an eSata drive.
>>
>> Many thanks,
>> -T

>
> "Uninstall" and "Eject" is not the same thing. If you mean "Eject" then
> devcon.exe may do it for you. You can download it from here:
> http://download.microsoft.com/downlo...240/devcon.exe.
> It requires a small amount of scripting to make it work - post again if you
> need more details.
>
>


Thank you. I do not think you can eject an eSata drive.
But, I will give it a try.

-T
 
Reply With Quote
 
ToddAndMargo
Guest
Posts: n/a
 
      15th May 2009
ToddAndMargo wrote:
> Hi All,
>
> Anyone know how to eject an AHCI eSata
> drive from the command line? In other words, go
> into the device manager and uninstall an eSata drive.
>
> Many thanks,
> -T


Okay. A little better description of what I want to do.
I really do want to "remove" from the "Device manager"

-T



Taken from :
http://web.archive.org/web/200801241.../106/10744.htm

SATA: Hot Plugging Drives Under Windows 2000/XP

This feature is not explicitly highlighted in our current drivers, but
all SATA controllers from Silicon Image do support hot plug capability.
To remove a drive from a powered up system, do the following:

* Enter the Windows Device Manager (through Control Panel or right
clicking on My Computer and going to Properties)
* Go to Disk Drives and find the disk you want to remove
* Right click on the desired disk drive and select Remove/Disable

After performing this operation, you can remove the hard drive without
risk of losing any data that is currently stored in cache memory.

To plug in a new SATA drive in the array, you just need to plug in the
power and serial cables and Windows will automatically detect the new
HD. NOTE: If you are re-attaching a drive after a remove operation as
explained above, you must make sure that the HD is power cycled (power
cable unplugged) before re-attaching the HD serial data cable.
Comments/Special Instructions:

It is not recommended to perform these hot plug/unplug actions on
earlier versions of Windows such as Win9x or WinME since system lockups
can occur.
 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      15th May 2009

"ToddAndMargo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> ToddAndMargo wrote:
>> Hi All,
>>
>> Anyone know how to eject an AHCI eSata
>> drive from the command line? In other words, go
>> into the device manager and uninstall an eSata drive.
>>
>> Many thanks,
>> -T

>
> Okay. A little better description of what I want to do.
> I really do want to "remove" from the "Device manager"
>
> -T
>
>
>
> Taken from :
> http://web.archive.org/web/200801241.../106/10744.htm
>
> SATA: Hot Plugging Drives Under Windows 2000/XP
>
> This feature is not explicitly highlighted in our current drivers, but all
> SATA controllers from Silicon Image do support hot plug capability. To
> remove a drive from a powered up system, do the following:
>
> * Enter the Windows Device Manager (through Control Panel or right
> clicking on My Computer and going to Properties)
> * Go to Disk Drives and find the disk you want to remove
> * Right click on the desired disk drive and select Remove/Disable
>
> After performing this operation, you can remove the hard drive without
> risk of losing any data that is currently stored in cache memory.
>
> To plug in a new SATA drive in the array, you just need to plug in the
> power and serial cables and Windows will automatically detect the new HD.
> NOTE: If you are re-attaching a drive after a remove operation as
> explained above, you must make sure that the HD is power cycled (power
> cable unplugged) before re-attaching the HD serial data cable.
> Comments/Special Instructions:
>
> It is not recommended to perform these hot plug/unplug actions on earlier
> versions of Windows such as Win9x or WinME since system lockups can occur.


Devcon.exe can disable a device. Whether this is sufficient for your purpose
I do not know.


 
Reply With Quote
 
Anna
Guest
Posts: n/a
 
      15th May 2009

"ToddAndMargo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> Anyone know how to eject an AHCI eSata
> drive from the command line? In other words, go
> into the device manager and uninstall an eSata drive.
>
> Many thanks,
> -T



T&M...
Just out of curiosity, have you run into any problem(s) simply disconnecting
an eSATA-connected HDD from your system(s) and that accounts why you're
seeking a way to uninstall the drive from Device Manager?

I ask the question because we routinely connect/disconnect eSATA HDDs from
our desktop systems and I can't recall a single instance of any problem
experienced re loss or corruption of data or any physical problem affecting
the disk/device as a result of simply disconnecting or powering-off the
device. And over the years (primarily with SATA-II HDDs) we've performed
these operations hundreds of times in a fairly wide variety of systems. I
suppose it goes without saying that we avoid disconnecting the device during
data transfer (disk-cloning operations or copying/moving massive amounts of
data).
Anna


 
Reply With Quote
 
ToddAndMargo
Guest
Posts: n/a
 
      16th May 2009
Anna wrote:
> "ToddAndMargo" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi All,
>>
>> Anyone know how to eject an AHCI eSata
>> drive from the command line? In other words, go
>> into the device manager and uninstall an eSata drive.
>>
>> Many thanks,
>> -T

>
>
> T&M...
> Just out of curiosity, have you run into any problem(s) simply disconnecting
> an eSATA-connected HDD from your system(s) and that accounts why you're
> seeking a way to uninstall the drive from Device Manager?
>
> I ask the question because we routinely connect/disconnect eSATA HDDs from
> our desktop systems and I can't recall a single instance of any problem
> experienced re loss or corruption of data or any physical problem affecting
> the disk/device as a result of simply disconnecting or powering-off the
> device. And over the years (primarily with SATA-II HDDs) we've performed
> these operations hundreds of times in a fairly wide variety of systems. I
> suppose it goes without saying that we avoid disconnecting the device during
> data transfer (disk-cloning operations or copying/moving massive amounts of
> data).
> Anna
>
>


Hi Anna,

I think maybe you have a piece of software involved that
is dismounting your eSata drives for you, such as Backup
Assist. You may also have some setting that forces instant
writes to your drives (no delayed writes). Or maybe you
got really, really lucky.

In my research, I came across this:

http://mysite.verizon.net/kaakoon/hotswap/index_enu.htm

I sits on your task bar just like your green arrow
(safely remove hardware), except it has a red arrow.
You should consider using this instead of just grabbing
and jerking (your luck may run out).

HTH,
-T
 
Reply With Quote
 
Anna
Guest
Posts: n/a
 
      16th May 2009

>> "ToddAndMargo" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi All,
>>>
>>> Anyone know how to eject an AHCI eSata
>>> drive from the command line? In other words, go
>>> into the device manager and uninstall an eSata drive.
>>>
>>> Many thanks,
>>> -T



> Anna wrote:
>> T&M...
>> Just out of curiosity, have you run into any problem(s) simply
>> disconnecting an eSATA-connected HDD from your system(s) and that
>> accounts why you're seeking a way to uninstall the drive from Device
>> Manager?
>>
>> I ask the question because we routinely connect/disconnect eSATA HDDs
>> from our desktop systems and I can't recall a single instance of any
>> problem experienced re loss or corruption of data or any physical problem
>> affecting the disk/device as a result of simply disconnecting or
>> powering-off the device. And over the years (primarily with SATA-II HDDs)
>> we've performed these operations hundreds of times in a fairly wide
>> variety of systems. I suppose it goes without saying that we avoid
>> disconnecting the device during data transfer (disk-cloning operations or
>> copying/moving massive amounts of data).
>> Anna



"ToddAndMargo" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Anna,
>
> I think maybe you have a piece of software involved that
> is dismounting your eSata drives for you, such as Backup
> Assist. You may also have some setting that forces instant
> writes to your drives (no delayed writes). Or maybe you
> got really, really lucky.
>
> In my research, I came across this:
>
> http://mysite.verizon.net/kaakoon/hotswap/index_enu.htm
>
> I sits on your task bar just like your green arrow
> (safely remove hardware), except it has a red arrow.
> You should consider using this instead of just grabbing
> and jerking (your luck may run out).
>
> HTH,
> -T



T&M...
No, we do not use any software that "dismounts" a SATA or eSATA-connected
HDD when we disconnect the HDD from the system. As I indicated we simply
either power-off the external device or remove the signal (data) cable (SATA
or eSATA) from the machine. As simple as that.

We do not employ any special "setting" or exotic device/software in this
process. All I can tell you is that as I described above we have never run
into problems with this "process". At least as related to SATA-II HDDs. And
I'm aware of scores of other PC users whose experience parallels ours in
this regard.

I take it from your last post that you haven't personally encountered any
problems re this issue but that your research indicates a need from some
auxiliary software/device to avoid any problems in this area. Do I have this
right?
Anna
All I can do is relate our experiences


 
Reply With Quote
 
Tim Meddick
Guest
Posts: n/a
 
      16th May 2009
Pegasus,
In your first reply you stated:

>"If you mean "Eject" then devcon.exe may do it for you. "
>


....I really approve of command-line tools, did you actually mean 'eject'
here or, in fact, 'disable' ?

If 'eject' then how is devcon.exe configured to do this?

==


Cheers, Tim Meddick, Peckham, London. :-)



"Pegasus [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "ToddAndMargo" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> ToddAndMargo wrote:
>>> Hi All,
>>>
>>> Anyone know how to eject an AHCI eSata
>>> drive from the command line? In other words, go
>>> into the device manager and uninstall an eSata drive.
>>>
>>> Many thanks,
>>> -T

>>
>> Okay. A little better description of what I want to do.
>> I really do want to "remove" from the "Device manager"
>>
>> -T
>>
>>
>>
>> Taken from :
>> http://web.archive.org/web/200801241.../106/10744.htm
>>
>> SATA: Hot Plugging Drives Under Windows 2000/XP
>>
>> This feature is not explicitly highlighted in our current drivers, but
>> all SATA controllers from Silicon Image do support hot plug capability.
>> To remove a drive from a powered up system, do the following:
>>
>> * Enter the Windows Device Manager (through Control Panel or right
>> clicking on My Computer and going to Properties)
>> * Go to Disk Drives and find the disk you want to remove
>> * Right click on the desired disk drive and select Remove/Disable
>>
>> After performing this operation, you can remove the hard drive without
>> risk of losing any data that is currently stored in cache memory.
>>
>> To plug in a new SATA drive in the array, you just need to plug in the
>> power and serial cables and Windows will automatically detect the new HD.
>> NOTE: If you are re-attaching a drive after a remove operation as
>> explained above, you must make sure that the HD is power cycled (power
>> cable unplugged) before re-attaching the HD serial data cable.
>> Comments/Special Instructions:
>>
>> It is not recommended to perform these hot plug/unplug actions on earlier
>> versions of Windows such as Win9x or WinME since system lockups can
>> occur.

>
> Devcon.exe can disable a device. Whether this is sufficient for your
> purpose I do not know.
>



 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      16th May 2009

"Tim Meddick" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Pegasus,
> In your first reply you stated:
>
>>"If you mean "Eject" then devcon.exe may do it for you. "
>>

>
> ...I really approve of command-line tools, did you actually mean 'eject'
> here or, in fact, 'disable' ?
>
> If 'eject' then how is devcon.exe configured to do this?


I am guilty of using sloppy language in my first reply. There are utilities
to eject a device, e.g. a USB mass storage device, and there are utilities
to disable a device, e.g. an adapter. Devcon.exe can
install/remove/enable/disable devices. Thanks for pointing out the error of
my ways . . .


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AHCI and eSATA ToddAndMargo Windows XP Networking 1 2nd Mar 2009 05:00 PM
AHCI and eSATA ToddAndMargo Windows XP General 1 2nd Mar 2009 09:04 AM
How to eject/dismount an external USB drive from command line? Thomas Stein Storage Devices 1 6th Aug 2005 12:54 AM
How to eject/dismount an external USB drive from command line? Thomas Stein Windows XP Hardware 1 1st Aug 2005 11:08 PM
How to eject/dismount an external USB drive from command line? Thomas Stein Microsoft Windows 2000 Hardware 1 1st Aug 2005 11:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:54 PM.