Date: Mon, 11 Jul 2005 15:27:16 +0200 From: Mario Hoerich <lists@MHoerich.de> To: Lee Harr <missive@hotmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: dd to unused partition (Hey! someone stole my foot-shooting gun!) Message-ID: <20050711132715.GA94678@Pandora.MHoerich.de> In-Reply-To: <BAY7-F27A3BCEF520CD3008E2185B1DD0@phx.gbl> References: <BAY7-F27A3BCEF520CD3008E2185B1DD0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
# 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 <URL:http://makeashorterlink.com/?S37C2186B>[1] a workaround might be using dd if=/dev/foo of=/dev/ad0 oseek=63 HTH, Mario ___________ [1]: This is really <URL:http://groups.google.de/group/mailing.freebsd.questions/browse_frm/thread/46bc3662805a349c/146b0cdc6e294288?q=dscheck+fixlabel&rnum=3&hl=de#146b0cdc6e294288>.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050711132715.GA94678>