Thread: Can't Format C

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    alright, to help you with your malicious code, here's what you do:

    1) create a dos boot disk
    2) open (or create) autoexec.bat
    3) add this to the end of it: myprog.exe
    4) add myprog.exe (the program you wrote with the system commands) to the disk
    5) restart the computer with the disk in the drive

    what will happen: the computer goes to the A: to boot, since it's a bootable disk, it does so, and DOS searches the autoexec.bat file for what to do... the autoexec.bat file tells it to run your program, and your program tells command to format the C:... this won't work because you don't have the formatting utility on the disk...

    now what you do, since you really don't want to format the drive, you just want to fck with somebody, you can just use fstream to open the crucial files on the drive and erase them (ios::trunc, put in a zero or something)... I'll leave that part up to you... find the files needed to boot into whatever version of windows you're working on...

    now follow the steps above, putting in the new program (still named myprog.exe)... now when the person tries to turn on the system, it will crash and they'll have to recover their OS... yay for you... you're a hacker
    Last edited by major_small; 04-23-2004 at 09:21 PM. Reason: more detail
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  9. #9
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    major_small: Delete and a bad reputation for you, you're contributing to the cause of 'cracking', erroneously called 'hacking' by many, which is disallowed on this board and highly frowned upon
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  10. #10
    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

  11. #11
    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?

  12. #12
    '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"....

  13. #13
    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

  14. #14
    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"

  15. #15
    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

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