Boot Ubuntu Linux into Rescue mode to fix system
2012-06-02 19:16
459 查看
Boot Ubuntu Linux into Rescue mode to fix system
from: http://www.cyberciti.biz/faq/howto-boot-ubuntu-linux-rescue-mode/Q. How do I boot my Ubuntu Linux server into Rescue mode to fix system?
A. You can boot Ubuntu Linux into rescue mode when things go wrong, there are several ways to work on fixing them. However, you must understand your system and what to fix in case of emergency.
Use this mode only if your system is unbootable. It is also recommended that you make backup of important data.
=> Start Computer / reboot computer
=> Put your Ubuntu install CD
=> Make sure BIOS is set to boot from CD
=> Now booting will start from Ubuntu install CD
=> You will see various option screen - select Recover a broken system
You will system is booting in to rescue mode; system will ask about Network and other information. This is required to setup rescue environment.
Now you will prompted to select root partition or device.
Next it will try to mount root device and it will notify the same.
Now you will see common rescue mode option such as Reinstall GRUB or open / execute a shell etc.
Now you are in rescue mode and you need to use your own knowledge to rescue the system. When things go wrong, there are several ways to work on fixing them.
Few things to remember....
The rescue-mode CD mounts your root filesystem at /target directory. Open or execute a shell and change directory to /target# ls /target # cd /target # mount
If you need to run fsck command use fdisk -l command to find out partition name. Usually they are located at /dev/discs/discX/partY. For example repair 2nd partition (not mounted as /target) you may type command:
# ls -l /dev/discs/disc0 # fsck.ext3 /dev/discs/disc0/part1
To exit type command :
# sync ;sync # exit # reboot
As I said earlier in rescue mode, there is no single command that I can recommend to fix problem. You need to use your own knowledge to rescue the system and don't forget to read command documentation before using any command.
相关文章推荐
- How to boot ubuntu in text mode instead of graphical(X) mode
- The installer is unable to run in graphical mode: required operating system packages for Linux
- Adding a Custom System Call to Ubuntu Linux in [C]
- ubuntu 16.04 启动进入命令行的解决方案 ubuntu 16.04 boot into text mode
- linux boot-go_to_protected_mode
- How to change Red Hat Linux to boot to command line mode from Gnome
- [Guide] Mac OS X Lion: How To Boot A Linux Live System From An USB Drive & How To Update Any OCZ SSD
- Add a system call to the linux kernel in Ubuntu
- How to fix “System program problem detected” error on Ubuntu
- ubuntu 16.04 启动进入命令行的解决方案 ubuntu 16.04 boot into text mode
- ** Unable to load Mozilla for hosted mode ** (GWT & Ubuntu 8.10 Linux)
- ubuntu 16.04 启动进入命令行的解决方案 ubuntu 16.04 boot into text mode
- ubuntu 14.04 boot into text mode
- let ftp pass iptables to go into your linux system
- Fix: Patch for Parallel Tools 9.0.23350 to support Linux Kernel 3.12 (Ubuntu 14.04)
- How to fix “System program problem detected” error on Ubuntu
- linux boot-go_to_protected_mode
- Boot into console mode in Linux
- How to fix “The system is running in low-graphics mode” Ubuntu 17.04 or 16.04
- How do I find out Linux Resource utilization to detect system bottlenecks?