Windows XP, Vista, and Linux allow you to unmount virtual disks, optical disks, and network shares. This article shows you how to unmount a drive in Windows 7, Windows Vista, and Windows XP as well as Linux and Mac OS X.
Method 1 of 4: Use the "Disk Management" tool in XP, Vista or Windows 7
Step 1. Open the Computer Management program
To do this, start by pressing To start up.
Step 2. In the search box, type run
Step 3. Under “Programs”, click Run
Step 4. Type "compmgmt.msc"
Step 5. Press OK to launch Computer Management
Step 6. Click Disk Management
You will find this in the left panel of the window Computer management.
Step 7. Choose the disk
Right click on the drive or partition you want to unmount.
Step 8. Go to the context menu
Select Change drive letter and access paths …
Step 9. Unmount the drive
Select the drive you want to unmount and press To delete.
Step 10. Do Yes when prompted to remove the drive path
Step 11. Close the Disk Management window
Method 2 of 4: Unmount a mounted disk in a folder in Windows using Command Prompt
Step 1. Open the Windows menu by clicking the button at the bottom left of your screen
Step 2. Type cmd in the bar that says "Search programs and files" near the bottom near the Windows button
Step 3. Click on cmd in the Programs section
Step 4. Unmount the drive
Type "mountvol Path / d" and replace "Path" with the path to the folder where the disk is mounted.
Method 3 of 4: Unmount a disk in Linux
Step 1. Open a terminal
From the Linux GUI, press Ctrl + alt = "Image" + F1 to open a terminal.
Otherwise, you can select Terminal from System Tools
Step 2. Unmount the drive
Type "umount / dev / partitionID" into the terminal command line, replacing partitionID with the ID of the partition you want to unmount.
Method 4 of 4: Unmount a disk in Mac OS X
Step 1. Unmount the drive
Right click on the disk then click Eject in the context menu.
Alternatively, you can drag the icon of the disk you want to unmount to the Trash
- Sometimes when you try to unmount a disk in Linux, you will see a message saying that the disk is busy. You can try to determine what software is currently using the disk by opening a terminal or command prompt and entering the following command: "lsof + D / mnt / windows". This will give you a list of the processes running on that drive so you can know which ones to stop before you can unmount the drive.
- Unmounting a disk does not remove any data from the folder, it only unmounts the disk.
- The command to unmount in Linux can be used to unmount hard disks, virtual disks, USB sticks, CD drives, and file partitions. The syntax of the command differs slightly when you want to unmount media. For example, to unmount a CD drive, you will need to enter the command "umount / media / cdrom" in the Shell or Terminal command prompt.
- Note that the command to unmount a disk in Linux is UMOUNT and not UNMOUNT.
- Whether you are using Linux or Windows, it may be a good idea to unmount a USB drive before unplugging it from the USB port. This is to make sure that you will not lose any data when you unplug the drive. On Linux, unmount using the command given above. In Windows, remove it by right-clicking on the icon Safely Remove Device in the taskbar and selecting the USB disk.