Все переводы
Введите имя сообщения для показа всех доступных переводов.
Найдено 2 перевода.
Сообщение | Текущий текст |
---|---|
ист. английский (en) | ==Root password recovery procedure on Wiren Board 5== # Plug the USB-UART adapter to the controller. The connection is described in detail on the page [[Debug_UART|Debug UART]]. Note that in the latest versions of the controller, the UART debug port is represented as a microUSB connector, so no additional USB-UART Converter is required. # Turn on the power of the controller and in the UART-console quickly press any key. # '''Very fast''' sequentially enter the commands (it is better to copy them in advance to the clipboard):<br/><code>setenv optargs rootwait fixrtc single init=/bin/sh</code><br/><code>run bootcmd</code><br/>If the commands enter slowly (manually), the interrupted boot process will continue. # Load and get the system prompt <code>#</code> # Mount the root filesystem<br/><code>mount -n -o remount,rw /dev/mmcblk0p2 /</code><br/>and get the message <code> EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)</code> #Mount the partition from the configuration backup:<br/><code>mount /dev/mmcblk0p6 /mnt/data</code><br/>and get the message <code>EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)</code> #Enter the command <code>passwd</code> and change the password. Successful password change: <code>passwd: password updated successfully</code> #Copy the new password to the configuration backup section:<br/><code>cp /etc/shadow /mnt/data/etc</code> #Unmount all:<br/><code> # sync</code><br/><code> # umount /mnt/data</code><br/><code> # umount /</code> #Turn off and turn on the power again. The password is changed. |
ист. русский (ru) | ==Процедура восстановления пароля root на Wiren Board 5== # Подключаем USB-UART переходник контроллеру. Подробно подключение описано на странице [[Debug_UART|Debug UART]]. Обратите внимание, что в последних версиях контроллера отладочный порт UART представлен в виде microUSB-разъема, так что дополнительнного преобразователя USB-UART не требуется. # Включаем питание контроллера и в UART-консоли быстро нажимаем любую клавишу. # '''Очень быстро''' последовательно вводим команды (их лучше заранее скопировать в буфер обмена):<br/><code>setenv optargs ro rootwait fixrtc single init=/bin/sh</code><br/><code>run bootcmd</code><br/>Если команды вводить медленно (вручную), то прерванный процесс загрузки продолжится. # Загружаемся и получаем системное приглашение <code>#</code> # Монтируем корневую файловую систему<br/><code>mount -n -o remount,rw /dev/mmcblk0p2 /</code><br/>и получаем сообщение <code> EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)</code> #Монтируем раздел с резервной копии конфигурации:<br/><code>mount /dev/mmcblk0p6 /mnt/data</code><br/>и получаем сообщение <code>EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)</code> #Вводим команду <code>passwd</code> и меняем пароль. Успешное изменение пароля: <code>passwd: password updated successfully</code> #Копируем новый пароль в раздел с резервной копии конфигурации:<br/><code>cp /etc/shadow /mnt/data/etc</code> #Отмонтируем всё:<br/><code> # sync</code><br/><code> # umount /mnt/data</code><br/><code> # umount /</code> #Выключаем и снова включаем питание. Пароль изменен. |