[Linux] Linux how to modify the information when the file can not enter the operating system

Linux how to modify the file information can not enter the operating system when

The problem is there are times before for me, the consequences of the implementation of a program to test the automatic restart caused.

This was, in order to allow me to automatically run a program or script interface login screen after startup, the program will put a configuration file, looks like

/ Etc / profile or /etc/rc.d/rc.local inside, and then boot after the card has been before the login interface, no access to the system

Thinking about how to remove the configuration file line of code that run the program, at the beginning of that meeting, I despair, I want to reinstall the system.

The amount of really heavy, and half an hour to install the system sometimes really feel very cumbersome, time-consuming.

Later, I was thinking, hey ah, why I do not have a SATA to USB conversion tool interface to it, so that I can in another

Reads the data on the computer hard drive, mount it to modify the file information, so back I bought a conversion line.

Sometimes the conversion line and then later a little problem with my computer does not have the equipment, so why then, very upset

So, I think back press Ctrl + Alt + F1 / F2 / F3 / F4 / F5 / F6 to switch to the next tty mode, then you can enter your user name and password, and then you can change the file information , it really is all roses, ah, by the way there is no tty mode F1 / F2. From Ctrl + Alt + F1 ...... F10, substantially tty mode switch to some, some new window mode, which is to run in a window startx will open such windows

 

There is also a grub by modifying the information, modify the information directly into the root

You can refer to

https://blog.csdn.net/rong11417/article/details/105050549

Published 201 original articles · won praise 46 · views 90000 +

Guess you like

Origin blog.csdn.net/rong11417/article/details/105084516