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

2023-09-15 Thread David Christensen
On 9/15/23 05:46, Vincent Lefevre wrote: On 2023-09-14 22:24:59 -0700, David Christensen wrote: On 9/14/23 03:17, Vincent Lefevre wrote: I get UNC errors like 2023-09-10T11:50:59.858670+0200 zira kernel: ata1.00: exception Emask 0x0 SAct 0xc00 SErr 0x4 action 0x0

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

2023-09-15 Thread Vincent Lefevre
On 2023-09-14 22:24:59 -0700, David Christensen wrote: > On 9/14/23 03:17, Vincent Lefevre wrote: > > I get UNC errors like > > > > 2023-09-10T11:50:59.858670+0200 zira kernel: ata1.00: exception Emask 0x0 > > SAct 0xc00 SErr 0x4 action 0x0 > > 2023-09-10T11:51:00.117366+0200 zira kernel:

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

2023-09-14 Thread David Christensen
On 9/14/23 03:17, Vincent Lefevre wrote: On 2023-09-13 20:52:43 -0700, David Christensen wrote: 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

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

2023-09-14 Thread Stefan Monnier
>> Indeed booting with `init=/bin/bash` can be a handy option I've used in >> the past: you get into the normal root (so you don't have to figure out >> how to find and mount root from the initramfs), mounted read-only. [ One other advantage over `break=premount` and friends is that I find it

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

2023-09-14 Thread Vincent Lefevre
On 2023-09-14 21:44:18 +0700, Max Nikulin wrote: > If data are really precious then seek for a specialized service. I normally have 2+ backups for important data. But I'd like to double-check with what is no longer readable on the laptop disk. -- Vincent Lefèvre - Web:

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

2023-09-14 Thread Max Nikulin
On 14/09/2023 19:48, Michael Kjörling wrote: On 14 Sep 2023 12:17 +0200, from vinc...@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

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

2023-09-14 Thread Michael Kjörling
On 14 Sep 2023 12:17 +0200, from vinc...@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.

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

2023-09-14 Thread Vincent Lefevre
On 2023-09-13 20:52:43 -0700, David Christensen wrote: > 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

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

2023-09-14 Thread Vincent Lefevre
On 2023-09-13 23:00:27 -0400, Stefan Monnier wrote: > > Or perhaps I could use /bin/sh as init, so that systemd (and its > > remount as rw) would be avoided? > > Indeed booting with `init=/bin/bash` can be a handy option I've used in > the past: you get into the normal root (so you don't have to

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

2023-09-13 Thread David Christensen
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

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

2023-09-13 Thread Stefan Monnier
> Or perhaps I could use /bin/sh as init, so that systemd (and its > remount as rw) would be avoided? Indeed booting with `init=/bin/bash` can be a handy option I've used in the past: you get into the normal root (so you don't have to figure out how to find and mount root from the initramfs),

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

2023-09-13 Thread Vincent Lefevre
On 2023-09-13 14:15:30 +0200, to...@tuxteam.de wrote: > On Wed, Sep 13, 2023 at 01:54:04PM +0200, Vincent Lefevre wrote: > > 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. BTW, in recovery mode, it is systemd

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

2023-09-13 Thread tomas
On Wed, Sep 13, 2023 at 02:15:30PM +0200, to...@tuxteam.de wrote: [...] > - break out in the initramfs [...] More details on how to do that: https://wiki.debian.org/InitramfsDebug Cheers -- t signature.asc Description: PGP signature

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

2023-09-13 Thread tomas
On Wed, Sep 13, 2023 at 01:54:04PM +0200, 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? In roughly ascending order of comfort (but also of "external tools

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

2023-09-13 Thread Michael Kjörling
On 13 Sep 2023 13:54 +0200, from vinc...@vinc17.net (Vincent Lefevre): > 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? Boot a separate environment. For example Debian installation media offers a

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

2023-09-13 Thread Vincent Lefevre
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