From owner-freebsd-questions@FreeBSD.ORG Thu Jan 16 08:57:04 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 7A62350B for ; Thu, 16 Jan 2014 08:57:04 +0000 (UTC) Received: from mail-oa0-x246.google.com (mail-oa0-x246.google.com [IPv6:2607:f8b0:4003:c02::246]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 44ECA1E78 for ; Thu, 16 Jan 2014 08:57:04 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1so4333847oag.1 for ; Thu, 16 Jan 2014 00:57:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:message-id:date:subject:from:to:content-type; bh=dNasa1SySvbg+8+49Al9SlY9eMZpUBIVGjAHbYrqy94=; b=VzdmdBn+dlpevu8sk/rwj9hurnd4ssJE43GXFRl9c01cp0gotsgzF2Xo9zUBFYscMr rVXDagfQ3pNsXPf7QSSiJtT/H5Evp7ZhOb8I7LbzbpoUoW9LTpeGjSvPdq2JH8eNXh6f q9p4s0xWUqlgKc+ZC08bLy1ndit+ycbgTM2PE3ktZLMYmxM2lCGsqy/SmYRN4M5qmNKz /cAFZnlxKCDhe9HwUOr+KUV1MnQOFdSoZ+Jdl0OZMF2VyooS0pE3pxo4wrIs/qr5xVuW K1nm6b5mV5n4mVBewhHaLt894USWEoc6re2bCMbkz/Lhvl2Ci9zRo9O3gSDHE+/IAKXd c5hA== MIME-Version: 1.0 X-Received: by 10.182.111.227 with SMTP id il3mr2753213obb.41.1389862623589; Thu, 16 Jan 2014 00:57:03 -0800 (PST) Message-ID: <089e013cc48cf748ac04f0129b08@google.com> Date: Thu, 16 Jan 2014 08:57:03 +0000 Subject: www.freebsd.org From: Mayleen Ying To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Thu, 16 Jan 2014 08:57:04 -0000 PGRpdiBkaXI9Imx0ciI+PHA+SGksPC9wPjxkaXY+PHA+SSB3YW50ZWQgdG8gc2VuZCB5b3UgYSBx dWljayBub3RlLiBXaXRoIGEgIA0KZmV3IHNpbXBsZSBjaGFuZ2VzIHRvIG1ha2UgeW91ciBzaXRl IG1vcmUgU0VPLWZyaWVuZGx5IEmSbSBzdXJlIHlvdSBjYW4gIA0KY29udmVydCBtb3JlIHZpc2l0 b3JzIGludG8gbGVhZHMgYW5kIGdldCBpdCBwbGFjZWQgaGlnaGVyIGluIHRoZSBvcmdhbmljICAN CnNlYXJjaCByZXN1bHRzLCBmb3Iga2V5d29yZHMgdGhhdCBtYXR0ZXIgdG8geW91IHRoZSBtb3N0 LjwvcD4NCg0KPC9kaXY+PGRpdj48cD5XZSBhcmUgYSBMb2NhbCBiYXNlZCBjb21wYW55IHdpdGgg Z3JlYXQgaW4taG91c2UgdGVjaG5pY2FsICANCnRlYW0gd2hvIHJlYWxseSBrbm93IHRoZWlyIHN0 dWZmIGFib3V0IHNlYXJjaCBlbmdpbmUgIA0Kb3B0aW1pemF0aW9uLqA8L3A+PC9kaXY+PHA+V291 bGQgeW91IGxpa2UgYSBiaXQgbW9yZSBpbmZvcm1hdGlvbiBhYm91dCBob3cgIA0KdG8gZ2l2ZSB5 b3VyIHdlYnNpdGUgYSBib29zdCB3aXRoIGJldHRlciBTRU8/PC9wPg0KDQo8cD5CZXN0IHJlZ2Fy ZHMsPC9wPjxwPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTomIzM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bmUgdGVjaG5vbG9neSB0byBjYWxsIHlvdS4gQXQgbm8gIA0KdGlt ZSBhcmUgeW91IHJlcXVpcmVkIHRvIG1ha2UgYSBwdXJjaGFzZS48L3NwYW4+PC9wPg0KDQo8ZGl2 IHN0eWxlPSJ0ZXh0LWFsaWduOmNlbnRlciI+PHNwYW4gIA0Kc3R5bGU9ImZvbnQtZmFtaWx5OmFy aWFsLGhlbHZldGljYSxzYW5zLXNlcmlmO2ZvbnQtc2l6ZTp4eC1zbWFsbDtjb2xvcjpyZ2IoMTM2 LDEzNiwxMzYpIj5VbnN1YnNjcmliZTwvc3Bhbj48L2Rpdj48L2Rpdj4NCg== From owner-freebsd-questions@FreeBSD.ORG Thu Jan 16 11:56:40 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AA0A7961 for ; Thu, 16 Jan 2014 11:56:40 +0000 (UTC) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 35F8C101F for ; Thu, 16 Jan 2014 11:56:40 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id fb10so1501503wid.16 for ; Thu, 16 Jan 2014 03:56:38 -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:content-type; bh=DOcHGeedFcdqHx//Dfwjyn1gJu34zo7bL7i+osb+JDQ=; b=WMgUXawn+dSskNVYrtQ9/Expimjxzp5daWxI38218wHDFVbmWhd2Bje2sWI/MWiZa9 onrYDmaJyEC2Ap45qvZuQ4nLxj5TnrvEtcThYfqB5OAyJ9uj1E+VmD9ot21lHPqwtt6z ZP+ITsGF6iIP5uG2jyi0OaBElzDJtR3RWJFNBUgZDAcGZ5LAAwfKQboLXdDw6UVPw5Z3 ctf82aBbI0trrFKSb/PPSYptaO3i/KtkBsNedhAlIkjzG816hdR8Kuz37PnB621uytvr kX85UMUUxKxVLNBYWDc657pH3MG9DmW5wTnwdzXrF8IiFCqEMUoE76qDaKDXfJ1NAt5I QZ9g== MIME-Version: 1.0 X-Received: by 10.181.13.11 with SMTP id eu11mr7536072wid.30.1389873398118; Thu, 16 Jan 2014 03:56:38 -0800 (PST) Received: by 10.180.75.210 with HTTP; Thu, 16 Jan 2014 03:56:38 -0800 (PST) Date: Thu, 16 Jan 2014 17:26:38 +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-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Thu, 16 Jan 2014 11:56:40 -0000 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. (I understood that the old disk's /usr partition has bad sectors and the data is not in a consistent state. I have backups of /usr of the old disk so i can manage the data later.) 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? . How to fix this? I tried to install MBR using sysinstal to the new hard disk after all these dump and restore operations . But got message Error Cannot write to the disk ad7 100% full. Is it possible to install FreeBSD Boot Manager over the old GRUB of the new hard disk which is having all the restored partitions of the old disk. Please shed some light on this. On Thu, Jan 9, 2014 at 5:45 PM, Polytropon wrote: > On Thu, 9 Jan 2014 17:03:51 +0530, eras mus wrote: > > dear List > > > > I have attached the snapshots of fsck. > > This list does not allow attachments. You should either copy > the printed text into the message or upload images somewhere > and provide an URL. > > > > > Whether fsck is fixing the errors of /usr. Or just sitting in infinite > > loop? > > Transfering your system to a new disk aside - THAT is the REALLY > STRANGE question here! The fsck program does not simply hang in > infinite loops. This indicates a severe problem probably with > your hardware, and that has not neccessarily to be the disk. > > You should really try step by step, in _small_ steps. Can you > boot the system from a live CD? If yes, do that. Then check > each file system separately: > > # fsck -yfv /dev/ad4s1a > # fsck -yfv /dev/ad4s1d > # fsck -yfv /dev/ad4s1e > # fsck -yfv /dev/ad4s1f > # fsck -yfv /dev/ad4s1g > > and so on. If it helps, try that with ACPI disabled again. There > is no real use in trying to copy a possibly damaged file system > to a new disk. Before you copy, make sure they're all consistent. > > > > By the way, in addition to the mentioned ways to copy an OS and > and data, there's still the "old school" toolset that can be used: > First initialize the disks (for example with gpart, use MBR only > if you need to, otherwise go with GPT). Then format the new > partitions (newfs) and install the boot blocks (or boot partition > for GPT). Additionally make sure to apply labels to the file > systems (so you don't have to mess with device names in the > future). Finally, use ye olden dump and restore. > > Here's an example. Let's assume /dev/ad4 is your designated new > disk, /dev/ad6 your current disk (failing, will be abandoned). > The target disk has been partitioned with GPT, the file systems > have been initialized already. The source disk is _not_ mounted. > > # mount /dev/ad4p2 /mnt > # cd /mnt > # dump -0 -L -a -u -f - /dev/ad6s1a | restore -r -f - > > # mount /dev/ad4p3 /mnt/tmp > # cd /mnt/tmp > # dump -0 -L -a -u -f - /dev/ad6s1d | restore -r -f - > > # mount /dev/ad4p4 /mnt/var > # cd /mnt/var > # dump -0 -L -a -u -f - /dev/ad6s1e | restore -r -f - > > # mount /dev/ad4p5 /mnt/usr > # cd /mnt/usr > # dump -0 -L -a -u -f - /dev/ad6s1f | restore -r -f - > > # mount /dev/ad4p6 /mnt/home > # cd /mnt/home > # dump -0 -L -a -u -f - /dev/ad6s1g | restore -r -f - > > # cd / > # umount /mnt > > In this example, /mnt will be the subtree that later on becomes /. > Of course you have to check which things apply to _your_ setup! > > Note that you can also do that easily from a live CD. Note that > for this task, only the destination media has to be mounted, the > source media usually not. By using this approach, you can make > sure that all file attributes get transferred correctly. > > You can find further inspiration around here: > > http://www.wonkity.com/~wblock/docs/html/disksetup.html > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... >