|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
/boot accidentaly deleted
Hi all,
I wanted to upgrade openbsd 5.9 to 6.0 and accidenataly overwrote /boot Code:
cp bsd60.rd /boot Code:
OpenBSD 6.0 (GENERIC) #1: Fri Sep 23 08:54:37 CEST 2016 root@stable-60-amd64.mtier.org:/binpatchng/work-binpatch60-amd64/src/sys/arch/amd64/compile/GENERIC real mem = 520081408 (495MB) avail mem = 499953664 (476MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0x1ffffec0 (10 entries) bios0: vendor Seabios version "0.5.1" date 01/01/2007 bios0: Red Hat KVM Thanks. Valus |
|
|||
Hi jggimi,
thank for the answer. I have read installboot(8) man page, but before I do something I need to check it more time. The server where I overwrote the /boot file is still running, is located far away in another country and currently I do not have there iso image install media available. This is status on running server: Code:
bash-4.3$ df -h Filesystem Size Used Avail Capacity Mounted on /dev/sd0a 201M 76.7M 114M 40% / /dev/sd0g 9.8G 816M 8.5G 9% /home /dev/sd0d 238M 14.0K 226M 0% /tmp /dev/sd0e 4.9G 908M 3.8G 19% /usr /dev/sd0f 9.8G 1.0G 8.3G 11% /var /dev/sd1c 3.0G 2.5G 419M 86% /mnt/sd1 bash-4.3$ mount /dev/sd0a on / type ffs (local) /dev/sd0g on /home type ffs (local, nodev, nosuid) /dev/sd0d on /tmp type ffs (local, nodev, nosuid) /dev/sd0e on /usr type ffs (local, nodev) /dev/sd0f on /var type ffs (local, nodev, nosuid) /dev/sd1c on /mnt/sd1 type ffs (local) Code:
# cd /usr/mdec # installboot -v -r / sd0 biosboot boot Thanks. |
|
||||
Yes, that appears OK to me. After running the command, check the date stamp on the /boot file in the root directory.
But ... You should put contingency plans in place, now, before you attempt a reboot. At this moment, that computer will not reboot. This is not an emergency at this moment, because the computer is running. But .... What would you do if something happened the would cause a reboot, such a power loss? Or, if my guidance is incorrect? Plan for it now, before you touch this platform remotely. Make arrangements to have someone available at that remote facility, who is capable of downloading and preparing install media from the Internet, and to be standing by in the event your reboot fails. Last edited by jggimi; 30th September 2016 at 08:11 PM. Reason: typo |
|
|||
Now I checked VPS control for server and found that openbsd 5.7 cdrom is available, but this version is too old.
I will ask provider to download install60.iso amd64 which I could mount remotely. After image is available I will try to restore /boot. Thanks. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
.serverauth was deleted | Peter_APIIT | OpenBSD General | 7 | 28th August 2015 06:24 AM |
OpenBSD groff deleted from tree | J65nko | News | 2 | 17th March 2011 12:26 AM |
Deleted my /boot/loader | enpey | FreeBSD General | 16 | 10th June 2008 10:02 PM |