From owner-freebsd-questions Fri Mar 31 12:41:56 2000 Delivered-To: freebsd-questions@freebsd.org Received: from maild.telia.com (maild.telia.com [194.22.190.3]) by hub.freebsd.org (Postfix) with ESMTP id A0EDF37B842 for ; Fri, 31 Mar 2000 12:41:35 -0800 (PST) (envelope-from james.wilde@telia.com) Received: from ents02 (t5o90p103.telia.com [213.64.7.103]) by maild.telia.com (8.9.3/8.9.3) with SMTP id WAA26360 for ; Fri, 31 Mar 2000 22:41:32 +0200 (CEST) From: "James A Wilde" To: "FreeBSD-questions" Subject: Bad block problem Date: Sat, 1 Apr 2000 10:41:44 +0200 Message-ID: <000301bf9bb6$1c029e30$8208a8c0@iqunlimited.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have just discovered that my FBSD machine at home (3.1) has stopped working. When I reboot it takes me to single user mode and complains that there are problems on the hard disk. Running fsck on /dev/wd0s1a (/) results in the following message: wd0s1a: hard error reading fsbn 1496 of 1408-1519 (wd0s1 bn 1496; cn 0 tn 23 sn 47 status 59 error 40) CANNOT READ: BLK 1408 Okay, I get the message, but, is there any way I can mark the block as bad so that fsck leaves it alone and get fsck to recheck the / partition as good? I assume I must then find which file is corrupted as a result of not having block 1496 and replace the file. I hope it doesn't come to a reformat of the disk and reinstall. If so, is there any way I can save some of the stuff on there. I have ssh, ssh2, bind, samba, etc and I'd rather not have to d/l it all again. I have no backup unit on this machine. I do have a couple of Windows NT machines on the network. Is it, for example, possible to reinstall in such a way that the tar files on /usr are left intact? Or is there another way I can save these tar files on my network? I have another FBSD machine on a nearby LAN but I don't know if I can get to it in single user mode. I can clean and mount all partitions except root. Grateful for suggestions. mvh/regards James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message