From owner-freebsd-questions@FreeBSD.ORG Mon Jul 11 22:05:34 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 B41D016A41C for ; Mon, 11 Jul 2005 22:05:34 +0000 (GMT) (envelope-from missive@hotmail.com) Received: from hotmail.com (bay7-f11.bay7.hotmail.com [64.4.11.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D16B43D49 for ; Mon, 11 Jul 2005 22:05:34 +0000 (GMT) (envelope-from missive@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 11 Jul 2005 15:05:34 -0700 Message-ID: Received: from 208.186.59.238 by by7fd.bay7.hotmail.msn.com with HTTP; Mon, 11 Jul 2005 22:05:34 GMT X-Originating-IP: [208.186.59.238] X-Originating-Email: [missive@hotmail.com] X-Sender: missive@hotmail.com From: "Lee Harr" To: freebsd-questions@freebsd.org Date: Tue, 12 Jul 2005 02:35:34 +0430 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 11 Jul 2005 22:05:34.0275 (UTC) FILETIME=[A9280130:01C58664] 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 22:05:34 -0000 >> >dd if=iso of=/dev/ad0s1 >> >dd: /dev/ad0s1: Read-only filesystem >According to [1] >a workaround might be using > > dd if=/dev/foo of=/dev/ad0 oseek=63 > Ah. Ok. That should have been obvious :oP What about those first few bytes, though? I think I am not getting what I need ... dd if=iso of=/dev/ad0s2 oseek=63 dd if=/dev/ad0s2 of=iso2 truncate -r iso iso2 diff iso iso2 (Binary files iso and iso2 differ) What I am doing is using a 4.11 system to copy a 5.4 boot iso to an unused partition, so that I can boot it and install 5.4. I know it seems roundabout, but it is a very old laptop with either floppy or cd (not both) and the pccard ethernet iface which is working fine under 4.11 is not working in the 5.4 installer -- so no network install. Oh, and the cd drive is not bootable. So, I want to boot the cd image from the hard drive, and use the cd drive for the install after it boots. Anyhow, I used the oseek=63 and copied the iso to ad0s2 ... but I can't boot it. boot: 0:ad(0,2,a)/boot/loader Invalid partition Of course, I am not really sure how to specify ad0s2 from the boot: prompt. Thanks for your help. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/