Linux Learning and lessons

Source: Internet
Author: User

Today when learning Linux, a sudden brain convulsions, in the root directory executed such a command

RM-RF *

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/24/wKiom1gIvFjxanwcAABQ9FLsuEY458.jpg-wh_500x0-wm_3 -wmp_4-s_1768825561.jpg "title=" encourage. jpg "alt=" wkiom1givfjxanwcaabq9flsuey458.jpg-wh_50 "/>

At that time, the air solidified ...

It was also not expected to recover with data recovery software. It was restarted directly.

After restarting, it's just going to be

Grub>

Halo Dish.

Suddenly think of the time to rescue mode, the system rescued back. There are backups of data and stuff. Then you can upload the data directly.

My partition information is boot partition sda1, swap partition sda2, root partition Sda3

Then the CD-ROM entered the rescue mode. Restore the/bin/directory and the command is back. And then the/etc,/usr/

and follow the great God's method to restore boot http://www.jb51.net/os/RedHat/316987.html

Then reboot found that detecting the hard drive is not capable of Mount hint error is

Dracut Warning:can ' t mount Root filesystem

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/21/wKioL1gIw6Chq1kGAAD7pY2B3No086.jpg-wh_500x0-wm_3 -wmp_4-s_1235337174.jpg "Title=" mount. JPG "alt=" Wkiol1giw6chq1kgaad7py2b3no086.jpg-wh_50 "/>

Then enter the rescue mode, found that the rescue mode will not enter.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/21/wKioL1gIw-XgbK5wAADA8r-78zg027.jpg-wh_500x0-wm_3 -wmp_4-s_2478663793.jpg "title=" output. JPG "alt=" Wkiol1giw-xgbk5waada8r-78zg027.jpg-wh_50 "/>

The whole place, feel the collapse, powerless to save. Finally give up ...

Write down this article today to warn yourself and be cautious.

Linux Learning and lessons

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.