From owner-freebsd-hackers Wed Nov 20 04:42:54 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA29790 for hackers-outgoing; Wed, 20 Nov 1996 04:42:54 -0800 (PST) Received: from free-me.marben.be (gatekeeper.marben.be [194.78.27.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA29774 for ; Wed, 20 Nov 1996 04:42:35 -0800 (PST) Received: (from smap@localhost) by free-me.marben.be (8.7.5/8.7.3) id NAA11418 for <@gatekeeper.marben.be:freebsd-hackers@freebsd.org>; Wed, 20 Nov 1996 13:42:22 +0100 (MET) X-Authentication-Warning: free-me.marben.be: smap set sender to using -f Received: from tarifa.marben.be(172.20.0.254) by free-me.marben.be via smap (V1.3) id sma011416; Wed Nov 20 13:42:10 1996 Received: from tarifa.marben.be by tarifa via SMTP (940816.SGI.8.6.9/940406.SGI.AUTO) for id NAA00555; Wed, 20 Nov 1996 13:35:53 +0100 Message-ID: <3292FB29.63DE@marben.be> Date: Wed, 20 Nov 1996 13:35:53 +0100 From: Jean-Pierre Morant Organization: Marben SA-NV X-Mailer: Mozilla 3.0Gold (X11; I; IRIX 5.3 IP22) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Recuperating a DOS partition Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello ! being a bit short on swap space I would like to reuse a DOS partition on my wd1 (second ESDI) disk. I've used fdisk to assign that partition to FreeBSD, then edited the fstab so that /dev/wd1s1f (the next available partition name) is seen as a swap partition. Apaprently there is a step inbetween that I'm missing : how to tell FreeBSD that the second (nr 1) partition on disk wd1 should be used as /dev/wd1s1f ? Do anybody know what I'm forgetting ? Thanks ADDITIONNAL INFO ===== Now, if I type swapon -a I get : swapon: /dev/wd1s1f: Device not configured fdisk /dev/wd1 tells me that : ******* Working on device /dev/wd1 ******* parameters extracted from in-core disklabel are: cylinders=244160 heads=1 sectors/track=1 (1 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=244160 heads=1 sectors/track=1 (1 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 244160 (119 Meg), flag 80 beg: cyl 0/ sector 1/ head 0; end: cyl 1023/ sector 1/ head 0 The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 244160 (119 Meg), flag 0 beg: cyl 0/ sector 0/ head 0; end: cyl 447/ sector 1/ head 0 The data for partition 2 is: The data for partition 3 is: where partition 0 is another file system mounted and used as : /dev/wd1s1e on /tmp (local) -- Jean-Pierre Morant c/o MARBEN S.A./N.V. La vie serait tellement Boulevard du Souverain,400, Vorstlaan plus facile 1160 Bruxelles Si seulement Belgium nous avions les sources.... + 32 2 663 1130 (phone) + 32 2 663 1199 (fax) http://www.marben.be jpm@marben.be