Bug 19010

Summary: Bad144 obsoletion by 4.0 is undocumented; fix is undocumented
Product: Documentation Reporter: bharat <bharat>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
19010 none

Description bharat 2000-06-05 08:40:01 UTC
When I installed FreeBSD 3.4-STABLE on my machine there was no 
indication that bad144 (bad sector forwarding) was not a good idea.
Support for bad144 went away in 4.0, so if you are using it in 3.4 
this will get in the way of upgrading.  After you reinstall the
kernel and reboot it will not let you remounte your root partition
and will give you an error message like this:

	wd0: bad sector table not supported
	wd0s1: bad sector table not supported

Fix: 

Q:	How do I tell if my drive has bad144 on it, BEFORE I
	try to upgrade to FreeBSD 4.0 and have it fail on me?

A:	Use the disklabel utility.  'disklabel -r wd0' (replace
	wd0 with your drive device) will give you the contents of
	your disk label.  For example:

		# /dev/rwd0c:
		type: ESDI
		disk: wd0s1
		label: 
		flags: badsect		<--- NOTE!
		bytes/sector: 512
		sectors/track: 63

Q:	How do I remove bad144?

A:	The easiest way to do this is to use disklabel.  You can
	dump the current label out to disk and then reload it, or
	you can just edit it in place with 'disklabel -e -r wd0'.
	All you have to do is remove 'badsect' from the flags line
	and you're all set.  This won't affect any of your data.
	bad144 is probably still taking up some space on your disk	
	but it is no longer in effect.
How-To-Repeat: 
Turn on bad144 at install time of 3.4-STABLE or 3.4-RELEASE, then
attempt to source upgrade the machine to any 4.0 branch.
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2001-09-04 01:25:14 UTC
State Changed
From-To: open->analyzed

This looks like FAQ material.  Is there any reason why this shouldn't 
go into the FAQ?
Comment 2 Michael W Lucas 2001-10-31 18:56:59 UTC
Here's a patch for this PR.

-- 
Michael Lucas
mwlucas@blackhelicopters.org
http://www.blackhelicopters.org/~mwlucas/
Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons
Comment 3 ue 2001-10-31 19:28:19 UTC
On Wed, Oct 31, 2001 at 11:00:02AM -0800, Michael Lucas wrote:
>  Here's a patch for this PR.


[3 new entries snipped]

The content looks good, I'll add it and fix the markup while I'm there.

/s/Udo
-- 
Cocaine is nature's way of telling you you have too much money.
Comment 4 ue freebsd_committer freebsd_triage 2001-10-31 20:02:34 UTC
State Changed
From-To: analyzed->closed

Fixed in revision 1.278 of the FAQ. Thanks for your feedback and 
submissions.