Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

98.4. ddrescue-1.30

Image a failing disk with a resumable mapfile

1.30-1 · GPL-2.0-or-later · 0.1 SBU · 466.2 KiB, 6 files · 41_system, 385 of 1047 · ports/core/disk/ddrescue

Homepage: https://www.gnu.org/software/ddrescue/

Why it is in KDOS. The comment above ddrescue and partclone in script/phases/41_system/packages.d/disk.txt:

ddrescue images a DYING disk sector by sector with a resumable mapfile; partclone images a HEALTHY one by copying the blocks the filesystem says are in use and skipping the rest. Both ship because they answer different questions.

Depends on: lzip.

Required by: no port names it.

Sources: ddrescue-1.30.tar.lz (99.2 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install ddrescue'

build.sh:

lzip -dc $name-$version.tar.lz | tar -x --strip-components=1

./configure --prefix=/usr CXX="${CXX:-c++}" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS"
make
make DESTDIR=$PKG install

Programs: ddrescue, ddrescuelog.

Directories: /usr/share/licenses/ddrescue.