1 .\" $NetBSD: rescue.8,v 1.5 2009/01/20 04:10:38 lukem Exp $
3 .\" Copyright (c) 2003 Tim Kientzle <kientzle@acm.org>
4 .\" Copyright (c) 2003 Simon L. Nielsen <simon@FreeBSD.org>
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" FreeBSD: src/share/man/man8/rescue.8,v 1.3 2005/11/10 15:42:51 kientzle Exp
35 .Nd rescue utilities in
40 directory contains a collection of common utilities intended for use
41 in recovering a badly damaged system.
42 With the transition to a dynamically-linked root beginning with
44 there is a real possibility that the standard tools in
48 may become non-functional due to a failed upgrade or a disk error.
51 are statically linked and should therefore be more resistant to
53 However, being statically linked, the tools in
55 are also less functional than the standard utilities.
56 In particular, they do not have full use of the locale,
58 and nsswitch libraries.
60 If your system fails to boot, and it shows an error message similar to:
64 try booting the system with the boot flag
73 If your system fails to boot, and it shows a prompt similar to:
75 .Dl "Enter full pathname of shell or RETURN for /bin/sh: "
77 the first thing to try running is the standard shell,
79 If that fails, try running
84 To repair the system, the root partition must first be remounted
86 This can be done with the following
90 .Dl "/rescue/mount -uw /"
92 The next step is to double-check the contents of
101 and copying files from there.
102 Once it is possible to successfully run
103 .Pa /bin/sh , /bin/ls ,
104 and other standard utilities, try rebooting back into the standard
109 tools are compiled using
111 which makes them considerably more compact than the standard
114 .Bl -tag -width ".Pa /rescue" -compact
125 utilities first appeared in
131 system was written by
132 .An Luke Mewburn Aq lukem@NetBSD.org .
133 This manual page was written by
134 .An Simon L. Nielsen Aq simon@FreeBSD.org ,
136 .An Tim Kientzle Aq kientzle@FreeBSD.org .
140 tools work even in a fairly crippled system.
141 The most egregious exception is the
145 which currently requires that
147 be mounted so that it can access the
150 Hopefully, a failsafe
152 entry will eventually be added into the
156 can be used even in a system where
158 cannot immediately be mounted.
163 editor can be used from
165 if you need to edit files, but cannot mount