Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Mar 2000 18:42:48 +0000 (GMT)
From:      Marcelo <bsdq@stgo.cl>
To:        questions@FreeBSD.ORG
Subject:   Merging Swap Partitions
Message-ID:  <Pine.LNX.3.96.1000318182923.5518A-100000@stgo.cl>
In-Reply-To: <20000318222716.A879@student.csd.uu.se>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi, 
I set up two 250 meg  swap partitions on the same drive.
I realised that this wasn't the smartest thing to do so I would like to
merge them into one.
The thing is that these partitions were configured durring system install
and the fdisk command from the prompt is not the most user friendly.

swapinfo right now gives me the following:
www# swapinfo
Device      1K-blocks     Used    Avail Capacity  Type
/dev/da0s2b    262144        0   262016     0%    Interleaved
/dev/da0s2e    262144        0   262016     0%    Interleaved
/dev/da1s2b    262144        0   262016     0%    Interleaved
Total          786048        0   786048     0%

and fdisk /dev/da0 the following:
******* Working on device /dev/rda0 *******
parameters extracted from in-core disklabel are:
cylinders=1106 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=1106 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 130,(Linux swap or Solaris x86)
    start 16065, size 498015 (243 Meg), flag 0
        beg: cyl 1/ sector 1/ head 0;
        end: cyl 31/ sector 63/ head 254
The data for partition 2 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 1012095, size 16755795 (8181 Meg), flag 80 (active)
        beg: cyl 63/ sector 1/ head 0;
        end: cyl 1023/ sector 63/ head 254
The data for partition 3 is:
sysid 18,(unknown)
    start 63, size 16002 (7 Meg), flag 0
        beg: cyl 0/ sector 1/ head 1;
        end: cyl 0/ sector 63/ head 254
The data for partition 4 is:
sysid 130,(Linux swap or Solaris x86)
    start 514080, size 498015 (243 Meg), flag 0
        beg: cyl 32/ sector 1/ head 0;
        end: cyl 62/ sector 63/ head 254

Thanks
Marcelo




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?Pine.LNX.3.96.1000318182923.5518A-100000>