From owner-freebsd-questions@FreeBSD.ORG Mon Jul 11 13:27:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CFCC16A41C for ; Mon, 11 Jul 2005 13:27:40 +0000 (GMT) (envelope-from m@MHoerich.de) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A92143D45 for ; Mon, 11 Jul 2005 13:27:39 +0000 (GMT) (envelope-from m@MHoerich.de) Received: (qmail invoked by alias); 11 Jul 2005 13:27:33 -0000 Received: from p548B756B.dip.t-dialin.net (EHLO localhost) [84.139.117.107] by mail.gmx.net (mp004) with SMTP; 11 Jul 2005 15:27:33 +0200 X-Authenticated: #5114400 Date: Mon, 11 Jul 2005 15:27:16 +0200 From: Mario Hoerich To: Lee Harr Message-ID: <20050711132715.GA94678@Pandora.MHoerich.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org Subject: Re: dd to unused partition (Hey! someone stole my foot-shooting gun!) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 13:27:40 -0000 # Lee Harr: > dd if=iso of=/dev/ad0s1 > > but what I am getting now is ... > > dscheck(#ad/0x200002): fixlabel: invalid magic > fixlabel: invalid magic > dd: /dev/ad0s1: Read-only filesystem This error isn't new, it just, well, doesn't happen very often: kern/subr_diskslice.c: | static char * | fixlabel(sname, sp, lp, writeflag) [...] | /* These errors "can't happen" so don't bother reporting details. */ | if (lp->d_magic != DISKMAGIC || lp->d_magic2 != DISKMAGIC) | return ("fixlabel: invalid magic"); Prior reports seem to indicate this fails if non-ufs slices somehow got themselves a disklabel. According to [1] a workaround might be using dd if=/dev/foo of=/dev/ad0 oseek=63 HTH, Mario ___________ [1]: This is really .