From owner-freebsd-stable Mon Mar 12 15: 7:29 2001 Delivered-To: freebsd-stable@freebsd.org Received: from maila.telia.com (maila.telia.com [194.22.194.231]) by hub.freebsd.org (Postfix) with ESMTP id D29F137B71B for ; Mon, 12 Mar 2001 15:07:21 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maila.telia.com (8.9.3/8.9.3) with ESMTP id AAA23825 for ; Tue, 13 Mar 2001 00:07:20 +0100 (CET) Received: from ertr1013.student.uu.se (h35n2fls20o913.telia.com [212.181.163.35]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id AAA11362 for ; Tue, 13 Mar 2001 00:07:19 +0100 (CET) Received: (qmail 76244 invoked by uid 1001); 12 Mar 2001 23:07:29 -0000 Date: Tue, 13 Mar 2001 00:07:29 +0100 From: Erik Trulsson To: stable@FreeBSD.ORG Subject: Re: IDE bad sectors and secondary master instalation Message-ID: <20010313000728.A75900@student.uu.se> Mail-Followup-To: stable@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from nuno.teixeira@pt-quorum.com on Mon, Mar 12, 2001 at 10:52:53PM +0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 12, 2001 at 10:52:53PM +0000, Nuno Teixeira wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello to all, > > I've got two questions that I can't solve and I don't find the right docs > for them: > > 1. IDE disks bad sectors: > Recently I installed an IDE disk with a lot bad > sectors to experiment a real situation and I get a lot of errors with > fsck and errors related to the read/write of the damaged sectors. > > The question is: what's the best way to solve the bad sectors problem on > IDE disks? There is anyway of "mark" the bad serctor so the OS doesn't > write to them? In FreeBSD 3.x and earlier such remapping could be done with the bad144 command. Support for this has been removed in FreBSD 4.x and later. Part of the reason for this is that modern IDE disks do remapping of bad sectors themselves with the result that by the time you start to notice the bad sectors the disk is in quite bad shape. By then you should get a new disk since the old one will probably make you lose data. > > 2. Secondary master to primary master change > > I have a motherboard that have the primary master and slave broken but > it worked with the disk installed on the secundary master interface. > Recently I purchase a new motherboard and installed the disk on the > primary master. My problem is that the FreeBSD stops on single user mode > and it gives the error that it can't mount the rest of the partitions. I > noticed that the slices are like "ad2s1f" and I think that it must be like > "ad0s1f" to work on the primary master. > > There is anyway of changing this to work. Change the entries in /etc/fstab to reflect the new configuration. (And you are quite correct that it should be changed from "ad2s1f" to "ad0s1f") -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message