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

Similar Messages

  • [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.)

  • 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,

  • 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

  • How to recover a perged table?----

    How to recover a perged table?----No.139

    For some reason I thought I saw dropped the first time through the thread. Flashback table is only used to restore dropped tables from the recycling bin.

  • How to manage large partitioned table

    Dear all,
    we have a large partitioned table with 126 columns and 380G not indexed can any one tell me how to manage it because now the queries are taking more that 5 days
    looking forward for your reply
    thank you

    Hi,
    You can store partitioned tables in separate tablespaces. This does the following:
    Reduce the possibility of data corruption in multiple partitions
    Back up and recover each partition independently
    Control the mapping of partitions to disk drives (important for balancing I/O load)
    Improve manageability, availability, and performance
    Remeber as the doc states :
    The maximum number of partitions or subpartitions that a table may have is 1024K-1.
    Lastly you can use SQL*Loader and the import and export utilities to load or unload data stored in partitioned tables. These utilities are all partition and subpartition aware.
    Document Reference:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/partiti.htm
    Adith

  • 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.

  • [SOLVED] The best way to recover a Partition Table. (LVM)

    I just did something really stupid I accidently had a typo in gdisk and changed the wrong hard drive partition table.
    So before I do something really stupid I post here.
    The hard drive is still mounted and I luckily have the output of the former partition table, this is it:
    fdisk -l /dev/sdb
    Festplatte /dev/sdb: 2,7 TiB, 3000558944256 Bytes, 732558336 Sektoren
    Einheiten: Sektoren von 1 * 4096 = 4096 Bytes
    Sektorgröße (logisch/physikalisch): 4096 Bytes / 4096 Bytes
    E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
    Festplattenbezeichnungstyp: dos
    Festplattenbezeichner: 0x00028375
    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 256 366211193 366210938 1,4T 83 Linux
    /dev/sdb2 366211194 732558335 366347142 1,4T 83 Linux
    The partition table was a LVM partition table.
    This is the current one:
    gdisk -l /dev/sdb
    GPT fdisk (gdisk) version 0.8.10
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Found valid GPT with protective MBR; using GPT.
    Disk /dev/sdb: 732558336 sectors, 2.7 TiB
    Logical sector size: 4096 bytes
    Disk identifier (GUID): DA7956E1-B120-4F78-925A-B5DDE14E7C9C
    Partition table holds up to 128 entries
    First usable sector is 6, last usable sector is 732558330
    Partitions will be aligned on 256-sector boundaries
    Total free space is 250 sectors (1000.0 KiB)
    Number Start (sector) End (sector) Size Code Name
    1 256 131327 512.0 MiB EF00 EFI
    2 131328 13238527 50.0 GiB 8E00 Arch
    3 13238528 732558330 2.7 TiB 8300 EXT
    I really hope someone can help me with that, I'm currently a total nerve wrack.
    If its a more or less impossible task (well or there is no guarantee that it works) I will buy a new Drive tomorow to save the currently still mounted files.
    Thank You!
    [EDIT]
    Forget about copying the file system isn't really accessible, I can open a few folders but everything in there are 0byte files
    Last edited by theblackdog (2015-03-10 14:16:59)

    So because no one gave me a answer so far (ok it's already pretty late and I was a bit imatient) I took the leap of faith and used fdisk to recreate the partition sheme,  so far everything seems to work.
    There is only one thing that would interest me, as far as I know a GPT partition table is bigger than a dos partition table, how big is the risk that data got corrupted because of the bigger table?
    I will mark the thread as solved after that.

  • How can recover the dropped table on oracle 9i and 10g ?

    This is the scnario...
    user dropped one table on his schema...
    oracle 10g DB
    flashback not enabled so no flashback drop possible
    but any way to recover it from recyclebin on 10g ? becuase this is not sysdba table ...if yes how about on 9i...if yes then will there be any limit on recycle bin like space pressure ??
    Scnario 2:
    we have two online redo log group with 2 member each..
    my currnet online redolog group currupted (including members)...we need the data's of that currnet group so we should'nt use the clear log command
    how to recover it ?
    Do we need to go for any block level revcovery ?
    thanks
    Moorthy
    Edited by: user13014926 on Jan 18, 2011 6:55 AM

    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,

  • How to recover a 'Z' table

    Moderator message - please do not use expressions like "Help!!!"
    Hi
    How can I do for recover a 'Z' table on AIX??
    Thanks in advance.
    Edited by: Rob Burbank on Apr 3, 2009 6:25 PM

    Thanks to all for answering...
    Rob in fact, I've had to make a program to restore all data.
    Is there a way to make backup for 'Z' tables?
    Regards

  • [SOLVED] Corrupt partition table

    A couple days ago I was transferring large files to my 1TB external Seagate USB drive (NTFS).  It was going smooth then on one file it stopped and Thunar gave an error.
    When looking at the directory with ls -l the file's attributes were question marks (?)
    I was able to access all the other files fine, but was unable to delete or access the corrupt directory.
    Now, days later, I am unable to mount the USB drive.
    sudo fdisk -l gives this:
    Disk /dev/sdc: 931.5 GiB, 1000204885504 bytes, 1953525167 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x6e697373
    This doesn't look like a partition table. Probably you selected the wrong device.
    Device Boot Start End Blocks Id System
    /dev/sdc1 ? 1936269394 3772285809 918008208 4f QNX4.x 3rd part
    /dev/sdc2 ? 1917848077 2462285169 272218546+ 73 Unknown
    /dev/sdc3 ? 1818575915 2362751050 272087568 2b Unknown
    /dev/sdc4 ? 2844524554 2844579527 27487 61 SpeedStor
    Partition table entries are not in disk order.
    I run sudo ntfsck /dev/sdc:
    $ sudo ntfsck /dev/sdc
    file record corrupted at offset 3221225472 (0xc0000000).
    Loading $MFT runlist failed. Trying $MFTMirr.
    First attribute must be after the header (0).
    and it just seems to be stuck there, I've left it running for a few hours...
    Is my disk screwed?
    *edit*: I got it! Check my other post further down this thread
    Last edited by uberscientist (2014-12-16 19:15:57)

    I fixed it finally!
    I had set the drive aside and was sad about it for a while, and decided to give another shot at googling and repair, here's what I did to get it working:
    install testdisk: https://www.archlinux.org/packages/extr … /testdisk/
    sudo testdisk
    [ Create ] (new log file)
    selected the corrupted drive
    >[Proceed]
    >[Intel ] ( By default it picked None... I just guessed Intel/PC)
    >[Analyse]
    >[Quick Search]
    >[Continue]
    >[Deeper Search]
    >Stop (press enter to stop after it finds another entry)
    >Down arrow, then right arrow to set it Primary partition (non-bootable for my case)
    >[Write ]
    Mount your drive

  • How to recover corrupt USB files?

    my USB flash drive stopped working today, when i try to verify it on disk utility, i get this message:
    ** /dev/disk1s1
    can't open (no such file or directory)
    error: filesystem verify or repair failed
    i tried disk drill, wondershare, and stellar phoenix and none of them recognize my flash drive.
    any advice on how to recover my files?

    Here are the simple steps to repair data file in QuickBooks.
    Step 1: Close the software as soon as you receive damaged data file error message.
    Step 2: Now open the software. It will make a new Qbwin.log file.
    Step 3: Click on the ‘Window’ option and then from the drop-down menu, click on ‘Close All’. Now go the ‘File’ option then from the drop-down menu, click on ‘Utilities’. A menu will appear.
    Step 4: From that list select ‘Verify Data’. If QuickBooks reports that there is no issue it means your data is alright. On the other side, if you get a message saying “Your data has lost integrity” or “A data problem prevents QuickBooks from continuing” it
    means your data is corrupted or has a structural issue. And in this case, you will have to run the Rebuild Data tool.
    Step 5: Click on ‘Windows’ and select ‘Close All’ in order to close all the QuickBooks windows.
    Step 6: To launch the Rebuild Data tool, click on ‘File’ and select ‘Utilities’. Now from the drop-down menu, go to ‘Rebuild Data’ option.
    Step 7: Click on ‘OK’ and a pop-up will come warning you to take a backup of your file. It is recommended to create an entirely new backup file and don’t overwrite the existing file. To prevent overwriting, give a new name to the file when prompted.
    Click 8: Wait for some time and let the Rebuild Data Utility finish the process. When completed, click on ‘OK’.
    Step 9: Close the company file. Reopen the file to refresh the list.
    Step 10: Select the company file and now to launch the file, click on ‘Open’.
    Step 11: In order to verify if the data file is clean and is repaired, again run the Verify Data utility.
    Content From- http://supportforquickbooks.iyogi.com/troubleshooting/repair-quickbooks-data-file.html

  • How to move a partitioned table

    Hi,
    i have a partitioned table where i am inserting records using direct-path and deleting records( no conventional load) . Now coz of deletions there are many blocks that are free below High Water Mark. so it thought of moving table from one tablespace to another tablespace. And when i treid to do that it gave an error and i found that i cant mov a partitioned table. i can move only partitions. and the table has 60 partitions. So can anyone help me in this? ANy other way to reclaim those free space below HWM? i am in 9i R2
    Thanks in advance

    Did you try "shrink" command??
    Rgrds,
    Paulo Portugal.

  • [SOLVED] How to recover removed partition?

    Hello.
    I had 600 GB usb drive with a lot of information. It's structure was created via Palimpsest program in a such way:
    1)Format drive
      1a)Scheme: Don't partiton. Click: Format.
      1b)Are you shure? Click: Format.
    2)Format volume.
      2a)Type: Ext4.  Click: Format.
      2b)Are you shure? Click: Format.
    So, it hasn't partitions as /dev/sdc1, /dev/sdc2 etc, but entire device partition /dev/sdc.
    Accidentally, when I decided to format another 8 GB usb-stick in the same way, I applied steps 1-1a-1b on 600 GB usb drive. So the drive was cleaned. But the data is still on it, because this steps are concerning partition table (it takes some seconds), and not disk content.
    Are any ways to return everything in original state?
    I tried testdisk, bit it doesn't find any files.
    Thanks for possible help.
    Last edited by roina (2011-11-21 16:48:56)

    Nevertheless I solved this problem. Yes, testdisk didn't find any files on the drive, but it correctly determine the type of the previously deleted partition (ext4) and wrote the recipe for forthcoming actions "fsck.ext4 -p -b superblock -B blocksize device". I substituted my options:
    fsck.ext4 -b 32768 -B 4096 /dev/sdd
    and restored etherything. I checked this method on another USB-stick by comparison of md5sums bethore deletion and after restoration: they were identical.
    During finding solution I also tested one program for windows which was also capable for undeliting in this situation, but it's free version undeleted only files less than 64kB. So the first described method works perfect.

  • 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.

Maybe you are looking for

  • My Computer Has Been Taken Over by the Matrix

    Can anyone explain this? This is the second time this issue has happened. The first time it happened was a few weeks back. You cannot use the computer when this happens; force quitting accomplishes nothing. Fortunately, however, you can take a screen

  • Syncing apps in folders

    i recently set up my iphone on a new laptop and have transefered all purchases and managed to syn everything apart from the apps. if i select the apps to sync it removes them from the folders i have set up. is there any wasy of backing it up exaclty

  • Where can I download temple run game free into my ipad

    From where can I download temple run game for free?

  • Trouble connecting ipod touch

    error 0xE800000a is showing when i connect my ipod touch to the pc... Please help

  • Delete Condition Type Depending on Item category Va01

    HI all, I wan to delete condition record depending on item category. I have a good link from sap.This link explains how to hide the condition but i want the  delete the condition. was badly struck here. http://wiki.sdn.sap.com/wiki/display/ABAP/Manip