Solved

Run "Rescan Disks" from command line

Posted on 2008-06-26
3
2,408 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
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

785 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