From owner-freebsd-questions Fri Dec 22 12:52:40 2000 From owner-freebsd-questions@FreeBSD.ORG Fri Dec 22 12:52:37 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 6F46E37B400 for ; Fri, 22 Dec 2000 12:52:36 -0800 (PST) Received: (qmail 86675 invoked by uid 100); 22 Dec 2000 20:52:35 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14915.48915.886249.656347@guru.mired.org> Date: Fri, 22 Dec 2000 14:52:35 -0600 (CST) To: Arcady Genkin Cc: questions@freebsd.org Subject: Re: Clone an installation (urgent help needed) In-Reply-To: <80342386@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Arcady Genkin types: > I've had a harddrive failure on a computer running 4.2-S. A test > program from the manufacturer (it's an IBM DeskStar 13G), found bad > blocks. > > It's a root disk for my FreeBSD installation, and it freezes once in a > while, reporting write failures to console. I have a spare disk, wich > is a 6.4G. This is more than enough to back up the data from the 13G > one, but if I understand correctly, I can't use dump for that, since > all the partitions are not going to fit in. > > Would anyone be so kind as to tell me how I can create a working copy > of my current installation? I would like to save all data from /, > /var, /usr and /home. I think I can just partition the disk using > /stand/sysinstall and cp -Rp the files to it. But how would I make it > bootable? And also, would cp -Rp work on kernel files and /boot > directory? Check the faq, in particular the entry titled "How do I move my system over to my huge new disk?" at I'm under a bit of a pressure, since I have to babysit the system > (because it hangs once every hour). Although any kind of hints are > very welcome, I'd really appreciate something other than a RTFM > response. ;^) I'll RTFM later, I promiss. > > The failed drive is ad0; drive ad3 is a clean 6.4 drive, which I want > to use as a replacement for ad0 while it is being exchanged. > > ,----[ df -h ] > | Filesystem Size Used Avail Capacity Mounted on > | /dev/ad0s1a 194M 31M 148M 17% / > | /dev/ad0s1g 2.8G 8.5M 2.6G 0% /home > | /dev/ad0s1e 194M 966K 177M 1% /tmp > | /dev/ad0s1h 8.5G 1.1G 6.7G 14% /usr > | /dev/ad0s1f 388M 6.2M 350M 2% /var > `---- > > ,----[ dmesg ] > | ad0: 13042MB [26500/16/63] at ata0-master UDMA33 > | ad2: 18366MB [37317/16/63] at ata1-master UDMA33 > | ad3: 6149MB [13328/15/63] at ata1-slave UDMA33 > `---- > > Many thanks in advance, > - -- > Arcady Genkin > Don't read everything you believe. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Mike Meyer http://www.mired.org/home/mwm/ Independent WWW/Unix/FreeBSD consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message