Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 1995 11:54:44 -0700
From:      Scott Blachowicz <scott@statsci.com>
To:        questions@freebsd.org
Subject:   accessing DOS Logical partitions and/or adding swap space
Message-ID:  <m0t6072-000r3xC@main.statsci.com>

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

I need more swap space and I've got DOS Logical partition that I could
use, but I'm not sure if FreeBSD really supports this or not yet. I've
seen mentions that I could use slice 5 and up for the "Logical"/"Extended"
slices (or whatever they're called). So, I did a

        /dev/MAKEDEV wd1s5h

to get the device files made for it. Now, I'm trying to figure out what to
do next.

1) Will this work?
2) If so, how do I find out what to stick in a disklabel for my wd1s5
   slice?  It seems the FreeBSD fdisk doesn't tell me how many sectors are
   in that slice (do I need to go run the DOS fdisk? or do I need to
   reinstall Linux to use its fdisk? or do 'dd if=/dev/rwd1s5 of=/dev/null
   bs=512' and see what it tells me for number of blocks copied?)
3) Armed with appropriate #sectors info, I assume I just go add a disktab
   entry with a 'c' partition, do a disklabel write, then do a disklabel
   edit to get it right (or something along those lines).  Couldn't there
   be some tool that could be run to deal with the details (along the
   lines of /stand/sysinstall's partitioning) or at least query the size
   of the slice and lay down a disklabel with the 'c' partitioned defined?
4) Or should I just use a 'vn' device to add a random file as swap space?
   Is there a performance hit to using a file instead of a swap partition?

Scott Blachowicz    Ph: 206/283-8802x240    StatSci, a div of MathSoft, Inc.
                                            1700 Westlake Ave N #500
scott@statsci.com                           Seattle, WA USA   98109
Scott.Blachowicz@seaslug.org



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