Linux HOWTOs

About | Home | Search


HOWTO: ntfsprogs
Description: Library and utilities for NTFS filesystem use from Linux
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# ntfsprogs 1.13.1
# ================
# gawk
# grep
# sed
# pkg-config
# FUSE >= 4.0.3 (for the 'ntfsmount' utility)

cd
test -f installed/ntfsprogs-1.13.1.tar.gz &&
 mv installed/ntfsprogs-1.13.1.tar.gz .
test ! -f ntfsprogs-1.13.1.tar.gz &&
 wget http://download.sf.net/linux-ntfs/ntfsprogs-1.13.1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "ntfsprogs-*" -exec rm -r {} \;
tar xzvf ~/ntfsprogs-1.13.1.tar.gz
cd ntfsprogs-1.13.1
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install ; ldconfig ; chown -R $USER ."
cd
mkdir -p -m 0700 installed
rm -f installed/ntfsprogs-*.tar.*
mv ntfsprogs-1.13.1.tar.gz installed/


# If you ever want to uninstall ntfsprogs, this should do it:
cd
su
test -d src/ntfsprogs-* && ( cd src/ntfsprogs-* ; make uninstall )
( cd /sbin ; rm -f mkfs.ntfs mount.ntfs-fuse )
( cd /usr/local/bin ; rm -f ntfscat ntfscluster ntfsfix ntfsinfo \
 ntfsls ntfsmount )
( cd /usr/local/etc/gnome-vfs-2.0/modules ; rm -f libntfs.conf \
 libntfs-gnomevfs.* )
test -d /usr/local/include/ntfs && rm -r /usr/local/include/ntfs
( cd /usr/local/man/man8 ; rm -f libntfs-gnomevfs.8 mkfs.ntfs.8 mkntfs.8 \
 mount.ntfs-fuse.8 ntfscat.8 ntfsclone.8 ntfscluster.8 ntfscp.8 ntfsfix.8 \
 ntfsinfo.8 ntfslabel.8 ntfsls.8 ntfsmount.8 ntfsprogs.8 ntfsresize.8 \
 ntfsundelete.8 )
( cd /usr/local/sbin ; rm -f mkntfs ntfsclone ntfscp ntfslabel \
 ntfsresize ntfsundelete )
rm -f /usr/local/lib/libntfs.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "ntfsprogs-*" -exec rm -r {} \;
rm -f ~/installed/ntfsprogs-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>