Date: Tue, 9 May 95 9:34:37 BST From: Henry Chung <hchung@ie.oracle.com> To: freebsd-current@FreeBSD.org Cc: hchung@ie.oracle.com (Henry Chung), owner-freebsd-current@freefall.cdrom.com Subject: re: Getting "device not configured" from swapon Message-ID: <9505090834.AA22129@iesun1.ie.oracle.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9505090834.AA22129>