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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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? > > Reboot into single user mode so swap is not being used and then try > dd if=/dev/zero of=/dev/XXX bs=64k > > (where XXX is your swapdev) > > The disk should remap the sector, if it refuses to write to the sector because > it's out of remappable sectors then you could try splitting your swap into 2 > partitions around the dead sector and then using them both (should be no > appreciable speed decrease) > 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, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE6A1fqRfpzJluFF4RAndSAJ4ncjeTAsVRSIZwEjOj/yWdWRKD1gCff7eT l2dixkPtr23yY7LyyLs1Zc8= =9d4M -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060820072103.GC13513>
