From owner-freebsd-current Tue May 9 01:35:30 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA06491 for current-outgoing; Tue, 9 May 1995 01:35:30 -0700 Received: from inet-user-gw-1.us.oracle.com (inet-user-gw-1.us.oracle.com [192.86.155.82]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id BAA06485 ; Tue, 9 May 1995 01:35:27 -0700 Received: from iesun1.ie.oracle.com by inet-user-gw-1.us.oracle.com with SMTP (8.6.12/37.7) id BAA08902; Tue, 9 May 1995 01:35:22 -0700 Received: by iesun1.ie.oracle.com (4.1/37.3.TJL.1.84) id AA22129; Tue, 9 May 95 09:34:38 BST Message-Id: <9505090834.AA22129@iesun1.ie.oracle.com> From: Henry Chung Subject: re: Getting "device not configured" from swapon To: freebsd-current@FreeBSD.org Date: Tue, 9 May 95 9:34:37 BST Cc: hchung@ie.oracle.com (Henry Chung), owner-freebsd-current@freefall.cdrom.com X-Mailer: ELM [version 2.3 PL11] Sender: current-owner@FreeBSD.org Precedence: bulk Wes, > I just re-sliced my second drive to include another 10 Megs of swap. > Now when I boot I get the following message: > > swapon: /dev/wd1b: device not configured > > Here is the important disklabel info from /dev/wd1: > > # size offset fstype [fsize bsize bps/cpg] > a: 173400 61455 4.2BSD 1024 8192 16 # (Cyl. 241 - 920) > b: 20400 234855 swap # (Cyl. 921 - 1000) > c: 193800 61455 unused 0 0 # (Cyl. 241 - 1000) > d: 255255 0 unused 0 0 # (Cyl. 0 - 1000) > e: 61200 255 unused 0 0 # (Cyl. 1 - 240) > > and here is the /etc/fstab file: > > /dev/wd0a / ufs rw 1 1 > /dev/wd1a /var ufs rw 1 1 > /dev/wd0f /msdos msdos rw 1 1 > /dev/wd0b none swap sw 0 0 > /dev/wd1b none swap sw 0 0 > proc /proc procfs rw 0 0 > > The /dev/wd0b swap slice is coming up fine. Anybody know what might > be going on? I did accidentally newfs /dev/wd1b along with /dev/wd1a > but I figured that the swapper would ignore the formatting since it > likes a raw slice. This is where the error may lie, but I don't know > how to 're-clean' the partition (I tried re-writing the disklabel and > only newfs-ing the /dev/wd1a slice). > > Any help appriciated. I have encounter the same problem. It is because the kernel is not configured to have drive 2 as swap, your kernel probably configured with swap on drive 1 only. Please check your config file for the kernel, then grep for the line config. Edit the file to have swap turn on wd1, rebuild your kernel and reboot the machine. The instruction of how to configure the kernel and rebuild the kernel can be found in the faq. regards, -- Henry