Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
i have done a mistake and overwriten a gpt ext4 partition table of my 3tb disk. I wanted to add the disk to my raid, but exchanged target and source in sgdisk command. After that i take a similar disk, same model, size and partition table, and copied the partition table over the sdb disk. Afterthat i could mount the disk, but its shown as empty disk.
I actually backup the sdb1 disk via ddrescue to an image. How can i recover the correct partition table and rescue my data? System is Debian Wheezy...
There's a static binary that will run on a very basic system up there for download in case you're running from an install cd.Let it search. Have guesses where your partitions were. Usually works.
Hmmm. I would chance EFI. Whether it's EFI or not (EFI has a couple of set partitions which will be missing if you are not EFI). If it was formatted with fdisk, I'd say msdos. But I've been wrong before.
Hello,
i choosed EFI and got 2 Partitions from Raid i used the disk before. First with 8TiB and second with 14TiB ?! What next? I can only say continue?
let it search the whole disk and restore the partitions you believe in, That's what's next. We hope you know what your partitions were. 8 & 14 TB sound a bit big.
If you had raid running on the disk, mark this solved, open another thread with raid in the title and see what you get from that. That way, people with decent raid experience may look at it. In the meantime finish scanning the disk.
Hello,
no disk is not on raid, but was before. After that i formated it with ext4 on a new single partition. i think testdisk found the partition which was before on the disk.
The figures in testdisk mean very little to me. It's been a long time. If it only found one non raid partition, consider whether you want to restore it or run away to professionals to try to recover your data. I was worried that it was going to find seven partitions when you know you had only one or two. That has happened to me.
Take it that whatever you write to disk now will probably destroy something. I take it you want your data before the overwrite. It doesn't sound very hopeful.
From here your path is
1. Restore the partition; you will have no files; set photorec loose on the disk and it will produce data fragments of various sizes. Nothing on linux can recover an overwritten directory, so you have to stitch together the data fragments into files yourself. If these are text documents, you could do this yourself. If large images, forget it.
2. Go to professionals who will run software that examines the disk much more closely. The idea is that if some spot was magnetised as a '0' for a long time, it will be more inclined to be '0' that '1', even if it's '1' now. You pay them money for the service, but you get most of your data. If they manage to recover directories, they can unlock the key to the data fragments puzzle. You pay even if they get very little.
I have successfully recovered GPT partitions by following the instructions at Rod's Books. I once accidentally wrote some input from /dev/zero to the wrong device and ended up ruining my main GPT (fortunately none of the partitions nor their data were harmed). The below site helped me get every partition back.
Hello,
found this page too, but didnt helped so far. gdisk says with option verify "No problems found" but disk is empty. Should i run with a recovery option, but which one?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.