From owner-freebsd-questions Wed Nov 25 19:38:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA19381 for freebsd-questions-outgoing; Wed, 25 Nov 1998 19:38:07 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from sturm.canonware.com (canonware.com [204.107.140.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA19376 for ; Wed, 25 Nov 1998 19:38:05 -0800 (PST) (envelope-from jasone@canonware.com) Received: from localhost (jasone@localhost) by sturm.canonware.com (8.8.8/8.8.8) with ESMTP id TAA26967 for ; Wed, 25 Nov 1998 19:35:16 -0800 (PST) (envelope-from jasone@canonware.com) Date: Wed, 25 Nov 1998 19:35:16 -0800 (PST) From: Jason Evans To: freebsd-questions@FreeBSD.ORG Subject: crashdump, dangerously dedicated, hosed system Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So, I found a reliable way to crash FreeBSD-stable (cvsup'ed today), and being the good FreeBSDer wannabe that I am, I figured I should trace this down, since it may be exploitable via a remote DoS attack. As the Handbook instructs, I did a "config -g", rebuilt the kernel, and installed a stripped version of it. I also enabled dumpon by specifying my swap partition in /etc/rc.conf: dumpdev="/dev/sd1s1b" (Should this have been a raw device?) I rebooted and crashed the machine. All appeared fine and the core was apparently successfully dumped. When the machine rebooted though, fsck gave nasty errors about two partitions, /dev/rsd1s1e and /dev/rsd1s1f. I tried to run fsck manually, but fsck said the device was not configured. Finally, I commented the two devices out of the /etc/fstab and rebooted successfully. However, I got the following: kern.dumpdev: Device not configured A little more probing has turned up the fact that the disklabel for /dev/sd1 is... not a disklabel anymore. As mentioned in the header, all disks in the system are dangerously dedicated. My question: what did I do wrong? My home directory is on sd1, so I'm a bit reluctant to do this again until I'm confident it won't trash my system. Thanks, Jason Jason Evans Email: [jasone@canonware.com] Web: [http://www.canonware.com/~jasone] Home phone: [(650) 856-8204] Work phone: [(415) 808-8742] Quote: ["Invention is 1% inspiration and 99% perspiration" - Thomas Edison] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message