Re: Partitions/Slices
From: DoN. Nichols (dnichols_at_d-and-d.com)
Date: 03/29/05
- Next message: Marc Wirth: "Re: OpenBSD with SATA"
- Previous message: Marco S Hyman: "Re: Partitions/Slices"
- In reply to: Marco S Hyman: "Re: Partitions/Slices"
- Next in thread: hannibalkannibal_at_gmail.com: "Re: Partitions/Slices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Mar 2005 00:50:34 -0500
In article <x7u0mvqdcq.fsf@neko.snafu.org>,
Marco S Hyman <marc@snafu.org> wrote:
>hannibalkannibal@gmail.com writes:
>
>> When I installed OpenBSD, I created four slices, one for /tmp, one for
>
>Sigh... this slice/partition nonsence causes more problems...
>Are you talking about things created with fdisk or things created
>with disklabel? Assuming your disk is wd0 what is the output
>of 'fdisk wd0' and 'disklabel wd0'. If you see that the partitions
>exist in the disklabel output all you have to do is mount them.
>Read fstab(5) to see how to do this at boot time.
And the swap partion does not get mounted (unless you are also
using it as a tmpfs).
As an example, from my Intel-based 3.5 OBSD, I get the
following:
======================================================================
(end of disklabel output. Note that partition 'b' is swap.)
# size offset fstype [fsize bsize cpg]
a: 2097585 63 4.2BSD 2048 16384 328 # (Cyl. 0*- 2080)
b: 2097648 2097648 swap # (Cyl. 2081 - 4161)
c: 40132503 0 unused 0 0 # (Cyl. 0 - 39813*)
d: 4194288 4195296 4.2BSD 2048 16384 328 # (Cyl. 4162 - 8322)
e: 4194288 8389584 4.2BSD 2048 16384 328 # (Cyl. 8323 - 12483)
f: 6291936 12583872 4.2BSD 2048 16384 328 # (Cyl. 12484 - 18725)
g: 16777152 18875808 4.2BSD 2048 16384 328 # (Cyl. 18726 - 35369)
h: 4477410 35652960 4.2BSD 2048 16384 328 # (Cyl. 35370 - 39811*)
======================================================================
And here -- df shows the other partitions, but *not* swap,
because the kernel keeps it for its own use. (Note that of your list of
partitions, that one is the only one which does not start with a '/'.)
======================================================================
curlmakr:csu 0:45 # df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 1030518 31054 947940 3% /
/dev/wd0h 2202174 21202 2070864 1% /home
/dev/wd0g 8255550 2562560 5280214 33% /local-workplace
/dev/wd0e 2063222 302696 1657366 15% /usr
/dev/wd0f 3093790 1122672 1816430 38% /usr/local
/dev/wd0d 2063222 51860 1908202 3% /var
======================================================================
Enjoy,
DoN.
-- Email: <dnichols@d-and-d.com> | Voice (all times): (703) 938-4564 (too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html --- Black Holes are where God is dividing by zero ---
- Next message: Marc Wirth: "Re: OpenBSD with SATA"
- Previous message: Marco S Hyman: "Re: Partitions/Slices"
- In reply to: Marco S Hyman: "Re: Partitions/Slices"
- Next in thread: hannibalkannibal_at_gmail.com: "Re: Partitions/Slices"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]