|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
how to setup UEFI boot
Hello,
I installed minimal NetBSD installation to GPT disk with several NTFS and FAT partitions. When I installed OS I was seeing name of target partition /dev/dk6. After installation I used refind boot manager on my EFI partition. I created EFI/NetBSD and put bootx64.efi to it. After reboot refind displayed new item but after selecting it displayed prompt and required to use boot command. I tried to find what parameter to use after boot command. I boot again with USB stick used in installation and tried to mount NetBSD partition to check if installed file system is there. But when I mount /dev/dk6 then it mount successfully but ls command shows only one item named "NO". How to mount it to see installed file system ? Or what should I try to boot NetBSD from refind ? Is needed any boot.cfg to put there ? |
|
|||
Can you send a photo of what's shown on that prompt?
|
|
|||
This screen is displayed after selecting from Refind menu.
|
|
|||
I tried reinstallation, no success. I think that something is probably wrong with partitioning disk (attached first and second jpg). Is partition setup correct ?
or my last step when installer put question: "On which disk do you want to configure a prior installation of NetBSD ?" (attached last jpg) I don't understand why installer put this question even I don't understand what means if I select first option "current system" and fourth option "Preconfigured 'wedges' dk(4)". I selected second option "wd0". Is it wrong ? Last edited by peterbsd; 4 Weeks Ago at 08:57 AM. |
|
|||
So rEFInd starts NetBSD bootloader successfully, that bootloader finds system partition (by GPT name "NetBSD") but finds no kernel.
I've noticed there are two FFSv2 partitions actually (note that dk0). Check if it's not labeled the same ("NetBSD") and that "Boot" param is set to "No" |
|
|||
Quote:
I edited it and change to unknown file system and checked Boot flag - it was set to "No", so my change was only file system. After saving and rebooting, problem is the same. But when I again run installation and looked to partitioning tool this first 16MB partition has again assigned FFSv2 file system ! Cannot be reason my bad option in installer dialog "On which disk do you want to configure a prior installation of NetBSD ?" (like I described in previous post) What means "current system" or "preconfigured wedges dk(4)" ? What are these options good for ? And why I am not able to see content of mounted NetBSD partition from system booted from USB key ? |
|
|||
I made two another attempts:
I reinstalled NetBSD again and select minimal installation. After reboot it could not find kernel like in all previous attempts. I booted USB key and started shell and after mounting /dev/dk6 I was seeing / directory with several subdirs but kernel "netbsd" was not under root directory. I copied kernel from USB key and kernel booted but then it was not able to find /sbin/init. When compared installed directory tree on /dev/dk6 with directory tree on USB key, it seems like there was installed only empty directory tree without files. I tried installation again and select custom installation. On last step of installation when appeared question: "On which disk do you want to configure a prior installation of NetBSD ?" then I tried "preconfigured wedges dk(4)" and select NetBSD partition. After it appeared error: mount_ffs /dev/dk6 /targetroot failed (see attached png) After finished installation I booted again from USB key and tried to mount /dev/dk6 and it is empty. (see attached png) |
|
|||
Quote:
In case of "preconfigured wedges"... You just select already-prepared partition and go straight into installing sets. In case of that dialog it'd no different from selecting actual disk it's installed on (wd0)... I think. Again, never seen such dialog before. Honestly I have no idea what's goin' on there anymore, neither I can replicate that problem so I can't try to troubleshoot it myself. Two more things I'd try: - Reflash installation media. Maybe image got corrupt during flash? Or the stick itself? "noname" thumb drives tend to be terribly unreliable - "skip" installer by manually untaring yer selection of sets (/amd64/binary on installer) onto that partition If that doesn't work out, try asking for help on netbsd-users@ mailing list Last edited by pl; 4 Weeks Ago at 08:42 PM. Reason: spelling |
|
|||
Problem resolved.
NetBSD 10.0 installer has several bugs in partitioning disk with existing partitions and with reading partitions, saving state of partition etc. Maybe you have not problem if you have whole disk for NetBSD - this is not my case. Workaround: In GPT partition list (in one of above screens) is above NetBSD partition placed EFI partition. When I opened it in extended partitioning and checked mount "No" it is not sufficient. You must also delete mount point name "NO NAME". Else installer displayed error about mounting but on the end it tells that system is successfully installed. If not installer has some problem with it (this was probably reason why I saw on installed file system only one item named: "NO" or item "NO" plus empty directory tree without files. Regarding to partitioning disk I appeared several other bugs. So after week of playing with installing NetBSD I am succeeded ! I am going to report bugs what I found. Thanks to pl for the help and tips. Last edited by peterbsd; 4 Weeks Ago at 04:50 PM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
NPF UEFI boot on USB | rons | NetBSD Installation and Upgrading | 11 | 19th November 2023 04:11 PM |
Dual boot OpenBSD UEFI with Linux | HopingStar | OpenBSD Installation and Upgrading | 5 | 21st October 2022 07:17 AM |
Can not Boot FreeBSD NetBSD in Bare Metal, UEFI | czachstd | NetBSD Installation and Upgrading | 5 | 28th July 2020 03:24 AM |
FreeBSD 11.1 amd64 UEFI boot from ZFS mirror | hanzer | FreeBSD Installation and Upgrading | 5 | 20th October 2017 10:53 PM |
OpenBSD PXE boot and tftpd server setup | J65nko | Guides | 3 | 25th December 2014 04:19 AM |