Date: Sat, 4 Nov 1995 02:30:32 -0800 (PST) From: Donald Burr <d_burr@ix.netcom.com> To: freebsd-questions@freebsd.org Subject: How to install a new disk, and deal with bad sectors? Message-ID: <Pine.BSF.3.91.951104022154.487A-100000@ncc-1701-d.starfleet.gov>
next in thread | raw e-mail | index | archive | help
Greetings. I've added an new IDE drive to an already-setup FreeBSD system. My computer, up until now, has used only SCSI devices. Anyway, I want to use this IDE drive for additional swap-space and to store archived files (i.e. files I don't need everyday). However, I don't know how to prepare new disks for use (i.e. partition them, carve them into "slices", and format the "slices" as either filesystem or swap). Plus, this IDE disk (since it's an old one I had lying around) may have a few (probably not that many) bad sectors on it. Obviously, I don't want the system to suddenly run into a bad sector during operation, and halt whatever it's doing and panic. So I'd like to (if possible) "lock out" the bad sectors. Anyway, how do I do the tasks I mentioned above? This drive is a older 150? MB Seagate drive. This message printed out by the kernel seems to indicate the drive's model number (ST3144AT?). ----- wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): <st3144AT> wd0: 124MB (255255 sectors), 1001 cyls, 15 heads, 17 S/T, 512 B/S ----- I pawed around my system and eventually ran into the "bad144" command, since this looked like what I was trying to do, I ran it using the following command, and I got this output: ----- % bad144 -sv /dev/rwd0s1 ...output deleted... bad144: /dev/rwd0s1: bad flag in bad-sector table bad144: /dev/rwd0s1: bad magic number bad144: cyl/trk/sect out of range in existing entry: sn=7079724, cn=27756, tn=108, sn=108 bad144: cyl/trk/sect out of range in existing entry: sn=7079724, cn=27756, tn=108, sn=108 bad144: bad sector file contains duplicates (sn 7079724) bad144: cyl/trk/sect out of range in existing entry: sn=7079724, cn=27756, tn=108, sn=108 bad144: bad sector file contains duplicates (sn 7079724) bad144: cyl/trk/sect out of range in existing entry: sn=7079724, cn=27756, tn=108, sn=108 [ lots of lines the same as above ] ----- This seems to have failed (?). Maybe bad144 isn't the command I need...? What other steps should I take? Do I have to (gasp!) low-level format??! (my bios doesn't have a built-in lowlevel formatter, so I would need a third-party, probably DOS-based utility, but I don't know where to obtain such a beast). Anyway, all help greatly appreciated. Thanks! Donald Burr [d_burr@ix.netcom.com], PO Box 91212, Santa Barbara CA 93190-1212 TEL (805)564-1871 // FAX 564-2315 // WWW http://www.physics.ucsb.edu/~dburr PGP Public Key available by request (send e-mail) or Public Key Servers. ** Uphold your right to privacy - Use PGP. **
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951104022154.487A-100000>