Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2003 22:44:10 +0100
From:      phk@freebsd.org
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-current@freebsd.org
Subject:   Re: I want a sysctl kern.allow_shooting_into_my_foot! 
Message-ID:  <18479.1043185450@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 21 Jan 2003 22:34:03 %2B0100." <20030121223403.D37868@uriah.heep.sax.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18479.1043185450>