Thread: Can't Format C

  1. #1
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751

    Can't Format C

    c:\>\FORMAT C:
    The type of the file system is NTFS.

    WARNING, ALL DATA ON NON-REMOVABLE DISK
    DRIVE C: WILL BE LOST!
    Proceed with Format (Y/N)? Y
    Verifying 38146M

    Format cannot run because the volume is in use by another
    process. Format may run if this volume is dismounted first.
    ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID.
    Would you like to force a dismount on this volume? (Y/N) Y
    Cannot lock the drive. The volume is still in use.
    This is the message i get when i try to format hardrvive. WTF? is there some service running i don't know about. I disabled norton antivirus, thats the only thing i know that runs in the backgound.
    Any one has any ideas?


    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Off the top of my head I'd have to say the program that is using the device is ......... WINDOWS!!!!

  3. #3
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    Quote Originally Posted by Thantos
    Off the top of my head I'd have to say the program that is using the device is ......... WINDOWS!!!!
    do you have a solution or just a quip? christ this board!!! c'mon man!!!!
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Mainly just a quip. Yes I have a solution but you won't like it.......

    Boot off:
    A) A cd
    B) A floppy
    C) Another Harddrive

    Think about it, windows may be stupid but it won't let you destroy the data that needs to keep itself running.

  5. #5
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    boot off the windows install disk

    what's so hard about that
    (had to keep the quips rolling)
    PHP and XML
    Let's talk about SAX

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    quips for everyone

    (and since people don't like one liners)

    Are you really really really sure you want to format c?

  7. #7
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    well at least you guys are mature enough to give me a solution. i realsise alot of you are real pedants and need new stuff to keep your brains going but christ!!!.

    anyways thanks for the info, i figured it out though. at the same time i was searching and found some code that was supposed to format the c drive. something like:
    Code:
      *command = "foramt c"
    system(command)
    ans = "y"
    system(y)
    yeah forget about the synatx errors and all of that. would that code - WRITTEN PROPERLY- work on xp, since xp doesn't seem to want to allow you to format the hd from the command propmt. windows 98 allowed it, but i don't know about 98se,2000 or me. any clues?
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  8. #8
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    no i think your missing the point, you need format the hdd outside of windows entirely. Before window sloads, your going to need a bootdisk

  9. #9
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    You CANNOT format a disk you are currently using. If you are in Windows... and try to use the command prompt to format, it WONT work. No amount of C code will do it. When you run the format command in DOS (AKA not the command prompt in windows), you MUST do it from the floppy drive or a cd drive. It will not work from the hard drive because format removes all the data from the drive... hence it would try to remove the program that you were using to format with.


    Understand?

  10. #10
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    uhm... if I recall right, there are arguments to format that allow you to pretty much go "screw running processes"....

  11. #11
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    okay okay!!! how is it that i was able to format a windows 98 at the cmd prompt with format C then, all it did was ask to load the recovery disks. also why would that individual give that code *above* if wouldn't work by just simply clicking on it.

    I understand all about the services on windows running in the background and all and it not being able to format. makes sense but why does that work with win98 then? thanks
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  12. #12
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    because recory disks reboot the computer into DOS, you werent running windows when you did it, period.

    No, that code does not say "screw the services"

  13. #13
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    well, if win98 would let you do it, that's because it's win98. XP is supposed to be more idiot proof.
    PHP and XML
    Let's talk about SAX

  14. #14
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    No, that code does not say "screw the services"
    the above code doesnt, but I have been able to format C: inside of XP before.

  15. #15
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Look... that's not possible. If you format a drive, it will erase the operating system. You could possibly START the process while running XP, but it will not complete while still running Windows (at least not correctly), because that would defeat the purpose of a format.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  2. function returning hour in either 12 or 24 hour format
    By stanlvw in forum C Programming
    Replies: 4
    Last Post: 01-01-2008, 06:02 AM
  3. Compression/Decompression Wave File and MP3
    By cindy_16051988 in forum Projects and Job Recruitment
    Replies: 51
    Last Post: 04-29-2006, 06:25 AM
  4. A Better Format Simulator
    By toonlover in forum C++ Programming
    Replies: 2
    Last Post: 01-07-2006, 06:14 PM
  5. Seeking Format Advice
    By PsychoBrat in forum Game Programming
    Replies: 3
    Last Post: 10-05-2005, 05:41 AM