Blame
Date:
Sun Nov 27 05:00:19 2022
UTC
Message:
Daily backup
11
2022-06-13
text=!! Single User Mode%0a%0aIf your system has damaged or missing files, you may need to boot into single user mode to repair the operating system. This is described in the [[https://www.openbsd.org/faq/faq8.html#LostPW|OpenBSD FAQ]].%0a%0aHere's how you do it if you have a virtual machine running inside OpenBSD's VMM. First, login to the host machine:%0a%0a[@%0a$ ssh username@host.example.com%0a@]%0a%0aOnce logged in, stop and restart the virtual machine:%0a%0a[@%0a$ vmctl stop username%0astopping vm user: requested to shutdown vm 11%0a$ vmctl start -c username%0aConnected to /dev/ttypa (speed 115200)%0aUsing drive 0, partition 3.%0aLoading......%0aprobing: pc0 com0 mem[638K 510M a20=on]%0adisk: hd0+%0a>> OpenBSD/amd64 BOOT 3.52%0a/%0acom0: 115200 baud%0aswitching console to com0%0a>> OpenBSD/amd64 BOOT 3.52%0a@]%0a%0aYou must quickly boot into single user mode before automatic booting begins. Type @@boot -s@@:%0a%0a[@%0aboot> boot -s%0a...%0acom0: console%0avscsi0 at root%0ascsibus3 at vscsi0: 256 targets%0asoftraid0 at root%0ascsibus4 at softraid0: 256 targets%0aroot on sd0a (6dd62d70bdd3bab6.a) swap on sd0b dump on sd0b%0aEnter pathname of shell or RETURN for sh:%0a@]%0a%0aPress enter to continue:%0a%0a[@%0a# mount -rw /%0a# mount /usr%0a# export TERM=xterm%0a@]%0a%0aHere we are mounting the root partition as read-write (previously it was read-only). Then, we mount /usr in order to have access to basic system utilities. Finally, we set the terminal type.%0a%0aAfter any necessary repairs have been performed, you can reboot and login as usual:%0a%0a[@%0a# shutdown -r now %0a@]%0a
14
2022-06-13
diff:1654997477:1654997477:=1,57d0%0a%3c !! Single User Mode%0a%3c %0a%3c If your system has damaged or missing files, you may need to boot into single user mode to repair the operating system. This is described in the [[https://www.openbsd.org/faq/faq8.html#LostPW|OpenBSD FAQ]].%0a%3c %0a%3c Here's how you do it if you have a virtual machine running inside OpenBSD's VMM. First, login to the host machine:%0a%3c %0a%3c [@%0a%3c $ ssh username@host.example.com%0a%3c @]%0a%3c %0a%3c Once logged in, stop and restart the virtual machine:%0a%3c %0a%3c [@%0a%3c $ vmctl stop username%0a%3c stopping vm user: requested to shutdown vm 11%0a%3c $ vmctl start -c username%0a%3c Connected to /dev/ttypa (speed 115200)%0a%3c Using drive 0, partition 3.%0a%3c Loading......%0a%3c probing: pc0 com0 mem[638K 510M a20=on]%0a%3c disk: hd0+%0a%3c >> OpenBSD/amd64 BOOT 3.52%0a%3c /%0a%3c com0: 115200 baud%0a%3c switching console to com0%0a%3c >> OpenBSD/amd64 BOOT 3.52%0a%3c @]%0a%3c %0a%3c You must quickly boot into single user mode before automatic booting begins. Type @@boot -s@@:%0a%3c %0a%3c [@%0a%3c boot> boot -s%0a%3c ...%0a%3c com0: console%0a%3c vscsi0 at root%0a%3c scsibus3 at vscsi0: 256 targets%0a%3c softraid0 at root%0a%3c scsibus4 at softraid0: 256 targets%0a%3c root on sd0a (6dd62d70bdd3bab6.a) swap on sd0b dump on sd0b%0a%3c Enter pathname of shell or RETURN for sh:%0a%3c @]%0a%3c %0a%3c Press enter to continue:%0a%3c %0a%3c [@%0a%3c # mount -rw /%0a%3c # mount /usr%0a%3c # export TERM=xterm%0a%3c @]%0a%3c %0a%3c Here we are mounting the root partition as read-write (previously it was read-only). Then, we mount /usr in order to have access to basic system utilities. Finally, we set the terminal type.%0a%3c %0a%3c After any necessary repairs have been performed, you can reboot and login as usual:%0a%3c %0a%3c [@%0a%3c # shutdown -r now %0a%3c @]%0a