LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2016, 05:10 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,720
Blog Entries: 3

Rep: Reputation: 107Reputation: 107
seeking "catalog" of files


Is there any linux application or utility that will catalog the contents of filesystem on drives, thumb/key drives, media cards, CD, DVD and BluRay media? ASIDE -- I can't believe that something like this doesn't already exist, but I can't find one.

All I want is a catalog of file, path, filesystem, device, details....

I am not interested in a catalog of images (resolution, date/time, camera settings, etc) or music (genre, artist, album, duration, etc) or movie(title, studio, IMDB, etc).

I'm looking for something that will scan a file system, record the filename and path of what is there, remember which filesystem (and other details) it came from, and store these per filename details into an open database.

I should then be able to ask the database "find {filename}" and see a display of the details along with the filesystem where that {filename} exists.

I say open database to mean that the storage is available for me to access with my own tools to analyze the database contents. This is important since any app or utility might be better if I can extend it to meet my exact needs.

Thanks in advance,
~~~ 0;-Dan
 
Old 06-02-2016, 06:23 PM   #2
dbl_delta
LQ Newbie
 
Registered: Dec 2010
Distribution: Slack 13.1
Posts: 3

Rep: Reputation: 0
Does

ls -d -l $PWD/**/* > fileinfo.txt

give you what you're looking for?
 
Old 06-03-2016, 01:16 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,720

Original Poster
Blog Entries: 3

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by dbl_delta View Post
Does
Code:
ls -d -l $PWD/**/* > fileinfo.txt
give you what you're looking for?
Armed with a pile of these lists, I could grep for my desired filename and the name of the list tells me
which filesystem holds the file.

From a scripting perspective, this would be a likely start -- that or:
Code:
prompt$  find $PLACE -ls -iname $PATTERN
After all, that is most of the information available about a single file. The other useful details would likely include the MD5SUM of the file.

The find command might be preferred because I could control the output format in greater detail.

I hope that I don't need to invent something and can simply install something that already exists.
If not, this might be my summer project.

Thanks, again,
~~~ 0;-Dan
 
Old 06-03-2016, 03:46 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 22,260

Rep: Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542Reputation: 4542
There are a few desktop search engines in addition to locate but they do not appear to meet your specific requirements. At the moment I have not found anything (which does not mean much) so it looks like you have your summer project.

https://en.wikipedia.org/wiki/List_o...search_engines
 
1 members found this post helpful.
Old 06-03-2016, 05:22 PM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
I use
Code:
tree -L 99 -a .
to get a list of all files/directories. It doesn't include any filesystem info though.
 
1 members found this post helpful.
  


Reply

Tags
catalog, database, drives, files, media


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
seeking "home office" or "small business" server advice SaintDanBert Linux - Server 10 05-04-2014 06:12 PM
seeking linux workstation oriented "audit" or "inventory" utility SaintDanBert Linux - Software 2 02-08-2012 06:02 AM
seeking "file catalog" application SaintDanBert Linux - Software 1 02-27-2010 12:46 PM
seeking conversion to/from winXX tablet "journal" and X11 tablet "xournal" ink SaintDanBert Linux - Software 0 01-12-2010 06:14 PM
Seeking for "Synchronise" and "patients" projects/scripts of Visual Basic LAN-Dominator.nl Programming 2 07-05-2008 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration