Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2001 09:16:51 -0700 (PDT)
From:      David Wolfskill <dhw@whistle.com>
To:        stable@FreeBSD.ORG
Subject:   Re: Disklabel 101?
Message-ID:  <200104091616.f39GGpb72064@pau-amma.whistle.com>
In-Reply-To: <000001c0bfd9$3b96a230$1201a8c0@sanmik.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
OK, since folks are comparing unusual disk layouts, here's one I've been
using on my laptop for the last few weeks (since I got it).  Now, this
isn't something that you can tell sysinstall to do directly; more about
that should be at http://www.catwhisker.org/~david/FreeBSD/laptop.html.

It should also be understood that I'm tracking both -CURRENT and -STABLE
on the machine; that I'm working (as time permits) on some code that
will permit the space pointed to by the 4th MBR "partition table" entry
to be used as a "suspend to disk partition".  I just finished building
-CURRENT for today, and did the multi-user boot, so that's what it's
running at the moment.  (I'll probably switch to today's -STABLE shortly
after posting this.)

m758712358[1] sudo boot0cfg -v ad0
#   flag     start chs   type       end chs       offset         size
1   0x00      0:  1: 1   0xa5    137:239:63           63      2086497
2   0x00    138:  0: 1   0xa5    275:239:63      2086560      2086560
3   0x80    346:  0: 1   0xa5    535:239:63      5231520     33838560
4   0x00    276:  0: 1   0xa0    345:239:63      4173120      1058400

version=1.1  drive=0x80  mask=0x7  ticks=182
options=packet,update,nosetdrv
default_selection=F3 (Slice 3)
m758712358[2] df -k; swapinfo
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s3a     95263    70203    17439    80%    /
devfs               1        1        0   100%    /dev
/dev/ad0s1a     95263    40768    46874    47%    /S1
/dev/ad0s1e    915695   750190    92250    89%    /S1/usr
/dev/ad0s2a     95263    40767    46875    47%    /S2
/dev/ad0s2e    915727   750172    92297    89%    /S2/usr
/dev/ad0s3e    915727   726821   115648    86%    /usr
/dev/ad0s3g    254063    73145   160593    31%    /var
/dev/ad0s3h  14116697  4354913  8632449    34%    /common
procfs              4        4        0   100%    /proc
/dev/md10c     520140       16   478516     0%    /tmp
Device          1K-blocks     Used    Avail Capacity  Type
/dev/ad0s3b       1048448     4168  1044280     0%    Interleaved
m758712358[3] ls -l /S?/kernel /boot/kernel/kernel 
-r-xr-xr-x  1 root  wheel  2835013 Apr  9 06:51 /S1/kernel
-r-xr-xr-x  1 root  wheel  2834713 Apr  8 10:02 /S2/kernel
-r-xr-xr-x  1 root  wheel  3386431 Apr  9 08:43 /boot/kernel/kernel

As in Mike's case, I share the swap space among the kernels; I also share
/var and /common -- basically, everything on what the 3rd "partition tabel"
entry points to.  /common is where /usr/local points, as well as /home.
And /usr/obj in each case is a symlink to /common/*/obj (where "*" is one
of "C", "S1", or "S2").  /common/cvs is where I keep my CVS repository.

It seems to be working OK for me so far.  :-)

Cheers,
david
-- 
David Wolfskill      dhw@whistle.com   UNIX System Administrator
Desk: 650/577-7158   TIE: 8/499-7158   Cell: 650/759-0823

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200104091616.f39GGpb72064>