Date: Wed, 18 Nov 2009 13:37:45 +0800 From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@gmail.com> To: freebsd-amd64@freebsd.org Subject: Tutorial: How to Build and Install Partclone on Fedora 11 x86_64 Message-ID: <f712b9cf0911172137s4a47e7c7sc85b723c0b93e489@mail.gmail.com> In-Reply-To: <f712b9cf0911171104s6d67f6cq1c943a56adc2bef4@mail.gmail.com> References: <f712b9cf0911171104s6d67f6cq1c943a56adc2bef4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Partclone is an open source filesystem backup/cloning utility which supports the following filesystems: =A0 =A0* Ext2, Ext3, and Ext4 =A0 =A0* Reiserfs =A0 =A0* Reiser4 =A0 =A0* Xfs =A0 =A0* NTFS =A0 =A0* FAT =A0 =A0* HFS plus =A0 =A0* UFS/UFS2 It is a complement to the popular partimage tool which does not support ext4 filesystems. The project's official website is at http://partclone.org/index.php Question: Why do I want to write this tutorial for building and installing partclone? Answer: The authors of partclone only provide Debian .deb binary packages in addition to source tarballs. There are no RPM binary packages for partclone at all. Pre-requisites: 1. Install the following development packages. # yum install glibc-devel e2fsprogs-devel 2. Install the libufs2 port to Linux. Read the tutorial here: http://www.redhat.com/archives/fedora-list/2009-November/msg01253.html Download the latest partclone source release from http://sourceforge.net/projects/partclone/files/0.1.9/partclone_0.1.9-4.tar= .gz/download Extract the partclone source tarball after completing the download. $ tar xfvz partclone_0.1.9-4.tar.gz Change directory into the partclone source directory tree. $ cd partclone-0.1.9 Apply the following patch to the configure script. $ patch < configure-fc11.patch File configure-fc11.patch: <CODE> Patch by Mr. Teo En Ming (Zhang Enming) to allow partclone to compile and install on Fedora 11 x86_64 Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-8369-2618 Location: Bedok Reservoir Road, Singapore Date: 18 November 2009 Wednesday SGT --- configure =A0 2009-11-16 13:59:33.000000000 +0800 +++ configure =A0 2009-11-17 13:30:57.825923347 +0800 @@ -7729,7 +7729,7 @@ =A0{ $as_echo "$as_me:$LINENO: checking version of libextfs" >&5 =A0$as_echo_n "checking version of libextfs... " >&6; } -extfs_version=3D`gcc -static =A0$srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lext2fs -DEXTFS` +extfs_version=3D`gcc $srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lext2fs -DEXTFS` =A0extfs_version=3D`$srcdir/get_lib_version extfs | cut -d'.' -f1` =A0extfs_version_major=3D`$srcdir/get_lib_version extfs | cut -d'.' -f2` =A0extfs_version_minor=3D`$srcdir/get_lib_version extfs | cut -d'.' -f3` @@ -8365,7 +8365,7 @@ =A0{ $as_echo "$as_me:$LINENO: checking version of libreiserfs" >&5 =A0$as_echo_n "checking version of libreiserfs... " >&6; } -reiserfs_version=3D`gcc -static =A0$srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lreiserfs -DREISERFS` +reiserfs_version=3D`gcc $srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lreiserfs -DREISERFS` =A0reiserfs_version=3D`$srcdir/get_lib_version reiserfs | cut -d'.' -f1` =A0reiserfs_version_major=3D`$srcdir/get_lib_version reiserfs | cut -d'.' -= f2` =A0reiserfs_version_minor=3D`$srcdir/get_lib_version reiserfs | cut -d'.' -= f3` @@ -8746,7 +8746,7 @@ =A0{ $as_echo "$as_me:$LINENO: checking version of libreiser4" >&5 =A0$as_echo_n "checking version of libreiser4... " >&6; } -reiser4_version=3D`gcc -static =A0$srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lreiser4 -laal -DREISER4` +reiser4_version=3D`gcc $srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lreiser4 -laal -DREISER4` =A0reiser4_version=3D`$srcdir/get_lib_version reiser4 | cut -d'.' -f1` =A0reiser4_version_major=3D`$srcdir/get_lib_version reiser4 | cut -d'.' -f2= ` =A0reiser4_version_minor=3D`$srcdir/get_lib_version reiser4 | cut -d'.' -f3= ` @@ -9084,7 +9084,7 @@ =A0{ $as_echo "$as_me:$LINENO: checking version of libntfs" >&5 =A0$as_echo_n "checking version of libntfs... " >&6; } -ntfs_version=3D`gcc -static =A0$srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lntfs -DNTFS` +ntfs_version=3D`gcc $srcdir/src/deplib_version.c -o $srcdir/get_lib_version -lntfs -DNTFS` =A0ntfs_version=3D`$srcdir/get_lib_version ntfs | cut -d':' -f1` =A0ntfs_version_major=3D`$srcdir/get_lib_version ntfs | cut -d':' -f2` =A0ntfs_version_minor=3D`$srcdir/get_lib_version ntfs | cut -d':' -f3` </CODE> Configure partclone with the following options. $ ./configure --prefix=3D/usr/local --enable-dependency-tracking --enable-extfs --enable-ufs --enable-ncursesw --with-gnu-ld Build partclone. $ make Install partclone $ sudo make install Congratulations! You are now able to backup ext2/3/4, FAT, NTFS and UFS/UFS2 filesystems on your Fedora 11 desktop.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f712b9cf0911172137s4a47e7c7sc85b723c0b93e489>