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

98.5. partclone-0.3.50

Filesystem-aware imaging — copies the used blocks and skips the rest

0.3.50-1 · GPL-2.0-or-later · 1.7 SBU · 3.0 MiB, 56 files · 41_system, 386 of 1047 · ports/core/disk/partclone

Homepage: https://partclone.org/

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: autoconf, automake, libtool, pkgconf, e2fsprogs, util-linux, liburcu, xxhash, libxslt, docbook-xsl, openssl, zlib, zstd, ntfs-3g, ncurses, fuse.

Required by: no port names it.

Sources: partclone-0.3.50.tar.gz (1.6 MiB). Every step kpkg takes applies to this port.

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

build.sh:

autoreconf -f -i

export XML_CATALOG_FILES=/etc/xml/catalog

MAN_XSL=$(ls -d /usr/share/xml/docbook/xsl-stylesheets-*/manpages/docbook.xsl 2>/dev/null | head -1)
if [ -z "$MAN_XSL" ]; then
	echo "ERROR: docbook-xsl manpages stylesheet not found under /usr/share/xml/docbook" >&2
	exit 1
fi
./configure \
	--prefix=/usr \
	--disable-rpath \
	--enable-extfs \
	--enable-fat \
	--enable-exfat \
	--enable-ntfs \
	--enable-hfsp \
	--enable-apfs \
	--enable-btrfs \
	--enable-xfs \
	--enable-f2fs \
	--enable-ncursesw \
	--enable-fuse
make MAN_STYLESHEET="$MAN_XSL"
make MAN_STYLESHEET="$MAN_XSL" DESTDIR=$PKG install

Programs: partclone.apfs, partclone.btrfs, partclone.chkimg, partclone.dd, partclone.exfat, partclone.ext2, partclone.ext3, partclone.ext4, partclone.ext4dev, partclone.extfs, partclone.f2fs, partclone.fat, partclone.fat12, partclone.fat16, partclone.fat32, partclone.hfs+, partclone.hfsp, partclone.hfsplus, partclone.imager, partclone.imgfuse, partclone.info, partclone.ntfs, partclone.ntfsfixboot, partclone.ntfsreloc, partclone.restore, partclone.vfat, partclone.xfs.

Directories: /usr/share/licenses/partclone.