Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #239288
| Path | csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ángel <debian-user@debian.16bits.net> |
| Newsgroups | linux.debian.user |
| Subject | Re: disk recovery question |
| Date | Tue, 24 Aug 2021 22:30:02 +0200 |
| Message-ID | <CPLdw-OF-3@gated-at.bofh.it> (permalink) |
| References | <CPLdw-OF-5@gated-at.bofh.it> <CPABw-2pJ-81@gated-at.bofh.it> <CPAL7-2sX-13@gated-at.bofh.it> |
| X-Original-To | debian-user@lists.debian.org |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Tue Aug 24 20:27:40 2021 |
| Old-Return-Path | <debian-user@debian.16bits.net> |
| X-Amavis-Spam-Status | No, score=-6.363 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, SARE_MSGID_LONG40=0.637] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| X-Greylist | delayed 2486 seconds by postgrey-1.36 at bendel; Tue, 24 Aug 2021 20:27:26 UTC |
| Content-Type | text/plain; charset="ISO-8859-15" |
| Content-Transfer-Encoding | quoted-printable |
| MIME-Version | 1.0 |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/779976 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/31f31038b34a0b5a148b509fb26b971fa3e793a7.camel@debian.16bits.net |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Tue, 24 Aug 2021 22:27:21 +0200 |
| X-Original-Message-ID | <31f31038b34a0b5a148b509fb26b971fa3e793a7.camel@debian.16bits.net> |
| X-Original-References | <CAFi06wfGtQgO--VprBuuM1N7W1k1UYAgmb6B8-7rC0sNZUYKEw@mail.gmail.com> <E1mISU6-001Bao-Pp@enotuniq.net> |
| Xref | csiph.com linux.debian.user:239288 |
Show key headers only | View raw
On 2021-08-24 at 12:12 +0300, Reco wrote: > 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 Actually, testdisk itself (not photorec) is probably able to recover the header. mkswap seems to only touch little more than the first 1000 bytes (plus a label). *If* it wasn't actually used as a swap disk (in which case, who knows what might have been overwritten), everything will be there. If you turned into a swap the full disk, and not a partition, then "only" the partition table and/or bootloader will have been overwritten, which should be quite recoverable by testdisk (and reinstalling grub, probably). Good luck
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll 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