Senior Software Developer
Hello,
I have created a FreeBSD (10) droplet for at least 3 years now. I have lost the SSH keys.
The problem is that I tried the recovery mode but:
After investigating the recovery.sh script, it seems that it expects to find the /dev/vda3 device. But I do not find this endpoint.
Is it a problem in the recovery.sh script ? As my droplet is an old one, does DigitalOcean has changed the mapping and it does not work anymore for the old droplets ?
How can I recover an old FreeBSD droplet ?
Thanks in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If your droplet is otherwise functional you can boot it into single user mode, set your root filesystem zpool to read-write and then make the changes you need to gain access to your system. Before you make changes I highly suggest creating a snapshot with the droplet powered off. Note that this advice is based on a fairly unmodified FreeBSD 12.2-RELEASE system with a ZFS root filesystem.
First, in the droplet control panel, under Recovery, make sure you have selected “Boot from Hard Drive”. To get into single user mode, starting from a powered off droplet, power on the droplet and open the web console as soon as the droplet control panel indicates the droplet console is available. With the console open you should see the FreeBSD bootloader screen with the option to start in single user mode (press “s” I think).
Once you’re at a # prompt, run zfs set readonly=off <zpool name>. In my case the system zpool is named zroot which I believe is DigitalOcean standard, but zpool list can help you determine the correct name. At this point you should be able to make any changes needed to the system to regain access to your droplet. Once you’ve made changes just run reboot and your system should come back up. If your changes corrected the problem your system should now be accessible.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.