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


Groups > linux.debian.user > #261664

Re: using ddrescue on the root partition - boot with / as read-only

From Max Nikulin <manikulin@gmail.com>
Newsgroups linux.debian.user
Subject Re: using ddrescue on the root partition - boot with / as read-only
Date 2023-09-14 16:50 +0200
Message-ID <HdVPj-8WXW-1@gated-at.bofh.it> (permalink)
References <HdwQV-8I0j-1@gated-at.bofh.it> <HdLGh-8QLo-1@gated-at.bofh.it> <HdRC1-8Uwl-1@gated-at.bofh.it> <HdTXb-8VQz-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 14/09/2023 19:48, Michael Kjörling wrote:
> On 14 Sep 2023 12:17 +0200, from vincent@vinc17.net (Vincent Lefevre):
>> badblocks says that there are 25252 bad blocks.
>>
>> I'm using ddrescue before doing anything else (mainly in case things
>> would go worse), but I would essentially be interested in knowing
>> which files are affected.
> 
> There's always the brute-force way; for each ordinary file, try to cat
> it to /dev/null, and log the name of the file if that fails.

ddrescue should be a better way to recover data from failing disk. It 
tries to minimize seeks and may reiterate over fragments failed during 
earlier passes. It may write session/log file to track data recovered 
during previous runs.

Not only the root partition should be mounted read-only. No partitions 
from this disk should be mounted at all. Even reads may cause more 
severe damage. Boot from a live media and run ddrescue from it. Check 
that no partitions are automatically mounted or used as swap.

It is better to postpone badblocks till disk image will be created.

If data are really precious then seek for a specialized service.

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


Thread

using ddrescue on the root partition - boot with / as read-only Vincent Lefevre <vincent@vinc17.net> - 2023-09-13 14:10 +0200
  Re: using ddrescue on the root partition - boot with / as read-only <tomas@tuxteam.de> - 2023-09-13 14:20 +0200
    Re: using ddrescue on the root partition - boot with / as read-only tomas@tuxteam.de - 2023-09-13 14:30 +0200
    Re: using ddrescue on the root partition - boot with / as read-only Vincent Lefevre <vincent@vinc17.net> - 2023-09-13 16:00 +0200
      Re: using ddrescue on the root partition - boot with / as read-only Stefan Monnier <monnier@iro.umontreal.ca> - 2023-09-14 05:10 +0200
        Re: using ddrescue on the root partition - boot with / as read-only Vincent Lefevre <vincent@vinc17.net> - 2023-09-14 11:30 +0200
          Re: using ddrescue on the root partition - boot with / as read-only Stefan Monnier <monnier@iro.umontreal.ca> - 2023-09-14 18:10 +0200
  Re: using ddrescue on the root partition - boot with / as read-only David Christensen <dpchrist@holgerdanske.com> - 2023-09-14 06:00 +0200
    Re: using ddrescue on the root partition - boot with / as read-only Vincent Lefevre <vincent@vinc17.net> - 2023-09-14 12:20 +0200
      Re: using ddrescue on the root partition - boot with / as read-only Michael Kjörling <2695bd53d63c@ewoof.net> - 2023-09-14 14:50 +0200
        Re: using ddrescue on the root partition - boot with / as read-only Max Nikulin <manikulin@gmail.com> - 2023-09-14 16:50 +0200
          Re: using ddrescue on the root partition - boot with / as read-only Vincent Lefevre <vincent@vinc17.net> - 2023-09-14 17:40 +0200
      Re: using ddrescue on the root partition - boot with / as read-only David Christensen <dpchrist@holgerdanske.com> - 2023-09-15 07:30 +0200
        Re: using ddrescue on the root partition - boot with / as read-only Vincent Lefevre <vincent@vinc17.net> - 2023-09-15 14:50 +0200
          Re: using ddrescue on the root partition - boot with / as read-only David Christensen <dpchrist@holgerdanske.com> - 2023-09-15 23:00 +0200

csiph-web