How Linux enters rescue mode

Source: Internet
Author: User

Usage version: Centos6.5


What the rescue model does:

You can change the root password;

Recover hard disk, file system operation;

When the system starts, it can only be started by rescue mode;


The steps to start the rescue mode are as follows:

1, the first boot into the BIOS settings (each computer into the bios of different methods according to their own computer access), boot boot sequence for CD-ROM priority to start CD drive using the keypad of the +-number adjustment up and down order;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/33/wKioL1UCQh7hP8kOAAFpTArpzSE799.jpg "style=" float: none; "title=" 0.jpg "alt=" Wkiol1ucqh7hp8koaafptarpzse799.jpg "/>

2, restart the system after entering the installation boot menu, the up and down keys moved to the Rescue Install system rescue installation Systems ;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/38/wKiom1UCQRnQQpAQAAL_OasonYw864.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiom1ucqrnqqpaqaal_oasonyw864.jpg "/>

3. Select the language and keep the default中文版

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/33/wKioL1UCQkSjJUN-AAEabWr9FsA020.jpg "style=" float: none; "title=" 2.jpg "alt=" Wkiol1ucqksjjun-aaeabwr9fsa020.jpg "/>

4, select the keyboard type, keep the default us

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/39/wKiom1UCQTLgSr6pAAEkzhrgDe4815.jpg "style=" float: none; "title=" 3.jpg "alt=" Wkiom1ucqtlgsr6paaekzhrgde4815.jpg "/>

5, whether to start the network, you need to choose according to your actual situation, if you need to copy data through the network, select Yes, here we choose No;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/33/wKioL1UCQl2SN03eAAC5B6VLBqI590.jpg "style=" float: none; "title=" 4.jpg "alt=" Wkiol1ucql2sn03eaac5b6vlbqi590.jpg "/>

6, enter into the rescue interface, select Continue

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/33/wKioL1UCQmyzQRcxAAJ4Zt8tZiA192.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiol1ucqmyzqrcxaaj4zt8tzia192.jpg "/>

7, the system is mounted under/mnt/sysimage if you want to run the Chroot/mnt/sysimage command in the root environment

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/39/wKiom1UCQVHjL8PyAAFEQ_BX-fI516.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiom1ucqvhjl8pyaafeq_bx-fi516.jpg "/>

8, three kinds of options: Shell into the command line mode; FAKD is the diagnostic mode; reboot restart the computer; we choose the shell here.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/33/wKioL1UCQnWh6A5uAACRhzS9CI0678.jpg "style=" float: none; "title=" 7.jpg "alt=" Wkiol1ucqnwh6a5uaacrhzs9ci0678.jpg "/>

9. Enter the shell command line and the prompt is bash-4.1#

ls/mnt/sysimage/displays files that are mounted as root directories

Execute chroot/mnt/sysimage/ to move the files under the/mnt/sysimage/directory to the root directory;

Command after prompt is sh-4.1#

LS is displayed as the root directory of the file;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/3A/wKiom1UCTFDylQrQAAENhsNeM1Q579.jpg "style=" float: none; "title=" 8.jpg "alt=" Wkiom1uctfdylqrqaaenhsnem1q579.jpg "/>

10, in the sh-4.1# mode needs to exit first exit, back to bash-4.1# can reboot restart the system;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/34/wKioL1UCTXLTcLxiAABKlZFvJ9U068.jpg "style=" float: none; "title=" 9.jpg "alt=" Wkiol1uctxltclxiaabklzfvj9u068.jpg "/>




This article is from the "Model Student's Learning blog" blog, please be sure to keep this source http://8802265.blog.51cto.com/8792265/1619994

How Linux enters rescue mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.