Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239282

Re: disk recovery question

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: disk recovery question
Date 2021-08-24 11:20 +0200
Message-ID <CPAL7-2sX-13@gated-at.bofh.it> (permalink)
References <CPABw-2pJ-81@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

disk recovery question Semih Ozlem <semihozlemlinuxuser@gmail.com> - 2021-08-24 11:10 +0200
  Re: disk recovery question Reco <recoverym4n@enotuniq.net> - 2021-08-24 11:20 +0200
    Re: disk recovery question Ángel <debian-user@debian.16bits.net> - 2021-08-24 22:30 +0200

csiph-web