Hi.
I will be away for a year and my B2 will be at a server room. If it somehow screws up, is there any possibility to remotely reinstall or rescue the system through shell? Assuming I leave the USB stick with the install files in.
If I go for reinstall I would like to preset the easyfind settings so I can find it from the outside. That possible?
(i reinstalled bubba twice recently due to an bug with backup that filled up system volume to an b2 -> unusable state)
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Shell rescue or reinstall system
Re: Shell rescue or reinstall system
not really, you need physical access to boot from the usb.
-
- Posts: 904
- Joined: 09 Oct 2009, 18:49
Re: Shell rescue or reinstall system
It's not a complete solution, but you could extract the default /etc and /var from the installer package and copy them to your hard drive as bckup_etc/ and bckup_var/ them just rename them and reboot to return the B3 to something like the default config. You can also install the original list of packages using apt-get --get-selections and apt-get --set-sections.
Re: Shell rescue or reinstall system
You will need physical access to reinstall the b2 if you cannot login from ssh, that's for sure. However I think you could do a reinstall (with easyfind configuration) from usb with an ssh connection following these steps :
Careful, changing the bootloader configuration without access to the serial console is risky...
- Extract the install script from the key and modify it, so it would rename the install.itb file on the key before rebooting after the reinstall ; then add it to bubba.cfg configuration file so it will run when doing the reinstall
- Configure the booloader to boot the rescue system by default and the disk in case of failure and reboot the server
- After the reinstall, the b2 should boot on the disk.
Careful, changing the bootloader configuration without access to the serial console is risky...