Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Will anybody pls let me know what is Windows Equivalent of the Linux Mount Command?
In linux we have to mount the devices like scsi disk / pendrive to access it.
But in windows it happens automatically.
How does the windows does so.
Any good link to article will will help.
Posted
Comments
Sergey Alexandrovich Kryukov 30-Jan-12 12:04pm    
It's not clear what so wonderful about it. Look at desktop version of Ubuntu (and many other distro, I believe) -- they do it, too. By the way, in Linux you have to mount everything, every single disk. Some of them are pre-mounted during some of the boot phases, that's it.
--SA

1 solution

Please see this:

http://technet.microsoft.com/en-us/library/cc770943.aspx[^],
http://technet.microsoft.com/en-us/library/cc771607.aspx[^],
http://technet.microsoft.com/en-us/library/cc733060.aspx[^],
http://technet.microsoft.com/en-us/library/cc753321.aspx[^].

In particular, look at the last link. It shows how one can associate a disk volume with a directory, just like in Linux, instead of those stupid drive letters. So, even in Windows you can create the uniform file system where more than one disks are mounted in a single directory system.

Some closely related information: believe or not, hard links and soft links (called junctions or re-parse points in Windows) are also available (but Microsoft keep the hidden from non-programmers and difficult for not very advanced programmers), just like in Unix/Linux, and this is because modern Microsoft file systems also implements Posix.

[EDIT]

It is possible to implement hard link and soft link utilities on Windows using Windows API; it would be a pretty short but not trivial code. These features are not directly exposed to a general Windows user. Some of functionality was available via Windows Resource Kit, but, as far as I can remember, not 100% of it, so I developed my own, with some help from information found at Sysinternals.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900