Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Partitions the wrong size (I think)


  • Please log in to reply
2 replies to this topic

#1 sneddy1984

sneddy1984

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:08:08 PM

Posted 09 April 2016 - 12:02 AM

I know just enough about Linux to mess things up, so apologies in advance. I have tried looking at some of the other threads similar to this, but none of the answers seem to help. I have a 4TB Seagate Central drive that I need to get data off, but I am unable to, hoping you can help. 
 
Here is what I have tried so far
 
pc1@PC1:/$ sudo parted -l
 
   
 Model: ATA Hitachi HDS72101 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    
    Number  Start   End     Size    Type      File system  Flags
     1      1049kB  256MB   255MB   primary   ext2         boot
     2      257MB   1000GB  1000GB  extended
     5      257MB   1000GB  1000GB  logical                lvm
    
    
    Error: Both the primary and backup GPT tables are corrupt.  Try making a fresh
    table, and using Parted's rescue feature to recover partitions.
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/ubuntu--vg-swap_1: 4249MB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    
    Number  Start  End     Size    File system     Flags
     1      0.00B  4249MB  4249MB  linux-swap(v1)
    
    
    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/ubuntu--vg-root: 996GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    
    Number  Start  End    Size   File system  Flags
     1      0.00B  996GB  996GB  ext4
    
pc1@PC1:/$ sudo gdisk /dev/sdb
 
    
GPT fdisk (gdisk) version 0.8.8
    
    Caution: invalid backup GPT header, but valid main header; regenerating
    backup header from main header.
    
    Caution! After loading partitions, the CRC doesn't check out!
    Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
    on the recovery & transformation menu to examine the two tables.
    
    Warning! One or more CRCs don't match. You should repair the disk!
    
    Partition table scan:
      MBR: protective
      BSD: not present
      APM: not present
      GPT: damaged
    
    ****************************************************************************
    Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
    verification and recovery are STRONGLY recommended.
    ****************************************************************************
    
    Warning! Secondary partition table overlaps the last partition by
    3472328288413643170 blocks!
    You will need to delete this partition or resize it in another utility.
    
    Command (? for help): **i**
    Partition number (1-128): 8
    Partition GUID code: E6D6D379-F507-44C2-A23C-238F2A3DF928 (Linux LVM)
    Partition unique GUID: B05189FC-488F-4DED-97F7-0C5E644CF129
    First sector: 10569728 (at 5.0 GiB)
    Last sector: 7814037134 (at 3.6 TiB)
    Partition size: 7803467407 sectors (3.6 TiB)
    Attribute flags: 0000000000000000
    Partition name: 'Data'
    
    Command (? for help): v
    
Problem: partition 119 is too big for the disk.
    
    Problem: partition 120 is too big for the disk.
    
    Problem: partition 121 is too big for the disk.
    
    Problem: partition 122 is too big for the disk.
    
    Problem: partition 123 is too big for the disk.
    
    Problem: partition 124 is too big for the disk.
    
    Problem: partition 125 is too big for the disk.
    
    Problem: partition 126 is too big for the disk.
    
    Problem: partition 127 is too big for the disk.
    
    Problem: partition 128 is too big for the disk.
    
    Warning! Secondary partition table overlaps the last partition by
    3472328288413643170 blocks!
    You will need to delete this partition or resize it in another utility.
    
    Identified 4281 problems!
    
sudo fixparts /dev/sdb
 
  
  (parted) check 8
    
    Error: Both the primary and backup GPT tables are corrupt.  Try making a fresh
    table, and using Parted's rescue feature to recover partitions.
    
    (parted) rescue start                                                  
    
Error: Both the primary and backup GPT tables are corrupt.  Try making a fresh
    table, and using Parted's rescue feature to recover partitions.
 
So this is as far as I can get...which is just far enough for it to keep telling me what is wrong and what to do to fix it, I just don't know how to go about that - it actually seems like it isn't that hard, but I don't want to mess around with it any more at this point b/c I don't know what I am doing. I've checked out the info here -->http://www.rodsbooks.com/gdisk/repairing.html but don't understand it enough to proceed with confidence - HELP! :-)
 
 


BC AdBot (Login to Remove)

 


#2 raw

raw

    Bleeping Hacker


  • Members
  • 2,577 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Texas
  • Local time:07:08 AM

Posted 09 April 2016 - 01:09 AM

Testdisk will help recover and repair the partition table.

Download here:

http://www.cgsecurity.org/wiki/TestDisk_Download

 

Step by step tutorial:

http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

 

Hope that helps


rawsig.png

 rawcreations.net          @raw_creations


Current systems: WHAT OS, BackTrack-raw, PCLinuxOS, Peppermint OS 6, Kali Linux

and a custom Linux From Scratch server hosting a bunch of top secret stuff.


#3 sneddy1984

sneddy1984
  • Topic Starter

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:08:08 PM

Posted 09 April 2016 - 01:15 AM

Thanks mate, will have a look at that - I think I have made some progress by deleting all the extra partitions, but I won't know until this software scan finishes in a few hours






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users