Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 2000 00:43:57 -0500
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Brian Budnick <dreamboy@aros.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Swap Space!
Message-ID:  <20000330004357.C17852@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <FCEJKOGNFDIDDJEMEMMOEENECLAA.dreamboy@aros.net>; from dreamboy@aros.net on Wed, Mar 29, 2000 at 03:00:53PM -0700
References:  <FCEJKOGNFDIDDJEMEMMOEENECLAA.dreamboy@aros.net>

next in thread | previous in thread | raw e-mail | index | archive | help
[Your line wrapping is broken.]

On Wed, Mar 29, 2000 at 03:00:53PM -0700, Brian Budnick wrote:
> 
> Dear FreeBSD,
> 
> I have a 13gig IDE hard drive that my partition looks as follows:
                                        ^^^^^^^^^
Known as "slices" to this crowd.

> ******* Working on device /dev/rad0 *******
> parameters extracted from in-core disklabel are:
> cylinders=1653 heads=255 sectors/track=63 (16065 blks/cyl)
> 
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=1653 heads=255 sectors/track=63 (16065 blks/cyl)
> 
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 165,(FreeBSD/NetBSD/386BSD)
>     start 63, size 20563137 (10040 Meg), flag 80 (active)
>         beg: cyl 0/ sector 1/ head 1;
>         end: cyl 1023/ sector 63/ head 254
> The data for partition 2 is:
> sysid 130,(Linux swap or Solaris x86)
>     start 20563200, size 5992245 (2925 Meg), flag 0
>         beg: cyl 1023/ sector 63/ head 255;
>         end: cyl 1023/ sector 63/ head 254
> The data for partition 3 is:
> <UNUSED>
> The data for partition 4 is:
> <UNUSED>
>
> ==
> 
> The thing is when I do top or swapinfo it only shows 133MB of Swap Space but
> when
> I created the 2nd partition of 2925 Megs it doesn't seem to be seeing that
> as swap
> space. I would like to know how to get it so that the system uses this 2nd
> partition
> as swap space...
> 
> When i do : df (i get)
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/ad0s1a     49583    26838    18779    59%    /
> /dev/ad0s1f   9763091   862089  8119955    10%    /usr
> /dev/ad0s1e     19815      796    17434     4%    /var
> procfs              4        4        0   100%    /proc
> 
> Question #1: how do i find out what the device name is for the swap
> partition?
> /dev/ad0s1x???

You said you have been using swapinfo(8). That shows you your swap.
e.g. on my machine right now,

  % swapinfo
  Device      1K-blocks     Used    Avail Capacity  Type
  /dev/wd1s1b    196608      712   195768     0%    Interleaved
  /dev/wd0s1b    196608        0   196480     0%    Interleaved
  Total          392960      712   392248     0%

Swapping like mad, ain't I?

> Question #2: how do i get it so that the system uses this partition each
> time
> it reboots as swap space?

% more fstab
% man fstab

-- 
Crist J. Clark                           cjclark@home.com


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000330004357.C17852>