From owner-freebsd-current@FreeBSD.ORG Fri Oct 7 21:10:57 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35FDC1065744; Fri, 7 Oct 2011 21:10:57 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id E5BEC8FC17; Fri, 7 Oct 2011 21:10:56 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 47D245DAA; Fri, 7 Oct 2011 21:10:55 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id p97LAsmZ004361; Fri, 7 Oct 2011 21:10:54 GMT (envelope-from phk@phk.freebsd.dk) To: Warren Block From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 07 Oct 2011 14:27:05 CST." Content-Type: text/plain; charset=ISO-8859-1 Date: Fri, 07 Oct 2011 21:10:54 +0000 Message-ID: <4360.1318021854@critter.freebsd.dk> Cc: Garrett Cooper , Glen Barber , freebsd-current@FreeBSD.org, Benjamin Kaduk , Arnaud Lacombe Subject: Re: aliasing (or renaming) kern.geom.debugflags X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2011 21:10:57 -0000 In message , Warren Block write s: ># mount /dev/da0p2 /mnt ># dd if=/tmp/FreeBSD-9.0-BETA3-amd64-memstick.img of=/dev/da0 bs=64k >dd: /dev/da0: Operation not permitted ># sysctl kern.geom.debugflags=16 >kern.geom.debugflags: 0 -> 16 ># dd if=/tmp/FreeBSD-9.0-BETA3-amd64-memstick.img of=/dev/da0 bs=64k >10463+1 records in >10463+1 records out >685731840 bytes transferred in 52.915362 secs (12959031 bytes/sec) > >Followed by removing the memory stick without unmounting it to avoid >overwriting part of the image. No obvious problems, but no, it's not >polite. (I'm thinking "automounter" here.) And you are sure the stick now contains what you expect ? If the dirty filesystem had blocks to write, it might have done so... debugflags are called debugflags for a reason: You should never need them, unless you are debugging a problem. -- 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.