Hierarchy
I know the basic hierarchy:
/ /bin /boot /dev /etc and so on... my question is - are their specific ways to mount these? As in, should mount /bin, /boot. /dev, /etc and so on all on their own.. or how are they grouped together? I am also interested to know what the standard size is to set each one that I mount.. I have looked on here: http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/ That gave me great detail for the hierarchy but nothing on sizes and what goes where exactly. any suggestions where else to look. I keep looking but no luck yet. Thank you |
It all depends on your partitioning scheme. Most people just have three partitions - / (root), /home, and swap. Except for /home, / contains all of those directories, and they don't have to be mounted - they're all grouped together and become available when / is mounted (usually at startup). Of course, you could have a separate partition for every one of those, but it isn't normally necessary or helpful.
So as for mounting, you'll generally only have two things to mount - / and /home, and both of which are typically automounted at system boot. |
Any suggestion on the standard size of these partitions? I am just trying to get together a standard so if we decide to rebuild we rebuild them all the same exact way.
|
It depends on how much space is available. My computer has two harddrives of 500gb each, so I use one drive just for root and swap and the other just for /home.
But depending on you distro and what exactly will be done with the drive (and of course how much space is available), go with 30gb at a very minimum, and maybe 100gb for a reasonable workstation (unless you plan to have a lot of high space apps in root). Give all the rest of the drive to /home, which is where all of your user settings and personal files will be saved. For your swap partition, size it to anywhere between half and double the amount of ram on the computer. This is assuming a 3 partition setup like the one I described in my first post (root, /home, swap) |
Quote:
I understand what root and /home are - what is swap for? |
Quote:
|
So would you say the website I posted is pretty accurate?
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/ its a little confusing at first simply because it doesnt say if everything listed is under /, /home or swap... |
Quote:
Swap isn't part of the filesystem, so it won't be in the hierarchy. The filesystem hierarchy and how you partition and mount drives are unrelated. |
its accurate, but it isn't telling you the information you're looking for.
A linux install is, at its simplest level, a collection of folders each containing various directories and files. everything in a linux install is mounted at / (the root filesystem). Where partitions and mounting come into play is just based on what actual harddrive and partition contain the individual directories. To use the 3-partition setup I gave above, you would only actually mount / and /home. All of the directories in that webpage (/etc, /var, /usr, /sbin, and so forth) except for /home are located on the / partition, and so would automatically be there when / is mounted. The /home partition is mounted on its own alongside the / partition, but the /home directory will still appear where it needs to appear (in the root directory. Its hard to explain in easy terms what I'm trying to say. My point is, all of the directories in the hierarchy are located in the same place in the install, but can be physically located on different partitions or drives, depending on how it was originally installed. No matter how many or how few partitions you have, the user will always see the filesystem hierarchy in the way it should be - root directory, containing /etc, /home, /var. I think this is what you're asking for, anyway. I may have misunderstood your question. |
I think you explained it!
Everything is under /. But /home is partitioned out - yet still accessible through / because it is still apart of / even though /home is mounted "seperately" Let me know if thats the basic understanding? That makes sense to me but then again imma noob! I really appreciate your help! |
Quote:
|
is /swap the same as /var?
The Root Directory / - separate partition mounted first that contains all directories with standard space available of 100GB unless you plan to have a lot of high space apps in the root directory. 1) /bin 2) /boot 3) /dev 4) /etc – contains all system related configuration files 5) /home – separate partition can get large and used for storing downloads, compiling, installing and running programs, your mail, images, sound files etc… size is dependent upon how many users. 6) /Initrd 7) /lib 8) /lost+found 9) /media 10) /opt 11) /proc 12) /root – home directory of system administrator 13) /sbin 14) /usr 15) /var 16) /srv 17) /tmp Does this look correct? |
Quote:
|
Quote:
Don't confuse the file system hierarchy and mount points.
Quote:
|
If I have 8TB of data/files being looked though each and every day by thousands of customers would best practice be to partition out /, /home and swap and only mount / and /home?
Should I have another partition for tmp? var? or anything besides those two? Or is it completely up to me? I can have a home partition and mount it to /home - that way all data stays on that partition I can have a / partition and mount it to / - that way all data stays there etc... Thats how I understand it right? |
All times are GMT -5. The time now is 03:20 PM. |