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.
First, do NOTHING to that disk until you have a plan.
There are various tools out there for restoring partition tables, fixing bad file systems, etc. Depending on where you are on the learing curve, it could be a long climb. You may be better off turning it over to a specialist.
Whatever you do, I suggest finding a way to "clone" the drive first.
If you can remember the partition sizes accurately or have a copy of the partition table just rebuild it using cfdisk. Done it about a dozen times, from scrach, on several disks, size up to 300Gb and with up to 60 partitions inside. No loss of partition.
If you can remember the partition sizes accurately or have a copy of the partition table just rebuild it using cfdisk.
That's a very big IF....
When I started in Linux, I had some experience in partitioning using Partition Magic. MANY Windows converts don't even have that.
How many time in the Windows world has someone suggested backing up you partition table??
That is why I standardise partition sizes and stick to one partitioning software "cfdisk". I only need to write down the last partition size because that is the only that does not in whole unit of a Gb as a check only. When I rebuilt a partition table the left-over should match in size to it.
There are downloadable software, like WPARTNFIX, that can rebuild the disk partitions for you with some success by searching the data from filing index tables. It works best just after the partition table has been changed.
When I lost my partition table a few weeks back, I ran "gpart" from a Knoppix LiveCD - it found & restored all my partitions, including one I'd deleted months ago.
gpart is certainly one option - another is testdisk.
Also on Knoppix.
Best to fire up a terminal, "su" then run the command of choice.
Deleted partitions aren't really that big an issue.
Deleted (or over-written) data - now *that's* a problem.
THANK YOU! I was finally able to recover all the last data on the FAT partitions. I will need to re-install Linux (something was overwriten) but that is no problem.
I used Testdisk, althout gpart would probaly have worked as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.