doc075.htm

来自「Reh Hat user manual. really goooood」· HTM 代码 · 共 98 行

HTM
98
字号
<html><body><a href="doc076.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc074.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr><h2><a name="s10.6">10.6 Rescue Modes</a></h2><title>Rescue Modes</title><p>When things go wrong, there are several ways to work on fixing them.However, they require that you understand the system well.  This manualcan't teach you what to do, but we will present the ways that you canuse our products to get into rescue modes where you can use your ownknowlege to rescue the system.<p><h3><a name="s10.6.1">10.6.1 Through LILO</a></h3><title>Through LILO</title><p>If your system boots, but does not allow you to log in when it hascompleted booting, you can use the <tt>single</tt> or <tt>emergency</tt>boot option.  At the <tt>LILO boot:</tt> prompt, type <tt>linux single</tt>in order to boot in single-user mode.  In single-user mode, yourlocal filesystems will be mounted, but your network will not beactivated.  In emergency mode, almost nothing will be set up.  Onlythe root filesystem will be mounted, and it will be mounted read-only.<p><h3><a name="s10.6.2">10.6.2 Emergency Boot Floppies</a></h3><title>Emergency Boot Floppies</title><p>The installation floppy set can also be used as a rescue disk set.When you boot theboot floppy, type <tt>rescue</tt> at the boot prompt (on non-Intelplatforms, add <tt>rescue</tt> as an option to the kernel you arebooting, for example, <tt>linux rescue</tt>), and the installprocess will ask a few questions, request that you insert thesecond disk, and set up shells on VC 1 and VC 2.The shell that is running is ash, a minimal bourne shell withno history or command-line editing.<p>The <tt>PATH</tt> environment variable is set so that once you havemounted your root partition on <tt>/mnt</tt>, binaries from your rootpartition will be run if they do not exist on the floppy.  Also,the libraries in /mnt/lib and /mnt/usr/lib will be used if needed.You may wish to change your <tt>PATH</tt> to not include <tt>/bin</tt>and <tt>/usr/bin</tt>, leaving <tt>/mnt/bin</tt>, <tt>/mnt/usr/bin</tt>,etc., while you are working on repairing your system.  If you do that,you will need to use <tt>/bin/umount</tt> to unmount <tt>/mnt</tt>.<p>Limited versions of important utilities are available before youmount <tt>/mnt</tt>:<dl><dt><b><tt>mount</tt></b><dd>The <tt>mount</tt> command does not require that the devicenode being mounted already exist, and doesn't require the full nameof the device.  It assumes ext2 filesystems unless told otherwise.<pre>mount /dev/sda1 /mnt -t ext2</pre>is functionally equivalent to<pre>mount sda1 /mnt</pre><dt><b><tt>ash</tt></b><dd>The full version<dt><b><tt>cat</tt></b><dd>Does not accept any options<dt><b><tt>chmod</tt></b><dd>The <tt>chmod</tt> command does not accept symbolicmode names, only octal ones.<dt><b><tt>cpio</tt></b><dd>The full version<dt><b><tt>e2fsck</tt></b><dd>The full version<dt><b><tt>fdisk</tt></b><dd>The full version<dt><b><tt>gzip</tt></b><dd>The full version<dt><b><tt>gunzip</tt></b><dd>The full version<dt><b><tt>insmod</tt></b><dd>The full version<dt><b><tt>ls</tt></b><dd>The full version<dt><b><tt>lsmod</tt></b><dd>Does not accept any options<dt><b><tt>mkdir</tt></b><dd>No GNU long options<dt><b><tt>mke2fs</tt></b><dd>The full version<dt><b><tt>mknod</tt></b><dd>The <tt>mknod</tt> command does not accept symbolicmode names, only octal ones.<dt><b><tt>open</tt></b><dd>The full version<dt><b><tt>rm</tt></b><dd>No GNU long options<dt><b><tt>rmmod</tt></b><dd>The full version<dt><b><tt>sh</tt></b><dd>Symlink to <tt>ash</tt></dl><p><hr><a href="doc076.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc074.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?