Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 1997 08:29:18 -0600
From:      Dick Olson <rolson@ns.awanet.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   How to create additional swap partition
Message-ID:  <32E0DE3E.2781E494@ns.awanet.com>

next in thread | raw e-mail | index | archive | help
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:
<UNUSED>
************************************************
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:
<UNUSED>
------------------------------------------------
#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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32E0DE3E.2781E494>