Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: [SOLVED] Partition Table problem

  1. #1
    Join Date
    Dec 2007
    Location
    Louvain-la-Neuve
    Beans
    175
    Distro
    Xubuntu 13.10 Saucy Salamander

    [SOLVED] Partition Table problem

    Hi! - I used testdisk to undelete linux partitions, and it did just that! - unfortunately, now the vista's ntfs is inconsistent and it seems that it is a partition table problem (one that testdisk can't fix). I can't manipulate the ntfs partition in any way with gparted - the message i get when i try to check it looks like this :

    Code:
    $MFT has invalid magic.
    ntfs_mft_load(): Failed.
    Failed to load $MFT: Input/output error.
    Failed to startup volume: Input/output error.
    ERROR(5): Opening '/dev/sda2' as NTFS failed: Input/output error
    NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
    The usage of the /f parameter is very IMPORTANT! No modification was
    and will be made to NTFS by this software until it gets repaired.
    but the thing is that i can't get into windows in order to do a chkdsk...

    trying ntfsfix gives the following result:

    Code:
    Mounting volume... $MFT has invalid magic.
    ntfs_mft_load(): Failed.
    Failed to load $MFT: Input/output error.
    Failed to startup volume: Input/output error.
    FAILED
    Attempting to correct errors... $MFT has invalid magic.
    ntfs_mft_load(): Failed.
    Failed to load $MFT: Input/output error.
    FAILED
    Failed to startup volume: Input/output error.
    Volume is corrupt. You should run chkdsk.
    if i try to repair the installation from windows media, the cd recovery program at some point will prompt me to choose the partition (with the installation) that is to be repaired, but nothing is listed below. So, the recovery program just won't see the partition...

    any suggestions?

    thanks in advance

  2. #2
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Partition Table problem

    Are you sure you recovered the correct NTFS partition for Vista? How about posting the output of the following:
    Code:
    sudo sfdisk -l
    sudo fdisk -lu
    sudo parted /dev/sda print
    Then run testdisk again and post the results of the "deep search" as follows:

    If you are using Version 6.8:

    After starting testdisk with the above command, choose "no log", select HDD and "Proceed", "Intel", "Analyze", and see what it shows for your HDD and what errors it might give. Please post the output of that screen. Then do "Proceed", Y/N depending on if you have any Vista partitions, hit enter to continue, and select "Search!" so it does a deeper search, which could take a while. Please post the output of the screen that has the deep search results.

    If you are using Version 6.9:

    After starting testdisk with the above command, choose "no log", select HDD and "proceed", "Intel", "Analyze", and see what it shows for your HDD and what errors it might give. Please post the output of that screen. Then do "quick search", Y/N depending on if you have any Vista partitions, hit enter to continue, and select "Deeper Search" so it does a deeper search, which could take a while. Please post the output of the screen that has the deep search results.

  3. #3
    Join Date
    Dec 2007
    Location
    Louvain-la-Neuve
    Beans
    175
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: Partition Table problem

    first of all thanks for answering!

    from the parts below, the sda2 is the one with the problem.

    sudo sfdisk -l :

    Code:
       Device Boot Start     End   #cyls    #blocks   Id  System
    /dev/sda1          0+   1530-   1531-  12291072   27  Unknown
    /dev/sda2   *   1530+  12595-  11065-  88879608+   7  HPFS/NTFS
    /dev/sda3      12596+  38912   26317- 211391271    f  W95 Ext'd (LBA)
    /dev/sda4          0       -       0          0    0  Empty
    /dev/sda5      12596+  28115-  15520- 124664336   83  Linux
    /dev/sda6      28116+  32093-   3978-  31953252   83  Linux
    /dev/sda7      32094+  38386-   6293-  50548488   83  Linux
    /dev/sda8      38387   38912-    526-   4225084   82  Linux swap / Solaris

    sudo fdisk -lu :
    Code:
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1            2048    24584191    12291072   27  Unknown
    /dev/sda2   *    24584192   202343408    88879608+   7  HPFS/NTFS
    /dev/sda3       202354803   625137344   211391271    f  W95 Ext'd (LBA)
    /dev/sda5       202354866   451683537   124664336   83  Linux
    /dev/sda6       451683603   515590106    31953252   83  Linux
    /dev/sda7       515590173   616687148    50548488   83  Linux
    /dev/sda8       616687155   625137322     4225084   82  Linux swap / Solaris

    and

    sudo parted /dev/sda print :
    Code:
    Model: ATA TOSHIBA MK3252GS (scsi)
    Disk /dev/sda: 320GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    
    Number  Start   End     Size    Type      File system  Flags
     1      1049kB  12.6GB  12.6GB  primary   ntfs              
     2      12.6GB  104GB   91.0GB  primary   ntfs         boot 
     3      104GB   320GB   216GB   extended               lba  
     5      104GB   231GB   128GB   logical   ext3              
     6      231GB   264GB   32.7GB  logical   ext3              
     7      264GB   316GB   51.8GB  logical   ext3              
     8      316GB   320GB   4326MB  logical   linux-swap

    as far as the testdisk is concerned, i used the 6.10 version ( i don't know if this affects anything). what i did (prior to this message) was this :
    I did everything up to the analyze thing, then i changed the type of the partitions according to that it was supposed to be, and then i hit write. One time i did the deep search but the output was way to many partitions than these that i really have; so (despite) all the time dedicated to deep search i hit cancel and exit....

    anyway i'm doing this all over again in order to post the results. the quick search is easy and i'm giving it right away, but the other one will take some time....

  4. #4
    Join Date
    Dec 2007
    Location
    Louvain-la-Neuve
    Beans
    175
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: Partition Table problem

    1st and 2nd testdisk screens

    but (oups!) it didn't ask me if i have any vista partitions...
    Attached Images Attached Images
    Last edited by eotakos; December 16th, 2008 at 04:38 PM. Reason: just typos

  5. #5
    Join Date
    Dec 2007
    Location
    Louvain-la-Neuve
    Beans
    175
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: Partition Table problem

    here i have 2 more screenshots of testdisk attached.
    Strange thing - it says that a linux partition can't be recovered, while there's no linux partition missing... (3rd screenshot)

    the 4th screenshot is that with the thorough search - as i mentioned above - way too many partitions....

    any suggestions?
    Attached Images Attached Images

  6. #6
    Join Date
    Dec 2007
    Location
    Louvain-la-Neuve
    Beans
    175
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: Partition Table problem

    yei! i did it !

    note to anyone reading this because of having resembling problems:

    for every partition testdisk displays with the quick analyze, you should press "p" to see whether it can display the contents. if it can, then everything is ok and you should mark it as primary or logical or whatever it was (before the errors). If it can't, notice the starting and ending sectors; they must be overlaping and this should be the issue.

    Do the thorough search! after the search is complete ( it takes some time), it is most likely that all desplayed results (partitions) will be marked as deleted. This is not a faulty situation - testdisk displays partitions like this, so that you go and check each and every one of them (pressing p) to see if it can display the contents. The ones that can't display the contents leave them as deleted, the correct ones mark them as the type they are supposed to be. then write results to the partition table and restart.

    IF you don't know what was the type of the partition prior to the errors, you can consult the documentation (which you should anyway ) there are some tips there.

    general documentation with examples:
    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

    tips for telling which is what :
    http://www.cgsecurity.org/wiki/Parti...ry_and_logical


    caljohnsmith thank you again for taking the time to post here. you maybe didn't solve the issue for me, but you kept me trying.

  7. #7
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Partition Table problem

    I was just typing my reply to you about using "P" to list the directories and find the correct NTFS partition, so I'm glad you figured it out on your own. Let me know if you have any more problems about your partition table, but it sounds like you figured out the correct one.

  8. #8
    Join Date
    Dec 2007
    Location
    Louvain-la-Neuve
    Beans
    175
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: [SOLVED] Partition Table problem

    Funny thing! - everything works, but now gparted doesn't recognize any of the partitions on the hard drive. any ideas on this one?

    i did enough studying for today, that will be the homework for tomorrow

  9. #9
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: [SOLVED] Partition Table problem

    Quote Originally Posted by eotakos View Post
    Funny thing! - everything works, but now gparted doesn't recognize any of the partitions on the hard drive. any ideas on this one?

    i did enough studying for today, that will be the homework for tomorrow
    I've seen where testdisk sometimes creates an extended partition that exceeds the end point of the last logical partition, and if the extended partition ends at the end of the HDD like in your case, the extended partition can exceed the ending sector of the HDD. That causes problems obviously with gparted, so it would be good to check if that happened to you. How about posting the new output of:
    Code:
    sudo fdisk -lu
    sudo sfdisk -d /dev/sda
    sudo parted /dev/sda print
    And we can work from there.

  10. #10
    Join Date
    Dec 2007
    Location
    Louvain-la-Neuve
    Beans
    175
    Distro
    Xubuntu 13.10 Saucy Salamander

    Re: [SOLVED] Partition Table problem

    sudo fdisk -lu

    Code:
    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x438c7787
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1            2048    24584191    12291072    7  HPFS/NTFS
    /dev/sda2   *    24595515   202354731    88879608+   7  HPFS/NTFS
    /dev/sda3       202354740   625153409   211399335    f  W95 Ext'd (LBA)
    /dev/sda5       202354866   451683537   124664336   83  Linux
    /dev/sda6       451683603   515590106    31953252   83  Linux
    /dev/sda7       515590173   616687148    50548488   83  Linux

    sudo sfdisk -l

    Code:
    Disk /dev/sda: 38913 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
    
       Device Boot Start     End   #cyls    #blocks   Id  System
    /dev/sda1          0+   1530-   1531-  12291072    7  HPFS/NTFS
    /dev/sda2   *   1531   12595-  11065-  88879608+   7  HPFS/NTFS
    /dev/sda3      12596   38913   26318  211399335    f  W95 Ext'd (LBA)
    /dev/sda4          0       -       0          0    0  Empty
    /dev/sda5      12596+  28115-  15520- 124664336   83  Linux
    /dev/sda6      28116+  32093-   3978-  31953252   83  Linux
    /dev/sda7      32094+  38386-   6293-  50548488   83  Linux

    sudo parted /dev/sda print
    Code:
    Error: Can't have a partition outside the disk!
    seems like your guess was right!

    i don't know if this really means anything, but have a look at the 3rd screenshot of testidisk: the 3rd "paragraph" reads
    the hard disk ... seems too small!

    i'm starting to getting the big picture - and now i have a hint about what i must have done wrong with the recovery: i chose the extended partition to take up all the remaining space... but i did that only because i wanted it to include the swap partition. As you can see from the later results, there is no swap. i didn't let testdisk to recover the swap, because it wouldn't let me recover it as logical part (which it was prior to the recovery).

    So i intended to make a swap within the extended partition after the recovery using gparted... i run the program, and surprise! "unallocated 298 Gib" ... and here we are

    again! thank you very much for your time!!!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •