From owner-freebsd-amd64@FreeBSD.ORG Wed Nov 18 05:37:46 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9356F1065695 for ; Wed, 18 Nov 2009 05:37:46 +0000 (UTC) (envelope-from space.time.universe@gmail.com) Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.221.176]) by mx1.freebsd.org (Postfix) with ESMTP id 4D3C68FC21 for ; Wed, 18 Nov 2009 05:37:46 +0000 (UTC) Received: by qyk6 with SMTP id 6so447749qyk.3 for ; Tue, 17 Nov 2009 21:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Sk2Nx+K4nLDEeYBImB5bIT80wta7QEORgYLaLbCWY+g=; b=golP/81mDI33gjrsiYVE/2cgjVoNxv1HwnSvOnCTyfUZV8sUXSX1FVHe/k7OBImNvP WDHXz4tK8uQpVkuxfaMzoxkx7iyu9apETLlghG7mDeTKlEajviNPRmMsQ+S469fB+M63 jYAHmt4bONeLwwqcojEEdg3IsvbgMr4DjBbYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=IdukfyvylaCvAOmMRg7emD8t1vP2EuLql3d0+EnE9jy3C55OIn3XNvIwv5+EUaDTiE PQNBFwHCujqlO08NtJR+gJqGvKQmTDVhh22x0DL/rfWo3MSOt/4aBnO/IEvR5x5PmjtM FQxMv6BjLiTCzYm4jroxy63a+shj+Ss+8B82I= MIME-Version: 1.0 Received: by 10.229.77.229 with SMTP id h37mr1375653qck.58.1258522665329; Tue, 17 Nov 2009 21:37:45 -0800 (PST) In-Reply-To: References: Date: Wed, 18 Nov 2009 13:37:45 +0800 Message-ID: From: "Mr. Teo En Ming (Zhang Enming)" To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Tutorial: How to Build and Install Partclone on Fedora 11 x86_64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 05:37:46 -0000 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: 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` 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.