Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to undelete partition and recover data

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
walkomar
Posts: 1
Joined: 2016-05-23 08:10

How to undelete partition and recover data

#1 Post by walkomar »

Hello.
I have problem with SWAP partiotion and by mistake I delete my important partion by fdisk:(
I created than other partiotion in that place, but unfortunately i lost my data:(
Is there any way to recover data?

I deleted partion no 7...
Below how it looks before after my unfortunate operation:(
BEFORE:

Device Boot Start End Blocks Id System
/dev/sda1 198967296 303851519 52442112 83 Linux
/dev/sda2 303853471 4294961684 1995554107 f W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda3 4294963200 5860532223 782784512 7 HPFS/NTFS/exFAT
/dev/sda4 2048 198966891 99482422 83 Linux
/dev/sda5 303853473 356289569 26218048+ 82 Linux swap /
Solaris
Partition 5 does not start on physical sector boundary.
/dev/sda6 356290560 408725503 26217472 83 Linux
/dev/sda7 461161953 2608650764 1073744406 7 HPFS/NTFS/exFAT
Partition 7 does not start on physical sector boundary.
/dev/sda8 2608650828 4294961684 843155428+ 7 HPFS/NTFS/exFAT
Partition 8 does not start on physical sector boundary.
/dev/sda9 408727552 461160447 26216448 82 Linux swap /
Solaris

AFTER
Now its looks like below:
Device Boot Start End Blocks Id System
/dev/sda1 198967296 303851519 52442112 83 Linux
/dev/sda2 303853471 4294961684 1995554107 f W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda3 4294963200 5860532223 782784512 7 HPFS/NTFS/exFAT
/dev/sda4 2048 198966891 99482422 83 Linux
/dev/sda5 303853473 356289569 26218048+ 82 Linux swap /
Solaris
Partition 5 does not start on physical sector boundary.
/dev/sda6 356290560 408725503 26217472 83 Linux
/dev/sda7 2608650828 4294961684 843155428+ 7 HPFS/NTFS/exFAT
Partition 7 does not start on physical sector boundary.
/dev/sda8 408727552 461160447 26216448 82 Linux swap /
Solaris
/dev/sda9 461162496 2608650764 1073744134+ 83 Linux

Please help

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: How to undelete partition and recover data

#2 Post by dasein »

Check out testdisk

(And next time, do a search before posting. This question gets asked a lot, and the answer never changes.)

Post Reply