good day to all!
I goofed.
In prepping for a migration .. I DD'ed a drive to another spare to have a backup of the files.
Then I booted next weekend not knowing that I mounted the 2nd DD'ed backup drive (due to duplicate UUID's ... dummy me).
I did some small work thinking it was on the primary drive not the backup.
I then did RM-rf on one drive ... removed what I thought was the good drive ... rebooted ... and deleted the partition on the second drive thinking it was the 1st.
I have since learned not to DD a drive and leave it in there for the next boot.
Trouble is: ... I have one drive with the partition but RM-rf all files of my /home ... ... and another drive with the files intact but the partition deleted.
I would be happy with either due to the small amount of work done.
How do I get the partition data from the drive that was only RM -rf ... and restore it to the other drive that only had the partition deleted?
... or should I try to un-delete the data one the drive that was RM-rf?
18.04.1 Ubuntu.
Thanks!
sudo sfdisk -d /dev/sda > PT_sda.txt
&sudo sfdisk -d /dev/sdb > PT_sdb.txt
But since gpt you have to use a newer sfdisk like in 18.04. Old versions like in 16.04 do not support gpt disks. You might be able to combine them and restore to one drive or other. – oldfred Nov 18 '18 at 21:09/dev/sda1 : start= 2048, size= 15998976, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=EB748AF4-96D9-4A62-9EF3-B6A3A542AE93 /dev/sda3 : start= 16001024, size= 16001024, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=17773877-1FF8-42C4-ADAA-AE01DB9DB6E8
– DurararaC Nov 18 '18 at 21:16/dev/sdb4 : start= 32002048, size= 9467791360, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=115ADD15-1962-48F8-B3CE-42C32B6C2369
– DurararaC Nov 18 '18 at 21:17