If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
dismount based on GUID ???
Hi All,
mountvol will dismount (hide) a drive based on its drive letter. Anyone know of a way to dismount based on GUID? (I have a scenario where I need to dismount a drive from the command line but have no idea what its letter is.) Many thanks, -T |
Ads |
#2
|
|||
|
|||
dismount based on GUID ???
T wrote:
Hi All, mountvol will dismount (hide) a drive based on its drive letter. Anyone know of a way to dismount based on GUID? (I have a scenario where I need to dismount a drive from the command line but have no idea what its letter is.) Many thanks, -T "offline" in Disk Management (dismounts the whole HDD) ? diskpart has "detail partition" and "detail volume" for info gathering. fsutil provides a different level of data. wmi has some commands for disks. I don't know of any "miracle" commands you can script around though. It's pretty hard to write a "blind" script that can handle every possible contingency. Paul |
#3
|
|||
|
|||
dismount based on GUID ???
On 1/4/19 3:05 PM, Paul wrote:
T wrote: Hi All, mountvol will dismount (hide) a drive based on its drive letter.Â* Anyone know of a way to dismount based on GUID? (I have a scenario where I need to dismount a drive from the command line but have no idea what its letter is.) Many thanks, -T "offline" in Disk Management (dismounts the whole HDD) ? diskpart has "detail partition" and "detail volume" for info gathering. fsutil provides a different level of data. wmi has some commands for disks. I don't know of any "miracle" commands you can script around though. It's pretty hard to write a "blind" script that can handle every possible contingency. Â*Â* Paul I am spoiled by Linux in this respect. This kind of data is readily available in /dev/disk. I can find anything I want about a drive. $ ls -al /dev/disk/ total 0 drwxr-xr-x. 8 root root 160 Jan 4 15:22 . drwxr-xr-x. 20 root root 4400 Jan 4 15:22 .. drwxr-xr-x. 2 root root 460 Jan 4 15:22 by-id drwxr-xr-x. 2 root root 60 Jan 4 15:22 by-label drwxr-xr-x. 2 root root 60 Jan 4 09:05 by-partlabel drwxr-xr-x. 2 root root 140 Jan 4 10:46 by-partuuid drwxr-xr-x. 2 root root 200 Jan 4 10:46 by-path drwxr-xr-x. 2 root root 200 Jan 4 15:22 by-uuid :'( |
Thread Tools | |
Display Modes | Rate This Thread |
|
|