Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On Ubuntu, is there any way to search for files on multiple hard disk partitions at once? I'd like to search the contents of all of my hard disk partitions at the same time, including my Windows partition and my Ubuntu partition.

share|improve this question

2 Answers 2

You can execute command 'find' in differnet terminal windows at the same time and giving location of each partition to each different find command.

see man find for details.

share|improve this answer
    
Do you mean that I should simply type the command separately into 3 different terminal windows, instead of using a single command to search within each partition at the same time? –  Anderson Green Dec 31 '12 at 7:16
    
BTW, how many pages long is man find? –  Anderson Green Dec 31 '12 at 7:17
1  
this answser would be better if it included a bash script to replace the manual work. –  don.joey Dec 31 '12 at 7:25

All your hard discs are mounted somewhere (most likely under /media or otherwise under /mnt) so if you use find from command line at root level (/) or navigate to root level in Nautilus it will include your USB discs if they are mounted.

Linux can read NTFS so if you mounted the disc (example: mount -tntfs /dev/sdb1 /mnt) it will also search that disc.

The online manpage for find you can find here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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