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


Groups > linux.debian.user > #261652

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

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: using ddrescue on the root partition - boot with / as read-only
Date 2023-09-14 06:00 +0200
Message-ID <HdLGh-8QLo-1@gated-at.bofh.it> (permalink)
References <HdwQV-8I0j-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 9/13/23 04:54, Vincent Lefevre wrote:
> Hi,
> 
> I need to use ddrescue on the root partition of my laptop.
> 
> So I need to have the root partition mounted in read-only mode.
> How can I do that?
> 
> Note that "mount -o remount,ro /" gives an error "mount point is busy"
> apparently because various log files are open in write mode.
> 
> Using the recovery mode via GRUB (which mounts / in read-only mode)
> is useless because the system remounts it later as rw.
> 
> Or is there a way to force a remount in read-only mode?
> (I could probably trigger a disk error to make the kernel remount /
> as read-only, but well...)


What symptom(s) is your laptop exhibiting that make you think that you 
need to use ddrescue(1) on the root partition?

https://en.wikipedia.org/wiki/XY_problem


Have you read the "GNU ddrescue Manual"?

https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html


David

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