this post was submitted on 20 Sep 2023
31 points (97.0% liked)

Linux

48033 readers
1194 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 18 comments
sorted by: hot top controversial new old
[–] AbidanYre@lemmy.world 10 points 1 year ago (1 children)

Git annex will keep track of where files are for you.

[–] aurtzy@discuss.tchncs.de 5 points 1 year ago

I use git-annex for syncing and backing up all of my data; would highly recommend if you're looking for something that scales well, OP.

[–] MangoPenguin@lemmy.blahaj.zone 8 points 1 year ago (1 children)

You could make a text file of all the directories/files, name it according to the drive name, and then you could search the text files or just scroll through it.

https://stackoverflow.com/questions/23808798/how-can-i-export-a-recursive-directory-file-listing-to-a-text-file-in-linux-ba

[–] Shadow@lemmy.ca 13 points 1 year ago (1 children)

A slightly more polished version might be a locate db per disk

[–] d3Xt3r@lemmy.nz 6 points 1 year ago* (last edited 1 year ago)

This. By default, the locate command does not check whether the files found in the database still exist, so you could use it even if the indexed filesystem or path is offline.

[–] fakeman_pretendname@feddit.uk 6 points 1 year ago

Not sure if it's more suitable than what's been suggested already, but I use Virtual Volumes View, an open source program to log/index my (disconnected) external drives and older hard drives.

I then keep the database/catalogue in a shared location I can check from my desktop/laptop.

[–] anon5621@lemmy.ml 5 points 1 year ago* (last edited 1 year ago)

Strange that anyone,didn't recommend gui app fsearch https://github.com/cboxdoerfer/fsearch

[–] bloopernova@programming.dev 5 points 1 year ago

Save a list of all the files full paths, then run that file through fzf https://github.com/junegunn/fzf

[–] PseudoSpock@lemmy.dbzer0.com 4 points 1 year ago

mlocate, plocate, slocate

Mount the drive, run updatedb, then unmount the db when that finishes. Then use the locate command.

[–] dack@lemmy.world 4 points 1 year ago

You could maybe do some tricks with one of the variations of locate - such as mlocate or locate. There are options for the updatedb to index specific paths and store in the specified database. If you store a separate db per drive, a bit of scripting to loop through all DBs would let you search them all.

[–] ipsirc@lemmy.ml 4 points 1 year ago
[–] thefactremains@lemmy.world 2 points 1 year ago

I'm pretty sure tag spaces can do this if you're open to going that route.

[–] CoderSupreme@programming.dev 1 points 11 months ago

To index the contents of the drives, you can redirect the output of the find command to a file. For example, find /path/to/your/drive -type f > drive_index.txt will create a file named drive_index.txt containing a list of all the files in the drive.

Then place all the file list in the same folder and grep that folder to find which drive contains the file.

[–] whostosay@lemmy.world 0 points 1 year ago (2 children)

The hard drive that is disconnected

[–] MangoPenguin@lemmy.blahaj.zone 4 points 1 year ago (1 children)

That's not very helpful lol

[–] Kbobabob@lemmy.world 3 points 1 year ago

I think they just dropped this

?

[–] bloopernova@programming.dev 1 points 1 year ago

The hard drive that is disconnected

The Hard Drive That Is Disconnected

[–] PuppyOSAndCoffee@lemmy.ml -1 points 1 year ago

Not being facetious but you could write your own tool. It might take a minute at first but then it would be yours and be totes worth it.