*BSD News Article 2551


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!uunet!usc!news
From: merlin@neuro.usc.edu (merlin)
Newsgroups: comp.unix.bsd
Subject: bad144 corrupts bad track table
Date: 26 Jul 1992 21:58:58 -0700
Organization: University of Southern California, Los Angeles, CA
Lines: 47
Sender: merlin@neuro.usc.edu (merlin)
Message-ID: <l770kiINNa3@neuro.usc.edu>
References: <1992Jul27.043356.10534@kirk.bu.oz.au>
NNTP-Posting-Host: neuro.usc.edu

Well, I've tried almost everything I can think of to get bad144 to write
a bad sector table without corrupting the bad track table -- but it doesn't
seem to work for me.  Perhaps someone could post the sequence of commands
which they used to correctly bad144 a disk partition.

I tried the following sequence:

      o  set partition type to 165
      o  boot dist.fs floppy
      o  # install
      o  shutdown
      o  boot fixit.fs floppy
      o  mount -u /dev/fd0a /
      o  disklabel -r -e /dev/wd0a
         set 'flags: badsect'
      o  bad144 wd0 0
      o  shutdown

      o  boot hard disk
         >  error message:  bad sector table corrupt
         >  jolitz banner -- uc regents -- device table
         >  probably around the fsck time -- system reboots
         >  the whole reboot sequence continually repeats

      o  boot fixit floppy
      o  disklabel -r -e /dev/wd0a
         >  error message:  wd0: cannot find label (bad sector table corrupt)
      o  bad144 wd0 0
         >  error:  can't write bad sector file [0-5]: read only filesystem

      o  boot dist.fs floppy
      o  # install -- no errors
      o  boot hard disk
         >  error message:  bad sector table corrupt
         >  jolitz banner -- uc regents -- device table
         >  probably around the fsck time -- system reboots
         >  the whole reboot sequence continually repeats

      o  boot fixit.fs to go back to dos
      o  use diskmanager to reformat first track of 386bsd partition

      o  boot dist.fs -- and reinstall 386bsd normally

If anyone has any suggestions about how to do the bad sector table
initialize correctly please let me know.

Thanks, AJ