LinuxQuestions.org
Visit Jeremy's Blog.
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 08-16-2008, 03:31 PM   #1
auroraglacialis
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Rep: Reputation: 0
Program for displaying files that are on detached drives in the filesystem tree?


Hi.

I am looking for a program that can help me to achieve the following scenario:

There is a large HDD mounted in /pub/. As always, the HD is not large enough, so some older files have been copied to detachable drives (actually a hotswap HDD slot with USB access) and put away safely. What I want to achieve now is, that the files still appear to be in /pub/, but I get a note when I try to access it, that the file is on the detached Disk XYZ, so I can take this detached drive, connect it, (mount it) and I can access the needed file.

I was thinking about making symbolic links to /mnt/archive/XYZ/pub/... for each of the files and write a script that mounts each of the removeable drives to its own mountpoint if connected, but this is a bit messy, especially since all the symlinks will point to nowhere as long as no drive is mounted. BAsically I would get a "missing file" requester if I want to access a file, but no Information on what to do next, so I'd have to access the appropriate symlink, examine it and see that it points to /mnt/archives/XYZ, so then I know which drive to insert.

Is there a less messy and maybe cleaner solution for this in Linux (Gentoo/KDE3.5)?

Thanks
Aurora
 
Old 08-17-2008, 10:33 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you know database programming (or a database programmer) you could try making a SQL database with the files indexed, with information such as: name of file, location of file, comment (what the file contains), and a link to a script to put up a dialog box to tell you which drive to connect.
 
Old 08-17-2008, 01:28 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
Quote:
Originally Posted by bigrigdriver View Post
If you know database programming (or a database programmer) you could try making a SQL database with the files indexed, with information such as: name of file, location of file, comment (what the file contains), and a link to a script to put up a dialog box to tell you which drive to connect.
Note that, unless the contents of the detachable drives are static, you will need to modify the kernel processes which write to the drives to update the SQL data base.

That modification might be useful for general use, since you could then replace ls, find, locate, etc with data base search tools. In fact, that's so obvious that I'd be surprised if there wasn't a project in place to implement something like it.

I.e, instead of a "Data Base File System," just a simple "Data Base File Management System," eh?

Hum. Perhaps a search on SourceForge might be useful. Have you looked there?

Last edited by PTrenholme; 08-17-2008 at 01:29 PM.
 
Old 08-18-2008, 01:21 PM   #4
auroraglacialis
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I know a bit of MYSQL-Database programming, usually with PHP. I am not sure how I could make the desired function though. I could of course make a database and store the file information there and then set up a script or php-page where I can search for a file, but this will not give me the files in the directory where they used to be. Actually I found a name for this, it's Hierarchical Data Management and usually works with robot arms getting CDs from an archive etc, but what I need is a smaller, lightweight open source solution for this kind of thing.

I am not sure, what to search for on sourceforge. "Hierarchical Data Management" did not give good results...

Greets
Aurora
 
  


Reply


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
"reiserfsck --rebuild-tree -S" corrupting a filesystem cyberfishee Linux - Software 2 03-26-2008 06:56 PM
What's wrong with this tree program ? indian Programming 2 10-07-2006 10:41 AM
simple program for displaying cpu load/temp? reakinator Linux - Software 3 05-29-2006 10:00 PM
Problem displaying program output when driven by a cron job garmon Linux - Newbie 1 07-22-2004 03:34 PM
Program should work, but not displaying northfield Programming 2 08-23-2002 02:53 PM

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

All times are GMT -5. The time now is 03:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration