LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-06-2020, 05:51 PM   #16
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,689

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176

Quote:
Originally Posted by mrmazda View Post
I read 2TB as space consumption, not files count, so not necessarily indicative of anything in a visual perusal.
true, although both have grown. this also means i am not going to copy it to the spare 2TB drive i do have (i have only one spare USB3 port and this would take all day on USB2). i will limit any solutions being considered to those that either don't change what's there (in existing trees) or add new trees that i can "rm -r" later.
 
Old 08-06-2020, 06:15 PM   #17
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,689

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
my latest idea:

a python script will keep a dictionary indexed by each file's i-node and store a set of the top-level directory name(s) the file is found in. another dictionary indexed by i-node will store the file's sub-path under the top-level tree. after a scan finishes building these two dictionaries a loop iterating over all the i-nodes will handle each that has a size of its set of top-level names different than the number of trees by reporting which trees it is in and which trees it is not in, along with its list of sub-paths. then this script can figure out if any tree has every file and list them as critical trees to keep. it can also rerun the scan over all trees looking for the problem sub-paths and report all the relations (which sub-path in which top-level).
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS - Enable directory browsing on a linked directory. systemlordanubis Linux - Server 2 11-05-2015 11:41 PM
Restored files symbolically link to backup files, & can't boot using linked files mazinoz Linux Mint 1 01-31-2015 05:10 AM
removing hard linked files jiml8 Linux - Software 1 05-11-2008 05:26 PM
Searching for symlinks and hard linked files mikemrh9 Linux - Software 2 04-06-2005 11:14 AM
Winxp linked to Linux Linked to home network OverboardKiller Linux - Networking 2 06-09-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:12 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