Brief description :

Linux driver gives us a chance to interface with an NTFS filesystem. Thanks to this driver, we can use built-in Linux commands on an NTFS filesystem.

Ex : ls, chown, chmod, cd, locate, rm, ln etc.

Question :

Where can I find this source code ?

Why :

Try to be familiar with NTFS

  • 1
    Just to be clear, ls, locate etc. have nothing to do with ntfs itself. These utilities use systemcalls to get their information. – Ulrich Dangel Jun 7 '12 at 16:12

If you are using the in kernel NTFS driver, your distro may have a kernel source package, which you can install and poke around. It is usually installed to /usr/src

If you used the ntfs-3g driver, the code is here: NTFS-3G Tarball

  • which one is driver for ntfs in /usr/src ? – user1423470 Jun 7 '12 at 13:33
  • I have looked in NTFS-3G tarball, but I could not see implementation of locate. I am looking also source code of locate, ln, rmdir for ntfs. – user1423470 Jun 7 '12 at 13:38
  • @user1423470 locate is an external utility, unrelated to NTFS. – Chris Down Jun 7 '12 at 16:39
  • I agree with Chris Down. I believe that locate, ln, rmdir are not dependedent on a specific FS. In other words, I believe they are written to work with any file system. – bigdaveyl Jun 7 '12 at 17:17

NTFS driver is found inside the fs/ntfs folder in the linux kernel source tree.

Find the code here : http://lxr.linux.no/linux+v3.5.3/fs/ntfs/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.