From owner-freebsd-questions@FreeBSD.ORG Wed Jan 22 07:29:33 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 9B901E57 for ; Wed, 22 Jan 2014 07:29:33 +0000 (UTC) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 398F317C9 for ; Wed, 22 Jan 2014 07:29:33 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id w62so12934wes.27 for ; Tue, 21 Jan 2014 23:29:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=xx4vQv+fiG4vYi/dtYcdviR7mglri+9nbVHDfPYLhHY=; b=q3St8o6zw9nkZZ6B3EEYHWm6NHI8Ev0Iv+UO+muWhUTrmABLv3Nm4ZacoRhWvglKjb xTpTtYl9MWqEyTa8CofYOjkTxro6N/M5VsHGFBbwfrbzG0EZoZR+psr6Iu8dLFINMFtf 3RhcyZKELnWQz4lxmv+Jkb39Xa1FTuAZZLGCukN4/I2YnmcHHYhnEkDxfEnbuljo08Ey BruzNwQ/1p/VCGKM2X926Xog7ul/D1+Tub3MCkJK/8P/s8AhgDRV3POGRrxO6B0Qbo+E RbyvR6ANf6sSTDtT4WCh3uyv4CXAlfDU9FdxhE2UUlWeKaKhd5eLCjVD5a3flpA3WpFv tP1w== MIME-Version: 1.0 X-Received: by 10.181.13.11 with SMTP id eu11mr17858835wid.30.1390375771728; Tue, 21 Jan 2014 23:29:31 -0800 (PST) Received: by 10.180.75.210 with HTTP; Tue, 21 Jan 2014 23:29:31 -0800 (PST) Date: Wed, 22 Jan 2014 12:59:31 +0530 Message-ID: Subject: restoresymtable after dump and restore 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:29:33 -0000 Dear list, Thank you for the help. My new hard disk is working fine after the dump and restore operation.And able to boot with new disk. But in my /home folder i have a restoresymtable of size 33968468 and that partition is 101% full. Does this file(restoresymtable) has any significance? Could i remove it by rm -rf ? Will removing of the file cause any harm? 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 >