Easy partitions mounting on Windows


  1. Pen
    Posts : 11
    Windows XP
       #1

    Easy partitions mounting on Windows


    Hello. Windows 10,compared to Win7 has some advantages like build-in ISO mounting or virtual desktops.
    But I'm also Linux user and one thing I really like on Linux, that is missing on Windows is easy hdd partition mount/unmount.

    Is it possible to do any trick like that:
    -have C:\ as system and D:\ as data
    -have D:\ disabled, unavailible for all apps, like unassigned letter, but visible in Explorer to preserve file paths
    - it can be make accesible by double click
    - it can be unmounted with "unmount" command in context menu
    - it should working without admin rights. Not only for me

    Standard hdd manager is not option, because is admin only, and if I unassign drive letter, any pendrive will be mounted as D:\ and file paths will be ruined.
      My Computer


  2. Posts : 43,207
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    -have C:\ as system and D:\ as data
    - that's easy...

    any pendrive will be mounted as D:\
    - unless they have been pre-assigned a drive letter (1 per letter in Disk Management)
      My Computers


  3. Posts : 15,502
    Windows10
       #3

    Pen said:
    Hello. Windows 10,compared to Win7 has some advantages like build-in ISO mounting or virtual desktops.
    But I'm also Linux user and one thing I really like on Linux, that is missing on Windows is easy hdd partition mount/unmount.

    Is it possible to do any trick like that:
    -have C:\ as system and D:\ as data
    -have D:\ disabled, unavailible for all apps, like unassigned letter, but visible in Explorer to preserve file paths
    - it can be make accesible by double click
    - it can be unmounted with "unmount" command in context menu
    - it should working without admin rights. Not only for me

    Standard hdd manager is not option, because is admin only, and if I unassign drive letter, any pendrive will be mounted as D:\ and file paths will be ruined.
    I do not understand this question - partitions in Windows are not mounted or unmounted. They are either hidden or not by adding or removing drive letters - easy to do in a number of ways.

    You can easily create batch files to add or remove drive letters using diskpart commands.

    Not 100% certain but I am pretty sure you can only do this with admin rights - it is common for the pc admin user to hide drives so others cannot access them (particularly for child access).
      My Computer


  4. Pen
    Posts : 11
    Windows XP
    Thread Starter
       #4

    Ok, I checked Diskpart
    list volume

    (0 is my DVD E:\, 1 is C:\, 2 is D\)

    select volume 2
    remove letter D

    Then I plug my very old pendrive I didn't used before on this computer.

    And penrive was assigned as D.

    My goal is to keep letter D reserved for this partition only.
      My Computer


  5. Posts : 43,207
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #5

    As I said - did you see post #2?? if you use Disk Management to assign a drive letter to that drive (e.g. R) then next time you plug it in it should be assigned R:

    However occasionally (perhaps update-related) Windows 'forgets' that assignment.
      My Computers


  6. Pen
    Posts : 11
    Windows XP
    Thread Starter
       #6

    Ok. This is finished bat script:
    Code:
    @echo off
    REM This script will remove or assign volume letter
    cd  d:\
    If %ERRORLEVEL%==0 goto :remove else goto :assign
    :Assign
      (echo select volume 2 & echo assign letter=d & echo exit)|diskpart & timeout 3 & goto :eof
    :Remove
      (echo select volume 2 & echo remove letter=d & echo exit)|diskpart & timeout 3 & goto :eof
    Please write if something is wrong
    Last edited by Pen; 23 Apr 2023 at 15:15.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:20.
Find Us




Windows 10 Forums