Sep
15
2008

Accessing NTFS Partitions from Linux

This is basically done by two methods:
– The NTFS kernel module
– The NTFS user space programs
from the kernel source or http://www.linux-ntfs.org/

The NTFS Kernel Module
Have a check at the wiki page

You
might find an appropriate prebuilt driver for your current kernel
version. Then you can do normal mounts etc on NTFS partitions. One
problem here is that if you upgrade your kernel, you’ll need to have a
new kernel module. Or eventually build from source.

Alternatively
with 2.6 kernels there is the NTFS support. But with enterprise distros
(like OEL or RHEL) that support is not compiled in and rebuilt kernels
are not supported.

The NTFS Userspace Programs

That is the kernel-version-free solution and it is quite effective. One can get the source from Linux-NTFS Download or more precisely the 2.0.0 version here.

This is the option that I prefer…

Note
that there is an option to have ntfsmount too (–enable-ntfsmount) ..
But that requires FUSE support where enterprise distros generally
discard / disable FUSE support due to security reasons.

# tar jxvf ntfsprogs-2.0.0.tar.bz2
ntfsprogs-2.0.0/
ntfsprogs-2.0.0/doc/
ntfsprogs-2.0.0/doc/attributes.txt
ntfsprogs-2.0.0/doc/CodingStyle

ntfsprogs-2.0.0/COPYING
ntfsprogs-2.0.0/TODO.ntfsprogs
ntfsprogs-2.0.0/CREDITS
ntfsprogs-2.0.0/ntfsprogs.spec
# cd ntfsprogs-2.0.0
# ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu

config.status: config.h is unchanged
config.status: executing depfiles commands
# make && make install
make all-recursive
make[1]: Entering directory `/home/oyuksel/projects/ntfsprogs-2.0.0′

make[2]: Leaving directory `/home/oyuksel/projects/ntfsprogs-2.0.0′
make[1]: Leaving directory `/home/oyuksel/projects/ntfsprogs-2.0.0′
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
# ntfsls -l /dev/sdb2
0 May 31 15:23 2008 data
0 Feb 12 15:59 2007 data1
0 Feb 12 15:59 2007 data2
0 Mar 30 15:43 2007 muzik
0 Feb 13 15:21 2007 MyVM
0 Feb 13 15:59 2007 RECYCLER
0 Feb 4 23:14 2007 System Volume Information
42004 Jul 28 16:13 2008 testfile
# ntfscat /dev/sdb2 testfile > testfile
# ls -l testfile
-rw-r–r– 1 root root 42004 Jul 28 16:15 testfile

For more information see Linux-NTFS Wiki

Share
Written by in: linux,storage,sysadm | Tweet This

No Comments »

RSS feed for comments on this post. TrackBack URL


Leave a Reply

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com