DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4 Weeks Ago
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default 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 ?
Reply With Quote
  #2   (View Single Post)  
Old 4 Weeks Ago
pl pl is offline
Real Name: /etc/myname: permission denied
Live And Let Unix
 
Join Date: Aug 2024
Location: /etc/fstab
Posts: 18
Default

Quote:
Originally Posted by peterbsd View Post
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.
Can you send a photo of what's shown on that prompt?
Reply With Quote
  #3   (View Single Post)  
Old 4 Weeks Ago
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

This screen is displayed after selecting from Refind menu.
Attached Images
File Type: jpg DSC_0066_1.jpg (536.6 KB, 15 views)
Reply With Quote
  #4   (View Single Post)  
Old 4 Weeks Ago
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

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 ?
Attached Images
File Type: jpg DSC_0072.JPG (183.9 KB, 7 views)
File Type: jpg DSC_0073.JPG (193.2 KB, 4 views)
File Type: jpg DSC_0074.JPG (101.6 KB, 4 views)
File Type: jpg DSC_0075.JPG (109.5 KB, 5 views)

Last edited by peterbsd; 4 Weeks Ago at 08:57 AM.
Reply With Quote
  #5   (View Single Post)  
Old 4 Weeks Ago
pl pl is offline
Real Name: /etc/myname: permission denied
Live And Let Unix
 
Join Date: Aug 2024
Location: /etc/fstab
Posts: 18
Default

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"
Reply With Quote
  #6   (View Single Post)  
Old 4 Weeks Ago
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

Quote:
Originally Posted by pl View Post
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"
Yes you are right, there is dk0 with FFSv2. I start installation again and tried to look it with partitioning tool. It is weird that NetBSD installer assigns there FFSv2 filesystem, because it is really Microsoft MSR 16MB partition.
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 ?
Reply With Quote
  #7   (View Single Post)  
Old 4 Weeks Ago
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

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)
Attached Images
File Type: png DSC_0078.png (342.4 KB, 3 views)
File Type: png DSC_0082.png (70.7 KB, 3 views)
Reply With Quote
  #8   (View Single Post)  
Old 4 Weeks Ago
pl pl is offline
Real Name: /etc/myname: permission denied
Live And Let Unix
 
Join Date: Aug 2024
Location: /etc/fstab
Posts: 18
Default

Quote:
Originally Posted by peterbsd
What means "current system" or "preconfigured wedges dk(4)" ?
What are these options good for ?
I've never seen "current system" option. Actually, I never stumbled upon that dialog at all.
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
Reply With Quote
  #9   (View Single Post)  
Old 4 Weeks Ago
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 04:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick