From owner-freebsd-questions@FreeBSD.ORG Wed Jan 22 07:25:11 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EEC38D58 for ; Wed, 22 Jan 2014 07:25:11 +0000 (UTC) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 88DA7179E for ; Wed, 22 Jan 2014 07:25:11 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id x55so9456wes.33 for ; Tue, 21 Jan 2014 23:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RlGYqOVhBcutPLJZsKQ43mm5NlbTN6XEfXBVE97wTuE=; b=xfkb3YepX3gHx0h+0k0KsxHUUwIO7IV7u+euXoRQtpkLG9ht87ILpRnVzGBh138zTP TB1OExvKplRayg2wY0MkXgpqkn+MUTubPju5WOledwiMkrXm+Z4GnAdykbJ7Sfwe6Cfy qnl5skpYx/W8pSPtvJBKzmIg2Mfzw02UQrdWkK05UFzZMUpOQasBB5ltAOS2Kf9Gfvrz 17g+AiUgIU5I3YAfZz2HoGoAVBB3gBYh64QlPcEu9kbH4cGscWa69jiHKs0Tthyz+r7x PtTjzir2/KND23b1L+D67oMSqmey6y2RWSCLwN/2OAyOGV58BSH+jwWfiHTF3U9fXJTK CIVA== MIME-Version: 1.0 X-Received: by 10.180.35.36 with SMTP id e4mr1543763wij.8.1390375509984; Tue, 21 Jan 2014 23:25:09 -0800 (PST) Received: by 10.180.75.210 with HTTP; Tue, 21 Jan 2014 23:25:09 -0800 (PST) In-Reply-To: References: Date: Wed, 22 Jan 2014 12:55:09 +0530 Message-ID: Subject: Re: Server hang : MBR installation after dump and restore on new hard disk From: eras mus To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2014 07:25:12 -0000 On 1/16/14, Warren Block wrote: > On Thu, 16 Jan 2014, eras mus wrote: > >> Dear List, >> >> Thank you all for the help. I understood that the old hard disk is dying. >> I booted with a FreeBSD Live CD with the new hard disk. >> Now it detected the old hard disk as /dev/ad4 and new one as /dev/ad7. >> >> Then using sysinstall did slicing and partitioning on the new hard >> disk(ad7). Then dump and restore performed on all the partitions of >> the old hard disk to the new hard disk partitions. > > While sysinstall had a reasonably nice user interface for disk > partitioning, it was and is buggy and best avoided on current versions > of FreeBSD. > >> After performing dump and restore to the new hard disk, I edited the >> /etc/fstab of the root partition so that it will update the /etc/fstab >> for the new hard disk partitions(ad7s1a,ad7s1d,ad7s1f ..... instead of >> the ad4 entries in the /etc/fstab) >> >> Now when i try to boot the machine with both the hard disks as attached. >> It is showing as below >> >> F1 FreeBSD >> F5 Drive 1 >> >> When i select F5 it is going to a GRUB prompt of the new hard disk >> ,Because it already had a linux installation before doing the dump and >> restore operation. >> >> As per my understanding FreeBSD Boot Manager is not installed for the >> new >> hard disk. Am I right? > > Yes. Use 'boot0cfg -B ad7' to install it to the new drive, or > 'fdisk -B ad7' for a plain MBR that just boots without showing the menu. > > You may also need to install bootcode to the BSD partitions themselves. > This can be done with 'bsdlabel -B ad7s1'. I'd recommend using gpart > instead, but you don't say what version of FreeBSD you have, and it may > be old enough that gpart is not present. If gpart is present, see > http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_old_standard_mbr >