stop disk with script

  • Thread starter Thread starter Glenn Clark
  • Start date Start date
G

Glenn Clark

Hi all

I have a number of sata hotswap cages used for backups. Now to remove the
drive I need to stop it first as the card does not support hotswap. Is there
a was I can use a script to stop drive drive so I can schedule it and a user
can just remove it when they come in

Cheers

Glenn
 
Glenn Clark said:
Hi all

I have a number of sata hotswap cages used for backups. Now to remove the
drive I need to stop it first as the card does not support hotswap. Is
there a was I can use a script to stop drive drive so I can schedule it
and a user can just remove it when they come in

Cheers

Glenn

You could experiment with devcon.exe
http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe

Run this command to find out your device IDs:
devcon.exe hwids "*" > c:\id.txt

then look at c:\id.txt to find the ID for your SATA disk.
To disable the disk, run this command, using your own ID string:
devcon disable "PCI\VEN_10B9&DEV_5237&SUBSYS_05401014&REV_03"
 
Glenn said:
Hi all

I have a number of sata hotswap cages used for backups. Now to remove the
drive I need to stop it first as the card does not support hotswap. Is there
a was I can use a script to stop drive drive so I can schedule it and a user
can just remove it when they come in

You can try my RemoveDrive:
http://www.uwe-sieber.de/files/removedrive.zip

It's a commandline version of the 'Safely Remove Hardware'
facility.


Uwe
 
Pegasus said:
You could experiment with devcon.exe
http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe

Run this command to find out your device IDs:
devcon.exe hwids "*" > c:\id.txt

then look at c:\id.txt to find the ID for your SATA disk.
To disable the disk, run this command, using your own ID string:
devcon disable "PCI\VEN_10B9&DEV_5237&SUBSYS_05401014&REV_03"


If you do that way then don't forget to do a "devcon enable",
otherwise the drive will not work next time...


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

Back
Top