Training, Open Source Programming Languages

This is page http://www.wellho.net/mouth/705_Disc ... oning.html

Our email: info@wellho.net • Phone: 01144 1225 708225

 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Disc Partitioning

When installing Linux, you're able to choose how to split up (partition or slice) your disc(s) and which part of the file system to put on each. Here's a partitioning algorithm that we came up with for an organisation that has a variety of servers.

WHAT do you want on separate partitions?

/ - duh, yes, must be a partition name
swap - ANY chance of running out of memory, have a swap area!
/var - if mail system, printer controller, etc
/usr - if you're looking to share /usr (not likely these days); also worth
separating if you're doing a dual boot and both OS's need to start before the the 4Gb mark on the disk.
/usr/local - if you'll be adding lots of extra s/w and want to upgrade the OS later on without reloading all your local extras OR if you want to NFS / Samba share your /usr/local
/tmp - if you have lots of meaty applications that write / read huge temporary files
/home - if you have any local users apart from admin's accounts
/boot - if you're acting as a tftp boot server; also perhaps because grub is here

RULE in general - use separate partitions for things that have different backup strategies, and things that you don't want to crash the system when the users get them full.

How big should they be?

$64000 question

/ - Need not be too big - 2Gb should be twice what you need
/usr - Build is typically 2Gb to 7Gb - allow, say, 9Gb.
/tmp - Allow, say 2Gb. If you're running an A0 pixel mapped plotter though, you'll need a *** of a lot more space, or if you're doing fluid dynamics, seismic oil data processing.
/var - Allow 1Gb PLUS space for mail, print queues, etc - see /tmp
/usr/local - How much extra s/w are you likely to add? Allow 2 or 3 Gb - lots of s/w, especially Java to add? Allow an extra 4Gb on top ...
swap - authorities say "twice the size of your memory"
/home - as much space as you have left!

Add together the various amounts if you're not having a separate partition for each ... so

Typical system, 512 Mb memory

/ - 2 + 9 + 2 + 3 = 16 Gb
swap - 1 Gb
/var - 3 Gb
/home - the rest

* Do NOT put swap at the very end!
* Multidisc systems - spread swap between all discs with fastest r.p.m.s
* Tend to have / and swap as primary.
(written 2006-04-30, updated 2006-06-05)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
A191 - Web Application Deployment - Installing Linux
  [1288] Linux run states, shell special commands, and directory structures - (2007-08-03)
  [1292] DHCP automatic IP address v Static IP - (2007-08-06)
  [3632] What is Make? - (2012-03-02)


Back to
Erin Brent - rest in peace
Previous and next
or
Horse's mouth home
Forward to
May day away
Some other Articles
Handling huge data files in PHP
Linescapes of Mull
A story of goldfish
May day away
Disc Partitioning
Erin Brent - rest in peace
Copying files and preserving ownership
Iterators - expressions tha change each time you call them
Minature Cyclists only - limited headroom
As I walked in to Oxford
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/705_Disc ... oning.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb