Dismounting A Voluming

I wanted to format my second hard drive. This is set to slave, and labelled as G. My other hard drive has partitions at 60GB and 20GB. I am running windows XP home.

I tried to format my G drive in windows and recieved an error that the drive is in use. So I opened command prompt and typed "Format G:"

I received the following message:

Format can not run because the volume is in use by another process. Fromat may run if volume is dismounted first. All open handles will then be invalid. Would you like to force a dismount on this volume? Y/N

I chose yes and the volume was formatted w/o any problems.

I am wondering if this was the correct method to use? Can I do the same with the second partition on the master drive? This needs to be done. Do i need to re-mount the handles?

Thanks!
LVL 11
bingieAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sramesh2kCommented:
To format the drive, you can use the diskmanagement tool (diskmgmt.msc). For formatting the system partition, you can use the windows xp cd-rom
0
kennethahnCommented:
The correct way would be to find out which process was using the disk, then terminate the process (if appropriate), unmount the disk and then format it.

To unmount a drive/volume (ie. the D: drive) from the commandline, use:
c:\ mountvol D: /d

To view the available volumes, use mountvol with no arguments.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bingieAuthor Commented:
How can i find out which process is using the volume?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.