From owner-freebsd-questions Wed Mar 29 21:44: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 4827637BB8D for ; Wed, 29 Mar 2000 21:44:05 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id AAA18714; Thu, 30 Mar 2000 00:43:57 -0500 (EST) (envelope-from cjc) Date: Thu, 30 Mar 2000 00:43:57 -0500 From: "Crist J. Clark" To: Brian Budnick Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Swap Space! Message-ID: <20000330004357.C17852@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from dreamboy@aros.net on Wed, Mar 29, 2000 at 03:00:53PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [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: > > The data for partition 4 is: > > > == > > 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