[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: disk recovery question



	Hi.

On Tue, Aug 24, 2021 at 12:04:40PM +0300, Semih Ozlem wrote:
> I accidentally turned my hard disk to swap (I was using a usb for swap,
> when entering the command I wrote the wrong disk id). Can I recover the
> disk to its previous form?

Most of the files are likely were left intact, but the partition table
is likely to be destroyed.
I suggest doing the usual:

1) Immediately copy all disk contents by ddrescue (or equvalent)
elsewhere.
2) Put the disk in question aside, do not attach it to anything.
3) Operate on disk copy from pt 1 only.
4) Install "testdisk" package, and feed your disk image to photorec (it's
provided by "testdisk").

Reco


Reply to: