Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 May 2004 06:52:04 +0000
From:      "Richard Liang" <squixy@hotmail.com>
To:        dnelson@allantgroup.com
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Sharing Linux swap space on FreeBSD 4.9
Message-ID:  <BAY16-F43U3TvC0IJg60001ba1a@hotmail.com>

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



&gt;From: Dan Nelson &lt;dnelson@allantgroup.com&gt;
&gt;To: Richard Liang &lt;squixy@hotmail.com&gt;
&gt;CC: freebsd-questions@freebsd.org
&gt;Subject: Re: Sharing Linux swap space on FreeBSD 4.9
&gt;Date: Wed, 12 May 2004 23:50:30 -0500
&gt;
&gt;In the last episode (May 13), Richard Liang said:
&gt; &gt; Hello everyone,
&gt; &gt;
&gt; &gt; I am trying to enable the linux swap space I have under Red Hat on 
FreeBSD
&gt; &gt; 4.9.  My disk configuration looks like:
&gt; &gt;
&gt; &gt; ad0:
&gt; &gt; s1 - NTFS
&gt; &gt; s2 - Windows extended
&gt; &gt; s3 - ext3
&gt; &gt; s4 - linux swap
&gt; &gt;
&gt;
&gt;You sure swap is on primary fdisk partition 4, and not extended
&gt;partition 1 (aka s5) ?  I think Linux will create an extended partition
&gt;rather than use up all four primaries.

Yeah, I'm quite sure.  The output from an `fdisk ad0` gives:


******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=7297 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=7297 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 7,(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
    start 63, size 40965687 (20002 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 15,(Extended DOS, LBA)
    start 40965750, size 55295730 (26999 Meg), flag 0
        beg: cyl 1023/ head 254/ sector 63;
        end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 131,(Linux filesystem)
    start 96261480, size 19904535 (9719 Meg), flag 0
        beg: cyl 1023/ head 254/ sector 63;
        end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 130,(Linux swap or Solaris x86)
    start 116166015, size 1044225 (509 Meg), flag 0
        beg: cyl 1023/ head 254/ sector 63;
        end: cyl 1023/ head 254/ sector 63


Richard

_________________________________________________________________
Add photos to your e-mail with MSN Premium. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines



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