Retire badblocks(8) and readall(1)

This commit is contained in:
David van Moolenbroek
2012-10-17 23:00:44 +02:00
parent 21e6836bb7
commit 638cb5b3c2
10 changed files with 6 additions and 925 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
MAN= add_route.8 backup.8 badblocks.8 boot.8 btrace.8 \
MAN= add_route.8 backup.8 boot.8 btrace.8 \
cdprobe.8 checkhier.8 chown.8 cleantmp.8 config.8 cron.8 \
dhcpd.8 diskctl.8 elvprsv.8 fbdctl.8 fdisk.8 fingerd.8 \
getty.8 halt.8 hgfs.8 httpd.8 ifconfig.8 inet.8 init.8 \
-38
View File
@@ -1,38 +0,0 @@
.TH BADBLOCKS 8
.SH NAME
badblocks \- put a list of bad blocks in a file
.SH SYNOPSIS
\fBbadblocks \fIblock_special\fR [\fIblock\fR] ...\fR
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH EXAMPLES
.TP 20
.B badblocks /dev/hd1
# Handle bad blocks on \fI/dev/hd1\fP
.TP 20
.B badblocks /dev/hd3 310 570 1680
# Three bad blocks on \fI/dev/hd3\fP
.SH DESCRIPTION
.PP
If a device contains bad sectors, it is important to not have them
allocated to important files. This program makes it possible to collect
up to 7 bad blocks into a dummy file, so they will not be allocated for a
\&'real\&' file.
When the program starts up, it asks for a list of bad blocks, unless
they are provided as arguments.
Then it creates a file whose name is of the
form \fI.Bad_xxxxx\fR, where \fIxxxxx\fR is a pid.
.SH "SEE ALSO"
.BR readall (1).
.\"
.\" $PchId: badblocks.8,v 1.2 1998/07/27 19:47:04 philip Exp $
+1 -5
View File
@@ -310,15 +310,11 @@ Next make a file system for on-disk /home. Leave it empty for now.
Next make a file system for on-disk /usr and copy the floppy /usr on to it.
.PP
.XB "mkfs\0/dev/c0d0p1s2"
.XB "readall\0\-b\0/dev/c0d0p1s2 | sh"
.XB "mount\0/dev/c0d0p1s2\0/mnt"
.XB "cpdir\0\-v\0/usr\0/mnt"
.PP
This will create a file system on /dev/c0d0p1s2, mount it on /mnt, and copy the
contents of the \s-2USR\s+2 floppy onto it. The call to
.B readall
marks bad blocks on the file system as unusable, you can omit this on a
drive known to be spotless (\s-2IDE\s+2 or \s-2SCSI\s+2.)
contents of the \s-2USR\s+2 floppy onto it.
.PP
You can now use the new /usr in place of the \s-2USR\s+2 floppy:
.PP