📜 ⬆️ ⬇️

rescue initrd in cloud selective

News in one line: a rescue initrd was added to the list of available external kernels when booting the virtual machine, which contains tools for recovering the virtual machine.

In case of configuration errors (not the kernel, remote partition table, strange file system manipulations, forgotten password, errors in boot script configurations, etc.) we added an initrd with a more or less full shell (full set of busybox), plus a set of utilities to restore / repair the machine.

Rescue initrd is available in the list of external cores for download.
')
System Restore Virtual Machines in Selectel Cloud

Initrd content




Network


Important point: when booting into rescue initrd, nothing happens automatically (including network configuration). In connection with the ban on the use of foreign IP addresses, you can register any address, but only the one that is allowed for the machine will work (indicated in the tab header with the virtual machine).

This can be done either by the old method via ifconfig, or via ip. Just in case: the mask is 255.255.255.0, the gateway is the IP address of the virtual machine, whose last digit is replaced by .1.

Transition to the virtual machine file system


The infiltrate-root / dev / mapper / vmXXXX_system-root command will allow you to be in the file system bypassing the login process and not running any scripts from it. Particularly useful with a forgotten password, a randomly made chmod 777 -R / etc / * (do not do this!), Corrupted / etc / inittab, etc.

Console


And one more news: another improvement in the console - fixed the problem with calculating the height of the divs in which the characters are located (the problem is in different height of the glyphs). Now in color ncurses applications there will be no black stripes between the letters.

Source: https://habr.com/ru/post/122667/


All Articles