Solved

Run "Rescan Disks" from command line

Posted on 2008-06-26
3
2,685 Views
Last Modified: 2010-03-26
Is there a way to execute the service "Rescan Disks" from the command line.
The manual way to run it is right click my computer then Manage >> Storage. Right click on "Disk Management" and there is an option to "Rescan Disks" but I'd like to run it using an automated scheduled task.

I need this in order to automate the "hot swap" of our SBS Server's mobile rack hard drives that are used for daily backup. That is, when using SNT's ST-136SATA mobile rack, which is supposed to be hot swappable, there is an option to turn off the hard drive power and switch with another drive while the server is running. Unfortunately, when replacing the drive with another one the drive is removed from the drives list available in the Windows Explorer and in the "Disk Management". The only thing that makes windows to recognize the disk is "Rescan Disks" command.

If not, is there any other alternative to make windows recognize the hot swapped drive?


Thanks,
Tomer.
0
Comment
Question by:Tomer73
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Expert Comment

by:slam69
ID: 21873813
chkdsk /r from teh command line whenin the relevant route directory of drive
0
 
LVL 70

Accepted Solution

by:
KCTS earned 125 total points
ID: 21873832
diskpart rescan
0
 

Expert Comment

by:laf17c0dx
ID: 25631576
Exact diskpart in this particular case is:
echo rescan>rescan.txt & diskpart /s rescan.txt
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a user of the discontinued Microsoft Office Accounting 2008 (MSOA) and have to move to a new computer running Windows 8, you will be unhappy to discover that it won't install.  In particular, Microsoft SQL Server 2005 Express Edition (SSE…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question