Subject: Playing with dkwedge
To: None <tech-kern@NetBSD.org>
From: Rui Paulo <rpaulo@NetBSD.org>
List: tech-kern
Date: 08/21/2005 18:09:30
--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,
I'm now running a system with wedges support enabled and it seems to work
fine except that I can't find a way to mount the swap.

proton> dmesg | egrep "(^dk|^wd0)"                                         =
 [~]
wd0 at atabus0 drive 0: <ST3120022A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
dk0 at wd0: wd0a
dk0: 263088 blocks at 63, type: ffs
dk1 at wd0: wd0b
dk1: 1049328 blocks at 263151, type: swap
dk2 at wd0: wd0e
dk2: 40960080 blocks at 1312479, type: ffs
dk3 at wd0: wd0f
dk3: 132048 blocks at 42272559, type: ffs
dk4 at wd0: wd0g
dk4: 192037041 blocks at 42404607, type: ffs
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)

proton> cat /etc/fstab | grep swap                                         =
 [~]
/dev/dk1 none swap sw 0 0
proton> ls -l /dev/dk*                                                     =
 [~]
brw-r-----  1 root  wheel  168, 0 Aug 21 14:15 /dev/dk0
brw-r-----  1 root  wheel  168, 1 Aug 21 14:15 /dev/dk1
brw-r-----  1 root  wheel  168, 2 Aug 21 14:15 /dev/dk2
brw-r-----  1 root  wheel  168, 3 Aug 21 14:15 /dev/dk3
brw-r-----  1 root  wheel  168, 4 Aug 21 14:15 /dev/dk4
brw-r-----  1 root  wheel  168, 5 Aug 21 14:15 /dev/dk5
brw-r-----  1 root  wheel  168, 6 Aug 21 14:15 /dev/dk6
brw-r-----  1 root  wheel  168, 7 Aug 21 14:15 /dev/dk7

What should be the major number for /dev/rdk* ?

When I try to enable the swap, I get:
proton# swapon -a                                                          =
 [~]
swapon: /dev/dk1: Device not configured

What am I missing ?=20

		-- Rui Paulo

--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDCLVKZPqyxs9FH4QRAgqqAJ9bPycDwdGldOrjcAtc1WPCnn2L9QCffZ8y
Jg8ficzOEpdMsSiZY3Vcico=
=kG75
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--