badsect(8) is gone -- what now?

Robert Clausecker fuz at fuz.su
Fri Jul 27 13:08:34 UTC 2018


Good evening,

I recently tried to use badsect(8) to salvage a slightly broken disk
with some janky sectors which the drive doesn't remap but still likes to
complain about, just to find out that kernel support for badsect(8) is
no longer available in FreeBSD 11.2.  This is an annoying situation as I
have no way to stop these sectors from being used otherwise.

Is there any way the kernel interface for badsect(8) or a utilitiy
fulfilling a similar purpose is going to come back?  I understand that
kernel support was removed due to possible misuse of mknod(S_IFMT)
leading to crashes [1], but there really ought to be some way to mark a
sector as bad if the disk doesn't want to do it for you.

Yours,
Robert Clausecker

[1]: https://www.mail-archive.com/svn-src-all@freebsd.org/msg151790.html

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments


More information about the freebsd-fs mailing list