Bad command results: In creating a gpt on a fresh disk the wrong drive letter was used and messed up my gpt. other than checking testdisk and checking to see I my partitions were fine (which all of them are), I have dne nothing else to /dev/sda.
dd if=/dev/sda of=/dev/sdc
this command made a copy of sda (a 1TB drive) to sdc (a 4TB drive). I have removed the 4TB for safety.
Current situation of /dev/sda:
Using gdisk I get this:
gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.9
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: present
I can safely create a protective MBR.
When trying to recover all partitions as primary testdisk gives this result.
Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63
Partition Start End Size in sectors
P Linux 0 32 33 8512 59 59 136747008 [home]
P Linux 8512 59 60 15976 14 38 119906304 [Videos]
P Linux 15976 14 39 29754 212 26 221356032 [VA]
P Linux 29754 212 27 45064 170 34 245952512 [VB]
P Linux 45064 170 35 60373 123 38 245936128 [VC]
P Linux 60373 123 39 75682 11 41 245932032 [VD]
P Linux 75682 11 42 90991 192 17 245950464 [VE]
P Linux 90991 192 18 106298 37 43 245897216 [VF]
>P Linux 106298 37 44 121601 57 56 245843968 [VG]
Structure: Bad. Use Up/Down Arrow keys to select partition.
Invalid partition structure.
Picking 4 of the partitions and writing can be done, then gdisk again returns with MBR only instead of protective.
I can pick all those partitions, but only 4 at a time. Each partition is fine and I can actually see all files and they are NOT corrupted.
Wishlist: Get MBR/GPT tables working with the partitions file systems without having to move things around. Other option would be to copy each partition onto another drive, fix the internal drive and move them back. Moving would be a trail as there are lots of links and specific permissions on individual files/folders that need to be kept.
I know the experts will say read the man pages. I have memory retention issues that make it very difficult for me to try and patch proper commands together. Give me clear example and I can easily figure it out. other when I have a brain cramp and put the wrong drive letter in.