Take the 2-minute tour ×

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer


