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

link|improve this question

74% accept rate
feedback

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.

link|improve this answer
1  
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
feedback

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".

link|improve this answer
That doesn't search directories. – OSX NINJA Aug 25 '10 at 2:34
feedback

Your Answer

 
or
required, but never shown

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