From owner-freebsd-questions@FreeBSD.ORG Fri Oct 22 11:34:08 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72974106564A for ; Fri, 22 Oct 2010 11:34:08 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2937C8FC19 for ; Fri, 22 Oct 2010 11:34:07 +0000 (UTC) Received: by gwaa18 with SMTP id a18so89578gwa.13 for ; Fri, 22 Oct 2010 04:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=XU4fpZsD9fQf63e7HKuERM9DSPGfHJvD8hFgMh9FJOQ=; b=s/anCBVD5s+YJiWEPe6kYpsLGZ/x24PqYBcRT3DFmXgNV2Oz+lIpQPuPi/ESCO2mB7 IdBYiudyf+cRMApDpTzmsz3RdOpWaq3NoaJWbRNR4v6Hg4Uzviv2wiEDjDb3n4WiLX4l PTQcbmh6re2A7S12IBek+c4900izjcOTibvRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=PakvLWqxQt2v69MUmI2J/7VvXEbPhkijdAgnwVK14hphGJO85q6uN44W2IpA0R2CF1 2wtzBvnh0XFpD+4Yqv/NB4WOcQXCiSCyixFTQ4xale9weJLBWrtR4ljg7ZkHdq24DdtV bbYcHLJnB89bdPTHHP/T2ljdzL8pbO/D36gqQ= MIME-Version: 1.0 Received: by 10.229.183.8 with SMTP id ce8mr2044613qcb.288.1287747245295; Fri, 22 Oct 2010 04:34:05 -0700 (PDT) Received: by 10.229.215.209 with HTTP; Fri, 22 Oct 2010 04:34:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 22 Oct 2010 12:34:05 +0100 Message-ID: From: krad To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions , Modulok Subject: Re: dd to clone disks - new disk fails to boot. 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: Fri, 22 Oct 2010 11:34:08 -0000 On 20 October 2010 14:55, Warren Block wrote: > On Wed, 20 Oct 2010, Modulok wrote: > > Problem: I copied from an old hard drive to a new one via FreeBSD's >> dd. The new drive won't boot. The old drive worked fine. (The new >> drive is known-to-work.) >> >> Background: I have a system with a 160GB disk in it. It runs windows. >> It works. I have a blank 250GB disk. I want to copy the entire 160GB >> disk onto the 250GB disk, shuffle the SATA cables and boot to it. >> Basically, I'm just replacing the small hard drive with a larger one. >> I would then extend the partition using something like gpartd. >> >> I booted to a live FreeBSD disk and used dd like so: >> >> dd if=/dev/ad4 of=/dev/ad8 bs=1m >> >> About an hour later it finished. No errors. I turned the machine off, >> unplugged the small disk and connected the big disk into the primary >> SATA header. The BIOS chokes on the new disk. It refuses to boot from >> it and instead reports 'disk error'. >> > > If the BIOS is complaining, see if the new drive has a SATA 150 jumper, or > some other compatibility mode. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > if you still get problems, try reinstalling the boot blocks for mbr fdisk -B adx bsdlabel -B adxs1a for gpt gpart bootcode -p /boot/gptboot -i 1 adx if that doesnt work try stepping around the problem. dd should work but it may be quicker to manually partition/slice up the new drive, newfs it, and rsync the files accross. I have used this method many times in the past, and if its a big drive with low utilization it will actually be quicker than dd. rsync might miss a few of the chflag attributes if its an os install drive, but they will be restored next time you make world.