Date: Sun, 20 Aug 2006 11:21:03 +0400 From: Ruslan Ermilov <ru@freebsd.org> To: Nik Clayton <nik@ngo.org.uk> Cc: freebsd-current@freebsd.org Subject: Re: Avoiding bad sectors? Message-ID: <20060820072103.GC13513@rambler-co.ru> In-Reply-To: <200608201227.34510.doconnor@gsoft.com.au> References: <44E77EF7.6070004@ngo.org.uk> <200608201227.34510.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--jy6Sn24JjFx/iggw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 20, 2006 at 12:27:26PM +0930, Daniel O'Connor wrote: > On Sunday 20 August 2006 06:43, Nik Clayton wrote: > > I realise that I need to replace the disk. However, while I'm waiting > > until I can schedule the downtime, is there a short term solution I can > > use to stop FreeBSD (I'm running current from a couple of months ago) > > from trying to use this block? >=20 > Reboot into single user mode so swap is not being used and then try > dd if=3D/dev/zero of=3D/dev/XXX bs=3D64k >=20 > (where XXX is your swapdev) >=20 > The disk should remap the sector, if it refuses to write to the sector be= cause=20 > it's out of remappable sectors then you could try splitting your swap int= o 2=20 > partitions around the dead sector and then using them both (should be no= =20 > appreciable speed decrease) >=20 I can confirm using this technique. You can also confirm with smartctl(8) that it was indeed relocated (I assume your disk is modern enough to support SMART). Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --jy6Sn24JjFx/iggw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE6A1fqRfpzJluFF4RAndSAJ4ncjeTAsVRSIZwEjOj/yWdWRKD1gCff7eT l2dixkPtr23yY7LyyLs1Zc8= =9d4M -----END PGP SIGNATURE----- --jy6Sn24JjFx/iggw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060820072103.GC13513>