From owner-freebsd-current Tue Jan 21 13:44:43 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E197537B401 for ; Tue, 21 Jan 2003 13:44:41 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id E87CD43ED8 for ; Tue, 21 Jan 2003 13:44:40 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h0LLiA6Z018480; Tue, 21 Jan 2003 22:44:10 +0100 (CET) (envelope-from phk@freebsd.org) To: Joerg Wunsch Cc: freebsd-current@freebsd.org Subject: Re: I want a sysctl kern.allow_shooting_into_my_foot! From: phk@freebsd.org In-Reply-To: Your message of "Tue, 21 Jan 2003 22:34:03 +0100." <20030121223403.D37868@uriah.heep.sax.de> Date: Tue, 21 Jan 2003 22:44:10 +0100 Message-ID: <18479.1043185450@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030121223403.D37868@uriah.heep.sax.de>, Joerg Wunsch writes: >Included an old disk into a running system. Want to install a new >label onto it: > >uncle# disklabel -Brw da0 auto >disklabel: ioctl DIOCSDINFO: open partition would move or shrink > >Needless to say, there is nothing open at all on it. As i said, an >old disk that incidentally has a BSD label on it. It could have had a >Sun label, a stale fdisk table, or whatever on it. > >Needless to say, it doesn't allow me to dd /dev/zero over it, as i >could do in any FreeBSD version until now. Hang on. If no disk partitions of any kind are open, there is nothing which prevents you from doing a "dd if=/dev/zero of=/dev/da0 bs=64k". Now, if you tell me you tried dd if=/dev/zero of=/dev/da0c bs=64k it would stop you (notice ^) If you still cannot erase the disk with dd(1), please send me the output of sysctl -b kern.geom.confxml -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message