+ Post New Thread
Results 1 to 6 of 6
Windows Server 2012 Thread, Identifying a mounted VHD in Technical; I'm currently doing some maintenance/housekeeping to our Hyper-V servers and someone (I think it may have been a previous member ...
  1. #1

    Join Date
    Jun 2008
    Location
    Dawlish/Teignmouth
    Posts
    270
    Thank Post
    45
    Thanked 40 Times in 39 Posts
    Rep Power
    21

    Identifying a mounted VHD

    I'm currently doing some maintenance/housekeeping to our Hyper-V servers and someone (I think it may have been a previous member of staff in our department) has mounted a VHD on one of the servers. However, because Windows doesn't seem to identify the VHD that was used, I am unable to verify that the drive is still in use somewhere before I go prodding/moving/deleting anything.

    Does anyone know how I can find this out please?

  2. #2

    Join Date
    Mar 2010
    Location
    Leeds
    Posts
    420
    Thank Post
    80
    Thanked 46 Times in 41 Posts
    Rep Power
    18
    can you map a drive letter to the VHD so it appears in computer and see if you can identify any of the files on it?

  3. Thanks to jonnykewell1 from:

    Shielder (21st November 2013)

  4. #3

    Join Date
    Jun 2008
    Location
    Dawlish/Teignmouth
    Posts
    270
    Thank Post
    45
    Thanked 40 Times in 39 Posts
    Rep Power
    21
    Thanks. I tried this earlier, but it seems I didn't delve deep enough and it turns out to contain the remnants of a Spiceworks install we don't use anymore.

  5. #4

    Join Date
    Mar 2010
    Location
    Leeds
    Posts
    420
    Thank Post
    80
    Thanked 46 Times in 41 Posts
    Rep Power
    18
    so if that's all that's on it can you not detach the VHD. I'm sure it won't take long for someone to come to you and say something isn't working. Do you know where the VHD is mounted from so you can easily remount it?

  6. #5

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,212 Times in 761 Posts
    Rep Power
    394
    If you are on Server 2012 or 2012 R2, you can get it in PowerShell:

    Code:
    PS C:\> Get-VHD -DiskNumber 5
    Requires you to know the disk number according to the volume manager: you can see this in Disk Management, or by running Get-Partition with no parameters in PowerShell (need to run as Admin for that one).

    EDIT:

    Just realised there's an even easier way: when you right-click the mounted disk in Disk Management and click Detach VHD, it shows the path on the confirmation dialog, at least on Windows 8.1.
    Last edited by AngryTechnician; 21st November 2013 at 12:40 PM.

  7. Thanks to AngryTechnician from:

    Shielder (21st November 2013)

  8. #6

    Join Date
    Jun 2008
    Location
    Dawlish/Teignmouth
    Posts
    270
    Thank Post
    45
    Thanked 40 Times in 39 Posts
    Rep Power
    21
    That didn't work, just comes back with "Get-VHD : The parameter is not valid. Windows cannot find a mounted virtual hard disk with the specified disk number." despite it clearly being Disk 2 and I'm 100% sure its a mounted VHD as not only does it gives the option to detach it but shows a blue disk icon instead of a grey one in Disk Management.

    EDIT: Another facepalm moment (maybe) - clicking "Detach VHD" not only gives me a confirmation to do it, but also tells me its filename and path. I avoided doing that in case the VHD was detrimental to another servers operation.

    EDIT 2:Just seen your edit. Seems like an odd place to put that to me but typical Microsoft I suppose.
    Last edited by Shielder; 21st November 2013 at 12:51 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. Identify this Projector mounts
    By jamesmay in forum AV and Multimedia Related
    Replies: 15
    Last Post: 31st March 2009, 12:20 PM
  2. Replies: 15
    Last Post: 23rd March 2007, 08:47 AM
  3. Replies: 9
    Last Post: 17th October 2006, 09:48 AM
  4. Vogel Projector Mounts
    By Simcfc73 in forum Hardware
    Replies: 4
    Last Post: 6th July 2006, 10:37 PM
  5. Mounting Printers
    By ZeroHour in forum How do you do....it?
    Replies: 11
    Last Post: 18th January 2006, 09:55 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •