Recover corrupted partition

I corrupted a partition on my HD and am now looking to recover some files.
I was expanding a partition from 300GB to 320GB in parted and the power went out at ~25%. Using TestDisk I was able to recover the first 107GB, however the middle 170GB are unallocated and the final 20GB are unallocated separately. The first partition was originally the 107GB+170GB, so would it be possible to annex the two? I understand that the data at the seam will be corrupted but is it possible to recover through this method? Should I try to use photorec instead to recover the files from the 170GB?

Is there another application that I can use to rescue my corrupted partition table? I am not finding much support for Solaris out on the net.Hi
There is some, but you have to look hard.
I wrote a partition table editor:
http://paulf.free.fr/pfdisk.html
If your LBA values are good, you should be able to restore the CHS values from them. If both the LBA and CHS values are corrupt, and you have a good idea of the sizes of the partitions, then with a calculator you should be able to work out what the values should have been.
Paul

Similar Messages

  • How to recover corrupted partition table?

    I have a disk that somehow got the partition table corrupted. I am getting lots of "Bad Geometry" errors that state the label says one size while the drive says something different.
    I have tried running the TestDisk (http://www.cgsecurity.org) application, and it seems to find the partitions just fine and I believe that my data is in tact. I just need to correct the partition table and access the UFS file system. The TestDisk reports that "write_part_sun" is not implemented, so it cannot correct the problem. I have checked the source code for the current and beta versions of the program and the function still has not been written.
    Is there another application that I can use to rescue my corrupted partition table? I am not finding much support for Solaris out on the net.
    Thanks.

    Is there another application that I can use to rescue my corrupted partition table? I am not finding much support for Solaris out on the net.Hi
    There is some, but you have to look hard.
    I wrote a partition table editor:
    http://paulf.free.fr/pfdisk.html
    If your LBA values are good, you should be able to restore the CHS values from them. If both the LBA and CHS values are corrupt, and you have a good idea of the sizes of the partitions, then with a calculator you should be able to work out what the values should have been.
    Paul

  • [Solved] corrupted partition table

    Yours truly was experimenting with alternative bootloaders today and ended up with a corrupted partition table. Yours truly had backed up the bootloader part of the MBR today but neglected to copy the rest. Guess who is feeling very stupid right now.
    Here is what fdisk has to say about my disk,
    root@sysresccd /root % fdisk -l /dev/sdb
    Warning: ignoring extra data in partition table 5
    Warning: ignoring extra data in partition table 5
    Warning: ignoring extra data in partition table 5
    Warning: invalid flag 0x2404 of partition table 5 will be corrected by w(rite)
    Disk /dev/sdb: 30.0 GB, 30020272128 bytes
    255 heads, 63 sectors/track, 3649 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x4b36bdea
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 895 3444 20482875 7 HPFS/NTFS
    /dev/sdb2 1 894 7181023+ b W95 FAT32
    /dev/sdb3 3445 7476 32387040 5 Extended
    /dev/sdb5 ? 142349 151007 69551332+ 19 Unknown
    Partition table entries are not in disk order
    This looks somewhat promising. I had only three partitions on the disk (I don't remember if any were logical), one swap, one large thing for pacman stuff and of course root.
    By suggestion of this I will try testdisk (version 6.11 from Sys Resc CD).
    Last edited by fsckd (2011-09-17 21:22:59)

    Unfortunately my copy of sys resc cd does not have fixparts.
    testdisk worked like a charm and my partitions were recovered, one swap, one JFS and one ext4.
    (Incidentally it was Windows which damaged the MBR in the first place.)

  • Recovering bootcamp partition - is there a solution that works?

    Dealing with bootcamp issues after a Lion upgrade seems to be a common problem with no agreed solution.
    When I upgraded my iMac to Lion, the upgrade process couldn't create a recovery partition so Apple support advised me to use Disk Utility to create a small (5 GB)  block of free space on my harddisk for the recovery partition to use and then to use Disk Utility to enlarge the OSX partition again to recover whatever remaining free space was left after the Lion upgrade had completed.
    This I duly did. However, after I enlarged the OSX partition using Disk Utility to recover the free space I found that a) the Bootcamp partition had been renamed "disk0s4" and b) when holding down the Option key when booting, the Recovery option was now labelled "EFI Boot" and appeared to boot from the regular OSX partition. Attempting to boot windows in Bootcamp results in a "missing operating system" error message.
    I'm not so worried about the recovery partition as I have a bootable DVD and USB flash drive.
    What I would like to do is recover some files from the Windows partition. There is a lot of opinions in the Apple suport forums about what works such as, booting Windows from the install disk and running the "fixmbr" and "fixboot" commands or using rEFIt or BootPicker (which doesn't seem to work on Lion).
    Is there a reliable approach to fixing this problem so that I can at least read the contents of the partition, even if I can't boot from it? If I can't actualy recover the partition I'm not too fussed, so long as I can get the data off it.
    Thanks...Macs

    Why do you suggest installing Lion on an external h/disk? Is this because of problems with Lion or just suggested standard procedure?
    Some of the options may work although I am unable to mount the partition at all (in OSX or by booting from a Linux live CD and trying to mount it from there) so I'm not sure how far any of them will get.
    I haven't tried booting from the Windows DVD as yet.
    If I run Verify on Disk Utility I get this:
    2012-03-20 22:18:41 +1100: Verifying volume “disk0s4”
    2012-03-20 22:18:41 +1100: Starting verification tool:
    2012-03-20 22:18:49 +1100: Checking file system2012-03-20 22:18:49 +1100: ** /dev/disk0s4
    2012-03-20 22:18:49 +1100: Invalid BS_jmpBoot in boot block: ba9a97
    2012-03-20 22:18:49 +1100: Error: This disk needs to be repaired. Click Repair Disk.
    2012-03-20 22:18:49 +1100:
    2012-03-20 22:18:49 +1100: Disk Utility stopped verifying “disk0s4”: This disk needs to be repaired. Click Repair Disk.
    Repair disk says this:
    2012-03-20 22:31:06 +1100: Verify and Repair volume “disk0s4”
    2012-03-20 22:31:06 +1100: Starting repair tool:
    2012-03-20 22:31:12 +1100: Checking file system2012-03-20 22:31:12 +1100: ** /dev/disk0s4
    2012-03-20 22:31:12 +1100: Invalid BS_jmpBoot in boot block: ba9a97
    2012-03-20 22:31:12 +1100: Volume repair complete.2012-03-20 22:31:12 +1100: Updating boot support partitions for the volume as required.
    2012-03-20 22:31:12 +1100: Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    2012-03-20 22:31:12 +1100:
    2012-03-20 22:31:12 +1100: Disk Utility stopped repairing “disk0s4”: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.
    I wondered whether the entry in the partition table had been completely screwed so I had a look with FDisk and GDisk.
    GDisk says this about the partition table:
    Disk /dev/disk0: 976773168 sectors, 465.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): FB4FA8FD-D192-4589-93E1-A19A9F0F29D7
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 976773134
    Partitions will be aligned on 8-sector boundaries
    Total free space is 13 sectors (6.5 KiB)
    Number  Start (sector)    End (sector)  Size       Code  Name
       1              40          409639   200.0 MiB   EF00  EFI System Partition
       2          409640       869550263   414.4 GiB   AF00  Customer
       3       869550264       870727719   574.9 MiB   AB00  Recovery HD
       4       870727720       976773127   50.6 GiB    0700  Untitled
    And this about partition 4:
    Partition number (1-4): 4
    Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
    Partition unique GUID: 94C06328-9817-4012-9C30-C97592E671C1
    First sector: 870727720 (at 415.2 GiB)
    Last sector: 976773127 (at 465.8 GiB)
    Partition size: 106045408 sectors (50.6 GiB)
    Attribute flags: 0000000000000000
    Partition name: 'Untitled'
    For its part FDisk says:
    Disk: /dev/disk0     geometry: 60801/255/63 [976773168 sectors]
    Signature: 0xAA55
             Starting       Ending
    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
    1: EE 1023 254  63 - 1023 254  63 [         1 -     409639]  Unknown ID
    2: AF 1023 254  63 - 1023 254  63 [    409640 -  869140624] HFS+       
    3: AB 1023 254  63 - 1023 254  63 [ 869550264 -    1177456] Darwin Boot
    *4: 07 1023 254  63 - 1023 254  63 [ 870727720 -  106045408] HPFS/QNX/AUX
    From looking at the Fdisk and GDisk output I cannot see where the problem is occurring (although I know 2/5ths of stuff all about partition tables). I notice that the Bootcamp partition is now lacking a name although I don't know whether this matters or not and strangely FDisk identifies it as an HPFS filesystem whereas Disk Utility identifies it as MSDOS (FAT).

  • Urgent: corrupt partition

    hey everyone,
    i have a corrupt partition.  it won't physically mount anymore, and i desperately need to get some stuff off of it.  i made a quick backup yesterday because i could sense this was happening (continuous grinding noises) but i was dumb enough to store the backup "temporarily" on the same partition.  is there anything i can do just to grab that data?  the filesystem was reiserfs.  thanks.

    Don't touch your hd, don't mount it. Then:
    1) Download dd_rescue and make either a copy of your whole hd or of each partition (if the partition table can still be read). This should be the first moment that you touch the drive. Also, while doing the copy, if you get too many IO errors I recommend to shut down the pc and try it again later (possibly leaving a gap in the datafile). At least that worked for me with a totally broken hd that became hysterical if you tried reading too many bad blocks. Also don't put the broken hd on the same ATA cable with another device (precaution).
    2) Now you have a backup of your drive, it doesn't matter if the hd becomes even more broken, so optionally you can fiddle with it, like trying to mount it or do other stuff directly on the drive.
    3) Then do all the data rescuing stuff (like fsck.reiserfs) on the hd image file(s).

  • How can I uninstall Bootcamp and Recover the partition for the Mac HD

    How can I uninstall Bootcamp and recover the partition for the IMac HD?

    Boot into OSX.  Go back into the Bootcamp utility in the Utilities folder and re-run it.  It will give you the option to remove the Windows partition and make the OSX partition fill the whole drive again.  OSX will NOT be lost in the process.  No re-installing necessary.  Only takes a few minutes or less to complete.

  • Removing a corrupt partition that Solaris 8 Install will not do

    What utility or software will remove a corrupt partition of a previous Solaris install.

    I also had that exact same issue on a "HP Presario 2.2Ghz Celeron with 1Ghz ram".
    It hangs on the blinking cursor. I am a techie, so I downloaded and burned more dvds in different ways. They all respond the same in that computer (so it shouldn't be a media problem), HOWEVER, on ONE machine (P3 1.0ghz 512MB 60GB) I have gotten the installation to proceed all the way to...
    [solaris install console text reads]
    Checking rules.ok file...
    Using begin script: install_begin
    Using finish script: patch_finish
    Executing SolStart preinstall phase...
    Executing begin script "install_begin"...
    Begin script install_begin execution completed.
    Starting Solaris Installation...
    [end]
    It is past the partition creation point, and should be installing the software.
    I installed a fresh hard drive in to do some playing, and it did not create any partition information even though it is past that point.
    I think it may be a problem with the x86 installation program set. But I have no SPARC hardware in which to test.
    I would love to evaluate sol10 if anybody can find a workaround.
    Please advise :-)

  • Recover corrupted datafile

    I created database from cold backup and db is up and running. After recovery identified some datafiles has corruption with dbfsize.
    Could anybody please help me how to recover corrupted datafile from cold backup?

    sorry in my first message I mentioned I verified with dbfsize. It is not dbfsize it is dbv than I found some files has corruption. I db verified original backup datafiles those file are fine no corruption. The problem is while copying the files to the new location some corruption happened. Now I will try to copy original file and dbv first. Now I to recover bad datafiles? I need some steps. Thanks in advance.
    Please provide your Oracle version, OS , the actual ORA- errorsOracle version is 9.2.0.7.0
    OS SunOS 9
    when I run dbv I got big list of errors copied portion of it....
    $cat DEEFF.log |more
    DBVERIFY: Release 9.2.0.7.0 - Production on Fri Feb 27 00:20:14 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    DBVERIFY - Verification starting : FILE = /u01/oracle/DEEFF.dbf
    Page 1024 is marked corrupt
    Corrupt block relative dba: 0x1f400400 (file 125, block 1024)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1ac580dd
    last change scn: 0x0004.f72fdb41 seq: 0x1 flg: 0x04
    consistency value in tail: 0xdb410601
    check value in block header: 0xb656, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1025 is marked corrupt
    Corrupt block relative dba: 0x1f400401 (file 125, block 1025)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1dc6d021
    last change scn: 0x0002.f8bcf84b seq: 0x1 flg: 0x06
    consistency value in tail: 0xf84b0601
    check value in block header: 0x5983, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Page 1026 is marked corrupt
    Corrupt block relative dba: 0x1f400402 (file 125, block 1026)
    Bad header found during dbv:
    Data in bad block -
    type: 6 format: 2 rdba: 0x1e415f13
    last change scn: 0x0004.3e23e1dd seq: 0x1 flg: 0x04
    consistency value in tail: 0xe1dd0601
    check value in block header: 0x502f, computed block checksum: 0x0
    spare1: 0x0, spare2: 0x0, spare3: 0x0
    Message was edited by:
    Gud

  • Way to recover corrupt .PSD's and / or .JPG's ?

    I am recovering my system after a bad crash. I have many .psd's and .jpg's which are corrupt.
    Is there any method, tool, or application you would recommend as the best attempt? I see several advertised on the internet. Do any of them work? What is the best? If you cannot name names, please point me in a helpful direction, where I might find reliable information.
    Thank you.

    The best way to recover corrupt images is from the backup sets. 
    Since you don't appear to have this convenience you could try something like this:
    http://www.online-tech-tips.com/computer-tips/repair-and-view-corrupted-or-damaged-images/
    I don't know it, but it was the first thing that came up in google for recover corrupt images.

  • Due to reinstallation of mac 2nd partition is nt showing how to recover the partition and data

    Due to reinstallation of mac 2nd partition is nt showing how to recover the partition and data

    If you have no backup your only option is to perform incomplete recovery (point-in-time recovery) to the time just before the drop, export the table and then restore the database (for example, from a cold backup taken just before the incomplete recovery,) and import the table. This obviously requires a full backup
    taken before the drop which you don't seem to have, so the answer is "regrettably no."
    If you have a backup;
    Take backup of ur current db, apply previous day backup, do point in time recovery to get table back,export table, shutdown and apply latest backup, import table back
    Regards,

  • Recovering deleted partitions in Windows Server 2008 R2 Server Core

    I was expanding one of my drive (Drive A) partitions to use space available on another drive (Drive B) and then I wanted to delete the extension so I clicked on the second drive (Drive B) and deleted that partition.  What I didn't realize is that
    would delete the entire partition on Drive A.  Now that I have screwed up I desperately need to recover the partition.  I ran the free tool TestDisk (http://www.cgsecurity.org/wiki/TestDisk) but it did not see the deleted partition.  Can someone
    point me in the right direction for recovering the partition and or data?

    Well I was able to fully recover the deleted partion and restore the Hyper-V VM's and figured I would share the steps I took to recover.
    Deleted Partition Recovery
    Do not reboot the machine because the MBR will be commited permanately.
    Use a partition recover tool (I used Active@ partition recovery) to recover the
    deleted partion.
    Restore the MBR which should be the backup MBR at this point (not 100% sure on
    this).
    If you did reboot and you cannot restore the MBR then you may have to backup the
    files from the deleted partition and recreate the partition manually. This was the case for me.
    Use a file reovery tool (I used Active@ File Recovery)  to backup the deleted
    files.
    Recreate the Partition manually and restore from the backup.
    Hyper-V Virtual HardDisk Restore
    Restore the .VHD and .AVHD from the backups.
    Because you restored from backup the ACL (Access Control List) entries will be
    wiped and you will have to remove the hard drives from the virtual machine and reattach them.  Re-attaching the .VHD will recreate the appropriate ACL entries.  Worst case scenario you will have to recreate the VM and attach the hard drive.  
    Remove the Virtual Hard Drive from the Virtual machine via Hyper-V Manager.
    If there are Snapshot files you must first merge them back into the main .VHD
    Change the extension of the most recent .AVHD to .VHD.
    From Hyper-V Manager select Edit Disk and browse to the newly renamed Snapshot
    and use the Merge option to merge it with its parent disk.  The merge wizard will automatically select the appropriate parent to merge with.  Take a note of this name because you will have to repeat the process on this file.  In Hyper-V Versions
    prior to 2008 R2 you may have to manually select the parent, in this case you will need to figure it out yourself but fortuanately you can sort by date and go from latest to oldest in order.
    Repeat the above process with each successive Snapshot until you have merged with
    the main .VHD for the VM.
    Reattach the .VHD file which will restore the Hyper-V ACL entries.
    Start the VM.
    If you get the following error when logging in to the VM “The trust relationship
    between the primary domain and the trusted domain failed.”  You will need to remove the machine from the domain and readd it to the domain via the local administrator account. 

  • Deleted my Time Machine Partition.. HELP!!! How can I recover the partition

    So it all started with a bad bootcamp install. I was trying things to recover and accidentally deleted the partition on my external for my time machine backups, now I can not access the disk and so on. Does anyone know a good program that will allow me to recover that partition and the data within?
    If I can not recover this partition, I am in trouble. Because the bunk bootcamp setup made me have to reinstall OSX 10.5 so now I don't have my data or the back up... any help please?

    After the save of all the Time Machine data, I tried the browse option, and as you said no go, since the files are just in a folder on the main HD, and aren't a true TM formatted drive.
    From some searches here, there is no way to merge the backups folder with a current time machine which would be a great feature to add.
    So I have all of the files from the old TM disk, not sure how intact they are, but my guess is they are intact since there was no writing to the drive only the partition information was deleted, not written to, but I guess that really means nothing in the grand scheme of things.
    So how do I go about extracting the true data from the Time Machine? What should I look to do. I can't find any true data in there, just databases and oddly named files.
    One good point to windows and PC's if you back up and or store data, you store the data itself, not a database with everything in it. So if you fail like me, you can extract the files themselves.

  • How to recover corrupt dmg partition

    Somehow I have corrupted a dmg partition in trying to increase the space of the partition. When clicking on the partition in Finder it asks for password but then says "no mountable file systems". Any clues on recovery? Mac Book Pro OSX 10.7.5

    Hi..
          I too had faced the same problem and used this partition recovery software to recover my deleted partition. This is the
    best partition recovery software. You can also
    download and check the recovery results.

  • Data recovery software that help recover lost partition due to using Disk Recovery Assistant on a 2TB HDD?

    I Just use the Disk Recovery Assistant on my 2TB HDD and it wipe it clean. What are the best data recovery tool out there that allow me to recover the lost partition and see the file in folders view not files view like in some data recovery like Disk Drill?
    using ML 10.8 something I tried appleXsoft but no luck.

    My best suggestion is
    Stellar Phoenix Mac Data Recovery
    http://www.macintosh-data-recovery.com/
    Download the free trial version of the software and use the option "Search Lost/Deleted Volumes", It will scan the drive and show you all lost partitions list on preview. Once you click on the selected partition it will show you again 3 options ,
    Quick Recovery- This option is very effective on case of volume corruption
    Advanced Recovery- This option recovers data from formatted volume and scans each and every block of volume for lost data.
    Deleted File Recovery.- It scans unused blocks of volume to recover deleted data.
    On successful recovery the software will show the files in folders view with the folder structure..In case you are unable to see the desired results you would need to go for Raw Recovery which will show results on file basis.This option is only required incase the previous option does not give you the desired results.
    Cheers !!

  • How to recover corrupt passwd file for c6000+x6270?

    i met a problem.
    passwd file corrupts and nobody can login.
    hardware platform is c6000+x6270 blade, os disks have mirrorred.
    in this environment, how to recover the passwd file(we have one copy)?
    Thanks

    The procedure can differ depending which volume manager software you use, it this is the case. But basically, you should boot with an external media, like DVD or jumpstart server, mount the root partition and fix the /etc/passwd file, umount the partition and finally reboot.

Maybe you are looking for

  • HOW TO INPUT TAX CODE AT MULTIPLE PO ITEM LEVEL AT A TIME

    If a PO  is having 100 line of items, how to input the tax code for all line items at a time, if tax code for all line of times is same.

  • Error when displaying an internal order

    Hi, I am trying to create an internal order with a particular order type. The internal order gets saved. But while displaying the internal order, I get a message saying "Express document : Update was terminated". The error briefs "ABAP/4 processor: S

  • Firefox crashes multiple times per day

    Hello all! As of the last month or two, Firefox now crashes multiple times per day (even in Safe Mode). Firefox is fully updated, as are my Add-ons and Extensions. Yesterday alone, it crashed 14 times (which is about average). System Info: Windows 7

  • Enhancement suggestion for Apple

    Love my iPad - not one complaint. It would be really cool if we could name our home pages with logical names - in iTunes where we move our apps around to be on specific pages, they have a number. A name would be cool. I'd be happy if the names appear

  • No Cover Flow for iTunes?

    I thought one of the new features was Cover Flow. Maybe I was mistaken? Is there any way to get it to work for music? This seems like the perfect browsing method for everyone when people are visiting, I'm really disappointed this wasn't implemented.