DEV Community

Slava "nerfur" Voronzoff
Slava "nerfur" Voronzoff

Posted on

1 1

How to (re-)install OpenBSD on old disklabel

Once I found my good old samsung netbook (little NC10 model, it was amazing laptop for my needs) and found that it has good old OpenBSD (I expected that).

But problem arise... it was really old 5.7 version. Time to update! But how? Official FAQ only supports close versions upgrades. Do it step by step? Too much time... Reinstall! But I don't remember, maybe something important already exists at home.

I quickly check documentation and can't find info how to preserve one of disklabel partitions while installing... but I found how it can be achieved.

IMPORTANT. I ALWAYS USE SEPARATED PARTITIONS FOR /HOME AND RECOMMEND IT TO YOU!

Boot your installation media, get to fdisk part
Choose O for using already existing OpenBSD disk partition.
Next page will be default auto disklabel...

DONTPANIC;)

Just choose [C]ustom layout, check with 'p' that you see your old disklabels, now use 'n' to set mount points for all labels that you WANT to format.

!!! DONT TOUCH LABEL(s) THAT YOU WANT TO SAVE DATA ON !!!

after setting all mount points for "new" labels use 'q' to save&exit and watch how only "mounted" labels got formated :)

Continue installation and don't forget to fix /mnt/etc/fstab for other mount points before reboot.

Voila!

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay