Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Linux system has an NTFS disk attached to it. How can I search for all *.txt files on the NTFS partition using Linux?

share|improve this question
up vote 3 down vote accepted

I would mount the drive with mount -tntfs /dev/sdb1 /mnt (assuming your drive is at /dev/sdb, and /mnt is a suitable mount point.

Then I'd use find /mnt -name *.txt. This isn't the fastest way, but it should work.

share|improve this answer
You might not need to, but it is probably safest to escape the * to prevent the shell from globbing it. – Slartibartfast Aug 25 '10 at 1:47
@slartibartfast: I don't believe it's necessary, but thanks for pointing it out; it's good to know if the results don't come out as expected. BTW, I know you must get this a lot, but I personally found the fjords rather delightful. – Babu Aug 25 '10 at 3:11

After mounting it, just navigate to the disk's root using nautilus (Ubuntu's default file manager) and search by clicking the looking glass. Then type in "*.txt".

share|improve this answer
That doesn't search directories. – tony_sid Aug 25 '10 at 2:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .