First create two little text files. I store these in a directory called c:\scripts.
The first file is named offline.diskpart and contains this:
select disk=1
offline disk
exit
offline disk
exit
The second is named online.diskpart and contains this:
select disk=1
online disk
exit
online disk
exit
You may need to change the disk number in these scripts to match your disk. See the diskpart documentation for more info.
Then I create two shortcuts on the desktop with these properties:
Offline Backup
Target: C:\Windows\System32\cmd.exe /k C:\Windows\System32\diskpart.exe /s c:\scripts\offline.diskpart
Start In: C:\scripts
Online Backup
Target: C:\Windows\System32\cmd.exe /k C:\Windows\System32\diskpart.exe /s c:\scripts\online.diskpart
Start In: C:\scripts
When I want to take a disk offline, I click the Offline Backup shortcut. When it reports that the drive is offline, I can remove the drive from the caddy. Clicking the other shortcut puts the disk back online.
No comments :
Post a Comment
Note: Only a member of this blog may post a comment.