LinuxQuestions.org
Visit Jeremy's Blog.
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 02-03-2005, 10:22 AM   #1
Steve Riley
Member
 
Registered: Jan 2005
Location: Dallas
Distribution: Suse
Posts: 94

Rep: Reputation: 15
adding directories under root


I've done a clean install of FC3 and have added a couple directories to the top level, directly under /, the root directory. They are separate mounted partitions. I haven't tested it thoroughly, but on booting everything looks fine.

Is it OK to add directories directly under root?

Is this:

A) No problem.

B) Rarely done but should be no problem.

C) Technically fine, but in questionable taste. Could be used as a bogus excuse by a pseudo-purist to get you fired.

D) Technically possible but not recommended. (Why?)

E) Bad idea that will lead to problems. (Why?)

Thanks,

Steve
 
Old 02-03-2005, 10:48 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

All your questions are answered by the FHS (Filesystem Hierarchy Standard)

Here's one of the links you could use:

http://www.pathname.com/fhs/

Here's my view:

Quote:
A) No problem.
From a pure technical viewpoint it's no problem.

Quote:
B) Rarely done but should be no problem.
I've seen it all over (professionally and personally).

Quote:
C) Technically fine, but in questionable taste. Could be used as a bogus excuse by a pseudo-purist to get you fired.
The link given will answer most of this question. Beware that FHS is called a standard but isn't (yet).

Most companies (and myself, privately) make 1 (or more) base mountpoints under which others are mounted. I.e.:

/data <= base
/data/Backup
/data/Software
etc

Quote:
D) Technically possible but not recommended. (Why?)
See point C and the FHS document.

Quote:
E) Bad idea that will lead to problems. (Why?)
Nope, no technical problems, although mount order migth be important. To clarify this take the /data example from point C:

If /data is a fs that is mounted, /data/Software should be mounted after /data is mounted (yep, sound logical but I've seen the opposite happen.....)

Hope this clears things up a bit.

Last edited by druuna; 02-03-2005 at 10:49 AM.
 
Old 02-03-2005, 11:17 AM   #3
Steve Riley
Member
 
Registered: Jan 2005
Location: Dallas
Distribution: Suse
Posts: 94

Original Poster
Rep: Reputation: 15
Druuna -

Thanks for a very thorough response. A backup directory is exactly what I had in mind.

Thanks for the FHS link also.

Steve
 
  


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
Root directories /tmp, /var, /etc ninmonkeys Linux - General 7 11-21-2004 01:49 PM
Adding directories to the PATH statement kaplan71 Slackware 2 09-02-2004 03:57 PM
Persmissions changing on root directories? granatica Linux - Security 2 06-14-2004 02:52 PM
no directories shown in root oasisbhrnw99 Linux - Newbie 1 05-05-2004 01:09 AM
Netjuke: Adding music directories to apache cav Linux - Software 2 02-07-2004 08:43 PM

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

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