From owner-freebsd-questions Thu Jan 9 14:32: 1 2003 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 AA73537B401 for ; Thu, 9 Jan 2003 14:31:59 -0800 (PST) Received: from ns5.eds.com (ns5.eds.com [203.17.185.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EB3C43EB2 for ; Thu, 9 Jan 2003 14:31:58 -0800 (PST) (envelope-from siegfried.pietralla@eds.com) Received: from nnsy.eds.com (nnsy-2.eds.com [192.85.216.198]) by ns5.eds.com (8.11.6/8.11.1) with ESMTP id h09MVhg18793 for ; Fri, 10 Jan 2003 09:31:43 +1100 (EST) Received: from nnsy.eds.com (localhost [127.0.0.1]) by nnsy.eds.com (8.11.6/8.11.6) with ESMTP id h09MVfY25110 for ; Fri, 10 Jan 2003 09:31:41 +1100 (EST) Received: from ausym000.exau01.exch.eds.com ([134.251.177.117]) by nnsy.eds.com (8.11.6/8.11.6) with ESMTP id h09MVec25103 for ; Fri, 10 Jan 2003 09:31:40 +1100 (EST) Received: by AUSYM000 with Internet Mail Service (5.5.2653.19) id ; Fri, 10 Jan 2003 09:30:26 +1100 Message-ID: <16649A8D5C73D51183B80008C728EEB7CC0BBB@AUSYM103> From: "Pietralla, Siegfried P" To: "'freebsd-questions@freebsd.org'" Subject: dd to /dev/ar0s1 fails with fixlabel: invalid magic Date: Fri, 10 Jan 2003 09:30:37 +1100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi all, i'm trying to copy a dos partition from one disk to another like so: dd if=/dev/ad3s1 of=/dev/ar0s1 bs=128k and it's failing with: dscheck(#ar/0x20002): fixlabel: invalid magic fixlabel: invalid magic dd: /dev/ar0s1: Read-only file system i'm running freebsd v4.6.2 . i'm booting from ar0s3 - i've never used ar0s1 ( it's a new disk ) and i installed straight from the cd onto this disk. i guess the install procedure may have disklabel'd it since i set the first three slices to freebsd even though i only created partitions in ar0s3. i've checked groups.google.com and there are two other reports of the same problem: one person trying to zero out a slice and one trying to recover a dos slice. both have no reported solution! also i think someone tried to newfs_msdos and failed the same way but it's in russian so i can't quite work it out :) a work around appears to be using ar0 instead, e.g.: dd if=/dev/zero of=/dev/ar0 count=10 oseek=63 which does succeed in zeroing the first ten blocks of ar0s1. however when i then try to restore my dos slice i still get: dd if=/dev/ad3s1 of=/dev/ar0s1 dd: /dev/ar0s1: Read-only file system so i need to go via ar0 again: dd if=/dev/ad3s1 of=/dev/ar0 oseek=63 which finally works :) also, i can dd a freebsd slice without any problems, e.g. dd if=/dev/ar0s3 of=/dev/ar0s2 my question then is, what's the 'proper' way to retrieve a slice from freebsd's grasp? ( so that i can then get dd to work as i want it to ). thanx, siegfried. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message