NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: need help as new user



On Mon, 16 Nov 2026, Wojciech Puchar wrote:
not really new as i've used NetBSD over 20 years ago.
I moved to FreeBSD when netbsd (if i remember correctly in version about 1.6) was unstable on server under mixed load.

As NetBSD team clearly said no to AI generated code, while FreeBSD didn't, i want to give current NetBSD a try. First on my little used desktop PC, then on my laptop and home server, and finally - if it prove reliable - move my main server making paid services.

What i don't want is to use installer. I want to install it manually, as i always did with every unix.

So please help me and explain:

1) How to TRIM whole SSD

Don't know.

2) How to make GPT partitions and fill first EFI partition to make it bootable for EFI boot.

https://wiki.netbsd.org/Installation_on_UEFI_systems/


3) How to set up encrypted root partition so it will ask for password at boot.

This covers encryption of sensitive files, not the full disk:
https://netbsd.org/~nia/disk-encrypt/

For full disk, you need to boot from a ramdisk and then pivot root to the new cgd root. This is more complicated:

https://wiki.netbsd.org/security/custom_cgdroot/

4) newfs is easy, but what option to give to support TRIM.

Don't know.

As i already found there is journalling equivaled to freebsd -j enable, called WAPBL, but i don't need it for now. It's SSD, fsck time is short.

nia's doc about covers use of lfs, that might be worth looking at too.

5) How to do any other operation (if any) needed to make it bootable.
I assume boot files will be on small unencrypted partition, but something must be set so kernel will want root on encrypted one.

As above, you'll need to use a ramdisk to allow it to mount the encrypted root.

Making it bootable is little more than creating the MSDOS partition of the correct type and the contents of EFI directory within that.

In FreeBSD there is /boot/loader.conf to set it.

Editing boot.cfg (which will be alongside the bootloader, not in the root dir) may be necessary. Depends on how you want to load that ramdisk.

6) What to put in /etc/rc.conf for a minimum.

rc_configured=YES is the main one that is done by sysinst - without that it'll drop to single-user.


7) Is there in default system any editor available other that vi? which i don't like.

-current has natto.

--
Stephen



Home | Main Index | Thread Index | Old Index