From owner-freebsd-questions Thu Dec 21 17:12: 0 2000 From owner-freebsd-questions@FreeBSD.ORG Thu Dec 21 17:11:57 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail.thpoon.com (cr103675-a.bloor1.on.wave.home.com [24.42.106.79]) by hub.freebsd.org (Postfix) with SMTP id 13FA637B400 for ; Thu, 21 Dec 2000 17:11:57 -0800 (PST) Received: (qmail 522 invoked from network); 22 Dec 2000 01:11:54 -0000 Received: from unknown (HELO tea.thpoon.com) (mail@192.168.1.2) by cr103675-a.bloor1.on.wave.home.com with SMTP; 22 Dec 2000 01:11:54 -0000 Received: from antipode by tea.thpoon.com with local (Exim 3.12 #1 (Debian)) id 149GkT-0000I7-00 for ; Thu, 21 Dec 2000 20:11:53 -0500 To: freebsd-questions@FreeBSD.ORG Subject: Clone an installation (urgent help needed) From: Arcady Genkin X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r Organization: thpoon.com Mail-Copies-To: never Date: 21 Dec 2000 20:11:53 -0500 Message-ID: <87n1dp5kfa.fsf@tea.thpoon.com> Lines: 44 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? 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