The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Help!!! I accidently formatted the Windows Partition

    Discussion in 'Linux Compatibility and Software' started by graycolor, Dec 19, 2010.

  1. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    I am in need of serious help. I accidentally formatted the windows partition. I was using easybcd to dual boot so basically on the restart I lost windows and wasn't able to boot into either windows or linux. Is my windows partition safe, I formatted it using Ubuntu, with right clicking and then choosing the format option.
     
  2. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    I also tried recovering the mbr using the windows 7 recovery cd I think that might have made things worst.
     
  3. olegsomphane

    olegsomphane Notebook Guru

    Reputations:
    14
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    15
    was it a quick format or full/safe erase? If it was a quick format, I'd suggest not touching that partition and investigating some tools to restore the file tables. If it's the latter, you're most likely out of luck on this one
     
  4. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    I'm pretty sure it was quick it took less than a minute.
     
  5. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    thank god for dropbox....you may have some hope...I'll look
     
  6. KoldWar

    KoldWar Notebook Consultant

    Reputations:
    2
    Messages:
    157
    Likes Received:
    0
    Trophy Points:
    30
  7. jas

    jas Notebook Evangelist

    Reputations:
    697
    Messages:
    622
    Likes Received:
    5
    Trophy Points:
    31
    KoldWar's advice is correct. You shouldn't make any more changes to the drive until you try and scan for the partition information, and see if it can be recovered. The archlinux thread referenced actually points to a bootable utility CD which contains lots of useful system utilities, called

    Hirens' BootCD

    Checking out the site and looking at the contents of the CD, they include several freeware utilities that may help you in your situation. You can download Hiren's BootCD and burn it, and then boot your computer with it, or can you can directly try one of the partition recovery tools from the CD. Which include;

    Smart Partition Recovery
    PartitionRecovery
    Partition Find & Mount

    If they don't work, or if you've done some writing to your drive and the data isn't reliably restored, you can check out some other utilities that can be purchased to recover your data. These include;

    GetDataBack
    Windows Data Recovery Software from Disk Doctors

    and the one tool which can get back data when all other programs can't;

    Spinrite


    Good Luck..
     
  8. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    I just wanted to thank everyone that posted, I successfully recovered all the files I needed. I'll try not to accidentally format things next time. When your using Linux I guess you can get lost with the speed it provides.
     
  9. Primes

    Primes Notebook Deity

    Reputations:
    919
    Messages:
    1,736
    Likes Received:
    718
    Trophy Points:
    131
    yes, Gparted is not very forgiving. :D
     
  10. debguy

    debguy rip dmr

    Reputations:
    607
    Messages:
    893
    Likes Received:
    4
    Trophy Points:
    31
    In another thread I recently read someone complaining about a missing trash bin function in some Linux program (I guess it was the Dropbox thread).
    What happened to "think before you act"?
     
  11. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    I was trying to format a USB guess i picked the wrong one. :D Is there a way I could lock formatting with a different password other than root?
     
  12. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    That's why they put erasers on pencils :) I don't know how you could mistake a usb drive for your hard drive.....try to learn the nomenclature for removable and fixed drives....
     
  13. debguy

    debguy rip dmr

    Reputations:
    607
    Messages:
    893
    Likes Received:
    4
    Trophy Points:
    31
    There is no reasonable way.
    1st: root can do anything. You can make it a bit harder but you cannot restrict root's access to something. You could set up another user with enhanced privileges for tasks you normally do as root but still restrict real destructive things like formatting to root. But once you got that sorted out into the very detail, you won't need that user anymore.
    2nd: In fact formatting doesn't cover everything about data deletion. You could also use dd, cat or a bunch of other tools to accidentally overwrite data. You don't want to lock all those tools because you need them for other tasks too.

    How do you know which one is a HDD and which one a USB key if all I tell you is that I have /dev/sda through /dev/sdf? Unfortunately that's all what most tools tell you.
     
  14. Kyle

    Kyle JVC SZ2000 Dual-Driver Headphones

    Reputations:
    1,758
    Messages:
    992
    Likes Received:
    575
    Trophy Points:
    106
    Intersting question.
    How about first mounting the drive and browsing the directory to see whats there; once it is confirmed that it is the usb drive, you can unmount and fire up gparted.

    graycolor, how did you manage to recover the partition?
     
  15. jas

    jas Notebook Evangelist

    Reputations:
    697
    Messages:
    622
    Likes Received:
    5
    Trophy Points:
    31
    It's not foolproof, but you should get into the habit of using Volume Labels when you format partitions. At the minimum, label the partitions on your system's HDDs. That way when you go to format, you'll have some additional data, instead of just the device, (/dev/sdX), naming to go by.

    From the GParted manual, see " Specifying Partition Label". There's other benefits that come from more advanced use of Volume Labels. Under " Intermediate Partition Actions", you see that when it comes to Deleting a Partition;
    BTW, you can always set labels after you've formatted your partitions.

    Good Luck..
     
  16. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    If you're not sure what partition or drive you are looking at, run blkid to see partition labels and UUIDs, hdparm -i /dev/sdX to see drive model info, and obviously fdisk -l to list the partitions on each disk. Between those you should be able to figure it out, unless the drives are exactly the same, partitioned the same, and unlabeled. You can also see what's mounted where with mount.
     
  17. woofer00

    woofer00 Wanderer

    Reputations:
    726
    Messages:
    1,086
    Likes Received:
    0
    Trophy Points:
    55
    Don't pin that on Linux. If you dive too deep in any OS, you can cause damage, some recoverable, others irreparable.
     
  18. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    First I tried using testdisk from the "Systemrescuecd" unfortunately it was unable to recover the ntfs (windows) partition. Instead I used "Hirens Boot CD" to boot into a mini live XP operating system from there I was able to use the "EASEUS" software. I probably could have recovered the entire partition using the EASEUS software, but I really just wanted to get a single folder that contained all my documents. My pictures and music were already backed up previously and I kind of needed a clean install anyway :D
     
  19. Apollo13

    Apollo13 100% 16:10 Screens

    Reputations:
    1,432
    Messages:
    2,578
    Likes Received:
    210
    Trophy Points:
    81
    I usually go by the size of the partition. Obviously doesn't work if you have multiple partitions of the same size, but otherwise it does the trick. Labels would also be a good idea.