Hitchhiker's Guide to Openbsd
partition. While this is often
Download 1.27 Mb. Pdf ko'rish
|
obsd-faq49
partition. While this is often quite useful, it doesn't satisfy all users' needs. For our example, we'll assume we are building a static web server for some of our friends to use. We have a machine attached to a modest Internet connection, with a 40G disk, with most of it used for OpenBSD (with the same 5G Windows partition as the example above. Why? Maybe this system has a RAID controller which is supported by http://www.openbsd.org/faq/faq4.html (23 of 43)9/4/2011 10:01:58 AM 4 - OpenBSD 4.9 Installation Guide OpenBSD, but manageable only from within Windows. More likely, because the FAQ editor doesn't feel like maintaining lots of different example systems). The web pages served by an OpenBSD web server will be in /var/www , and very little will be stored in /home , so this indicates a definite change from the default that needs to be made. For the sake of discussion, we'll also assume that we won't need to rebuild the OS from source on this machine (we'll do that elsewhere). The system will not run X, however being that some web applications expect X to be installed , we will have X installed. The machine is not overly powerful, it can't have more than 1G RAM in it, and it is unlikely our application will ever desire more than that. So, after a bit of thought, our plan is to partition the system like this: ● / - root : 100m. This will be 'a'. ● swap : 1G (so we'll always have enough space for a core dump), this will be partition 'b' ● /usr : 2g, partition d ● /tmp : 100m (we don't anticipate much use of this), partition e ● /usr/local : 2g, partition f ● /usr/X11R6 : 1g, partition g ● /home : 1g, partition h ● /var : 1g (that's a lot of system log files), partition j ● /var/www : rest of disk, partition k The auto-allocated layout for wd0 is: # size offset fstype [fsize bsize cpg] a: 1024.0M 10490445 4.2BSD 2048 16384 1 # / b: 252.1M 12587597 swap c: 39205.7M 0 unused d: 2319.3M 13103933 4.2BSD 2048 16384 1 # /tmp e: 3653.9M 17853877 4.2BSD 2048 16384 1 # /var f: 1149.8M 25337016 4.2BSD 2048 16384 1 # /usr g: 1024.0M 27691862 4.2BSD 2048 16384 1 # /usr/X11R6 h: 3422.6M 29789014 4.2BSD 2048 16384 1 # /usr/local i: 5122.3M 63 NTFS j: 1848.7M 36798433 4.2BSD 2048 16384 1 # /usr/src k: 1848.7M 40584654 4.2BSD 2048 16384 1 # /usr/obj l: 17540.2M 44370875 4.2BSD 2048 16384 1 # /home Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] c If we had only minor revisions, we'd probably opt to "Edit" the custom layout rather than starting from a clean slate, but we are going to do things the hard way here. http://www.openbsd.org/faq/faq4.html (24 of 43)9/4/2011 10:01:58 AM 4 - OpenBSD 4.9 Installation Guide You will now create an OpenBSD disklabel inside the OpenBSD MBR Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling