From 25be68f882e63fe7de38cc5faaac77fcb8637f2b Mon Sep 17 00:00:00 2001 From: Udo Erdelhoff Date: Wed, 31 Oct 2001 20:01:14 +0000 Subject: [PATCH] Add several questions and answers on how to handle bad144-infected drives. PR: docs/19010 Submitted by: Michael Lucas --- en_US.ISO8859-1/books/faq/book.sgml | 67 +++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/en_US.ISO8859-1/books/faq/book.sgml b/en_US.ISO8859-1/books/faq/book.sgml index 101f5def11..4d196f4d72 100644 --- a/en_US.ISO8859-1/books/faq/book.sgml +++ b/en_US.ISO8859-1/books/faq/book.sgml @@ -1430,6 +1430,73 @@ File: +DESC (ignored) + + + I've just upgraded from 3.X to 4.X, and my first boot + failed with bad sector table not + supported + + + + FreeBSD 3.X and earlier supported + bad144, which automatically remapped + bad blocks. FreeBSD 4.X and later do not support this, as + modern IDE drives include this functionality. See this question for + more information. + + To fix this after an upgrade, you need to physically + place the drive in a working system and use + &man.disklabel.8; as discussed in the following + questions. + + + + + + How do I tell if a drive has bad144 + information on it before I try to upgrade to FreeBSD 4.0 + and it fails? + + + + Use &man.disklabel.8; for this. disklabel -r + drive device will + give you the contents of your disk label. Look for a + flags field. If you see + flags: badsect, this drive is using + bad144. For example, the following drive has + bad144 enabled.: + + &prompt.root; disklabel -r wd0 +# /dev/rwd0c: +type: ESDI +disk: wd0s1 +label: +flags: badsect +bytes/sector: 512 +sectors/track: 63 + + + + + + How do I remove bad144 from my + pre-4.X system so I can upgrade safely? + + + + Use disklabel -e -rwd0 to edit the + disklabel in place. Just remove the word + badsect from the flags field, save, and + exit. The bad144 file will still take up some space on + your drive, but the disk itself will be usable. + + We still recommend you purchase a new disk if you have + a large number of bad blocks. + + + Strange things happen when I boot the install floppy!