Mandrake Community home TWiki > Main > IndexStuff > MandrakeUserDocs > Administration > Arecov2 TWiki webs:
Main
Main . { Home | Changes | Index/Table of Contents | Search | Go to page: }

<a href="http://www.mandrakeuser.org/docs/admin/arecov2.html">http://www.mandrakeuser.org/docs/admin/arecov2.html

<table width="90%" summary="Navigation Master table" border="0" cellpadding="0" cellspacing="0" align="center"> <table bgcolor="#000000" cellpadding="1" border="0" cellspacing="0" summary="Beautify Table" align="center" width="100%"> <table bgcolor="#ffffff" border="0" cellpadding="5" cellspacing="0" summary="Navigation" width="100%">
<img src="../images/muot.png" border="0" width="74" height="74" alt="MandrakeUser.Org - Your Mandrake-Linux Knowledge Base!" />
DocIndex
<input type="hidden" name="method" value="and" /> <input type="hidden" name="format" value="builtin-long" /> <input type="hidden" name="matchesperpage" value="10" /> <input type="text" size="12" name="words" value="" />

 
 

<img src="../images/item_loc.gif" alt="*" width="16" height="16" /> <a href="../index.html">DocIndex - <a href="index.html">Administration

System Recovery II

* <a href="#fail">Booting 'failsafe'
* <a href="#single">Single User Mode
* <a href="#root">The root Shell
* <a href="#other">Linux Systems On Other Media

Related Resources:

<a href="http://www.ibiblio.org/mdw/LDP/gs/node6.html#SECTION006110000000000000000"> LIGS, 4.11
<a href="http://www.linux-mandrake.com/en/doc/81/en/ref.html/troubleshooting.html"> Mdk-Ref 13
man linuxconf
man mount
man init

The LWN.net Linux Distribution List

Revision / Modified: Jan 28, 2002
Author: Tom Berger

 
<table bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" width="90%" align="center" summary="Article Master Table"> <table bgcolor="#000000" cellpadding="1" border="0" cellspacing="0" summary="Beautify Table" align="center" width="100%"> <table bgcolor="#ffffff" border="0" cellpadding="14" cellspacing="0" summary="Article">

* <a id="fail" name="fail">Booting 'failsafe'

'failsafe' is a standard boot option in all Mandrake Linux systems.

Under normal circumstances, the system switches right into the preferred <a class="int" href="aservice.html#system">runlevel during boot ('3' for console, '5' for X). 'failsafe' on the other hand first boots into runlevel 1 (Single User Mode, see below), then tries to switch to runlevel 3 (console) and then, if 5 is the default runlevel, into runlevel 5.
If the 'Linuxconf' administration suite is installed, it will be started in console mode upon reaching runlevel 1. You will be presented with a runlevel menu or the possibility to use 'Linuxconf' to do system maintenance tasks.

<img src="../images/item_back.gif" alt="*" width="16" height="16" /> section index <img src="../images/item_up.gif" alt="*" width="16" height="16" /> <a href="#top">top

* <a id="single" name="single">Single User Mode

Linux also provides two built-in rescue systems, one of them is the 'single user mode', aka runlevel 1. This 'single user' is 'root'. There will only be a minimum of processes running.

There are several ways to get into this runlevel:

<img src="../images/item_back.gif" alt="*" width="16" height="16" /> section index <img src="../images/item_up.gif" alt="*" width="16" height="16" /> <a href="#top">top

* <a id="root" name="root">The root Shell

The single user mode still relies on a working 'init'. But what if 'init' is corrupted or even missing? If you boot your system with this boot loader option:

linux init=/bin/sh

only the kernel will be loaded into system memory and you will be dropped almost immediately to a shell.

On a Mandrake Linux 8.1 system, you should add another option to turn off devfsd, because otherwise you will run into trouble with hardware related utilities:

linux init=/bin/sh devfs=nomount

Things you do not have initially in this shell:

The first thing you should try is getting write access to your '/' partition:

mount -o remount,rw /dev/device

Run mount to find out the name of device. Another file system you want to mount is the virtual 'proc' file system, which provides you and the system utilities with information about what's going on in your system:

mount /proc /proc -t proc

From here on you should be able to do your repair tasks. Your main objective should be getting init to work again, so that you can do further repairs in single user mode.

Before leaving this shell, flush all buffers with

sync

unmount all mounts with

umount -a

and remount the '/' mount read-only again with

mount -o remount,ro /

Press <ALT> <CTRL> <DEL> simultaneously to leave the shell and reboot the machine.

Notice:

<img src="../images/item_back.gif" alt="*" width="16" height="16" /> section index <img src="../images/item_up.gif" alt="*" width="16" height="16" /> <a href="#top">top

* Linux Systems On Other Media

There's quite a number of Linux distributions which run off a removable medium (floppy, CD, ZIP) or a Windows partition. CD based distributions often offer the added advantage of providing a graphical interface.

You'll find a fairly updated list of those Linux distributions on <a href="http://lwn.net/Distributions/">The LWN.net Linux Distribution List.

Things to keep in mind when using a third party rescue distribution:

The next two pages of this article will list some common (and some less common) emergency scenarios and describe how to handle them.

<img src="../images/item_back.gif" alt="*" width="16" height="16" /> section index <img src="../images/item_up.gif" alt="*" width="16" height="16" /> <a href="#top">top

* <a class="int" href="arecov3.html">Emergency scenarios I


 
Legal: All texts on this site are covered by the <a href="http://www.gnu.org/licenses/fdl.txt">GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB (Tom Berger) and Mandrakesoft 1999-2002.

-- CyberCFO - 30 Nov 2003

Topic Arecov2 . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More }
Revision r1.1 - 30 Nov 2003 - 02:34 GMT - CyberCFO
Parents: IndexStuff > MandrakeUserDocs > Administration
Copyright © 1999-2004 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.