![]() |
|
NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster? |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
The following instructions resulted in a functional Crux Linux/NetBSD 9.2
x86_64 system. Crux was installed first to the following 3 GPT partitions 1 - vfat (fat32) and tagged as System EFI boot 2 - Linux - swap 3 - Linux - ext4 I roughly split my hard drive in half with the first 3 partitions occupying the first half. I was also generous with the 1st partition and gave it 1024Mb. The disk layout should work with Debian/Crux/Slackware. The Fedora/RHEL derivatives use logical-volume/xfs for default partitioning and I was unable to get logical-volume/xfs to boot NetBSD. It did work in Fedora/RHEL derivatives with the following partion scheme: Quote:
4 - NetBSD ufs2 (aka ffsV2) 5 - NetBSD swap Then boot into the NetBSD install image select the / install destination as dk3 (NetBSD numbers dk's from 0). When prompted to add NetBSD swap select yes. The installer has a quirk where it loops back to the initial installation step when you select Install sets. The work around is to select option c: Re-install sets ... Re-install does not allow any post install configuration options or set rc_configured=YES - your initial NetBSD boot will be in single user mode. Boot back into linux and download/extract the appropriate *EFI file. An update on obtaining the *.EFI files: The easiest way to get bootx64.efi or bootia32.efi is to download the base.tar.xz file set, in your linux install to an empty directory, Choose the install set that matches your NetBSD version. Uncompress Code:
unxz base.tar.xz Code:
tar xvf base.tar Copy bootx64.efi (bootia32.efi) to /boot/efi/ Edit /etc/grub.d/40_custom Code:
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry 'NetBSD 9.2' { insmod part_gpt insmod search_fs_uuid insmod chain chainloader (hd0,gpt1)/bootx64.efi } Code:
grub-mkconfig -o /boot/grub/grub.cfg Code:
update-grub Code:
grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg Reboot and select NetBSD single user mode. From single user mode mount the / partition(s): Code:
mount -u / Code:
TERM=vt220 ; export TERM and setup your network. Provisioned /etc/rc.conf Code:
rc_configured=YES hostname= "Network per NetBSD guide" wscons=YES Set root password Code:
# passwd Code:
useradd -m -G wheel -s /bin/sh "username" Code:
# passwd "username" Code:
ln -sf /usr/share/zoneinfo/"Your Continent/Your zone" /etc/localtime https://www.netbsd.org/docs/guide/en/ Last edited by shep; 13th December 2023 at 09:16 AM. Reason: Update Fedora/RHEL clone options and extraction the *EFI's |
|
|||
![]() Quote:
In part, I'm compulsive and want to make sure they get loaded. In the context of a guide, I also lean towards showing what is going on under the hood. Last edited by shep; 23rd October 2021 at 04:21 PM. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Keeping Windows and dual booting | acampbell | OpenBSD Installation and Upgrading | 7 | 4th May 2018 03:24 PM |
Booting both UEFI and BIOS systems | egency | NetBSD Installation and Upgrading | 22 | 21st April 2018 08:46 PM |
dual booting OpenBSD and NetBSD | daemonfowl | NetBSD Installation and Upgrading | 1 | 21st February 2012 01:06 PM |
Dual Booting Questions | sepuku | OpenBSD Installation and Upgrading | 3 | 8th September 2011 09:24 PM |
dual booting OS X with Windows | dipalina | Other BSD and UNIX/UNIX-like | 3 | 13th January 2010 08:46 PM |