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.
2 Answers
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.
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.
-
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? Dec 31, 2012 at 7:16
-
-
1this answser would be better if it included a bash script to replace the manual work.– don.joeyDec 31, 2012 at 7:25