Mount and Unmount a SAN drive from within Windows 2003

As LUN is to be treated as a single disk in Disk manager on windows Serve 2003, to unmount a drive (LUN from SAN) on Windows Server 2003

you can use mountvol.exe commands in the cmd window or script (.cmd / batch files)

Mountvol (without parameters) will list all Volume GUIDs, example:

\\?\Volume{6e900029-ebef-11dd-8b53-806d6172696f}\
D:\

in this case the volume with GUID 6e900029-ebef-11dd-8b53-806d6172696f

is mounted under D:\

to unmount, type

mountvol D:\ /D

to mount, type
mountvol D:\ \\?\Volume{6e900029-ebef-11dd-8b53-806d6172696f}\

for help, type

mountvol /?

Creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L

path        Specifies the existing NTFS directory where the mount
point will reside.
VolumeName  Specifies the volume name that is the target of the mount
point.
/D          Removes the volume mount point from the specified directory.
/L          Lists the mounted volume name for the specified directory.

Possible values for VolumeName along with current mount points are:

\\?\Volume{258d9e03-678d-11de-bb81-806d6172696f}\
D:\

\\?\Volume{258d9e04-678d-11de-bb81-806d6172696f}\
C:\

\\?\Volume{b3312752-6b24-11de-92a7-001060d130ff}\
F:\

\\?\Volume{258d9e02-678d-11de-bb81-806d6172696f}\
E:\

Advertisements

Posted on August 22, 2014, in Storage Technologies. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: