From owner-freebsd-questions Sat Jan 18 06:29:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id GAA11712 for questions-outgoing; Sat, 18 Jan 1997 06:29:47 -0800 (PST) Received: from ns.awanet.com (root@ns.awanet.com [205.216.78.1]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id GAA11706 for ; Sat, 18 Jan 1997 06:29:44 -0800 (PST) Received: from myname.my.domain (ppp5.awanet.com [205.216.78.105]) by ns.awanet.com (8.7.4/8.6.9) with SMTP id IAA20216 for ; Sat, 18 Jan 1997 08:32:12 -0600 (CST) Message-ID: <32E0DE3E.2781E494@ns.awanet.com> Date: Sat, 18 Jan 1997 08:29:18 -0600 From: Dick Olson X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.1.5-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: How to create additional swap partition Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I have upgraded from 8 to 20MB of physical memory. Based on recommendations (2xRAM) I need to increase swap space. I have limited (BSD) file space but I do have some additional disk space (wd1) which was used as a DOS partition that I could use as a second SWAP partition. I have tried the following but was unable to boot FreeBSD after creating the partition. /stand/sysinstall customize create partition write crash (lots of error msgs of assorted types) Deleted partition in DOS Did MAKEDEV wd1s2x added an tried sysinstall again HD went into spin frenzy w/ "vnode_pager_input I/O error" etc unable to boot deleted created partition in DOS and recovered Figured I have pushed my luck at this point Ask for assistance I have Disk Manager to allow >528 for wd0 and use a bootmgr to use wd0 DOS and wd1 FreeBSD. I was able to boot DOS and deleted the created FreeBSD partition and was able to recover to original state. I have tried three times with no success. Read all the manuals, usergroups, FAQ with no success. I am also using the generic kernel (FreeBSD 2.1.5, XFree86 3.1.2). ######################## DATA: #fdisk wd1 ******* Working on device /dev/rwd1 ******* parameters extracted from in-core disklabel are: cylinders=967 heads=16 sectors/track=31 (496 blks/cyl) parameters to be used for BIOS calculations are: cylinders=967 heads=16 sectors/track=31 (496 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 4,(Primary DOS with 16 bit FAT) start 31, size 33201 (16 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 66/ sector 31/ head 15 ************************************************ I suspect this is the area I want to use as additional swap partition (16MB) The data for partition 1 is: ************************************************ The data for partition 2 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 66464, size 413168 (201 Meg), flag 80 beg: cyl 134/ sector 1/ head 0; end: cyl 966/ sector 31/ head 15 The data for partition 3 is: ------------------------------------------------ #disklabel wd1 # /dev/rwd1c: type: ESDI disk: wd1s3 label: flags: bytes/sector: 512 sectors/track: 31 tracks/cylinder: 16 sectors/cylinder: 496 cylinders: 833 sectors/unit: 413168 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 65536 0 4.2BSD 0 0 0 # (Cyl. 0 - 132*) b: 54464 65536 swap # (Cyl. 132*- 241*) c: 413168 0 unused 0 0 # (Cyl. 0 - 832) e: 61440 120000 4.2BSD 0 0 0 # (Cyl. 241*- 365*) f: 231728 181440 4.2BSD 0 0 0 # (Cyl. 365*- 832*) -------------------------------------------------------------- #df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd1a 31775 12710 16523 43% / /dev/wd1s3f 111943 94282 8706 92% /usr /dev/wd1s3e 29727 3939 23410 14% /var /dev/wd0s1 261776 188284 73492 72% /c /dev/wd1s1 16550 0 16550 0% /d /dev/wd0s5 140932 93904 47028 67% /e /dev/wd0s6 129730 86948 42782 67% /f procfs 4 4 0 100% /proc ------------------------------------------------------------ #swapinfo Device 1K-blocks Used Avail Capacity Type /dev/wd1s3b 27232 3644 23524 13% Interleaved ################################################# That is all I can think to list. Any suggestions, recommendations, advice would be highly appreciated. Your Humble Servant.