Re: Trouble installing NetBSD 9.0 amd64
Hi. I still have to try stepping through your install script to try to fix my install. I have been using the NetBSD 9.0 image since about end of March (when New Zealand Carona lock down started). I was excited because it mentioned the UEFI support. I used the three NetBSD installation guides because I was having trouble installing it easily and I was getting further along with the help of those guides. Yes it has had previous UEFI installs on it in this order, Windows 8 (It's a 2012 laptop), Ubuntu (As it had UEFI support), Lubuntu (Ubuntu but lightweight also with UEFI support) and finally attempted NetBSD. I think I tried installing FreeBSD on it but it didn't come with X (twm) as standard, but I think that booted so I went back to Lubuntu ?!?!. I've tried installing NetBSD 9.0 to another USB stick and on reboot that USB stick is not bootable. I could try the lubuntu option and modify it's boot loader to add NetBSD to the boot menu. I could resize the NetBSD 9.0 partitions or add new ones on the USB install stick and modify the /etc/fstab as then I would have a bootable NetBSD 9.0. I find USB 3.0 fast enough as well for my needs. I find the setting up NetBSD to install from a USB stick guide, not the most friendiest tutorial. So I can set up and format the wedges, extract the packages, add users, copy the efi files to the msdos partition. I'm quite far along, It's just doing the part that makes it bootable like the USB install image. But first I need to work through your script. Regards Ahi On Wednesday, 20 May 2020, 23:35:51 GMT+12, Robert Nestor wrote: Reading this thread it appears to me Ahi was booting up from NetBSD 8.0 on a USB stick and then trying to install 9.0 on his hard drive. I’m not sure, but that could be part of his problem. I seem to recall running into problems with GPT partitioning and UEFI booting when I tried doing this some time ago. The second problem would be running the Installer in this setup as it isn’t clear which version of the Installer he’s running, the 8.0 one or the 9.0 one. Third was trying to follow installation instructions from sources other than the NetBSD guides and Wiki from the NetBSD site. I’ve suggested he download the 9.0 USB image and try using it to install 9.0. On the issue of his system going back to the BIOS screen even after setting up the system for UEFI booting, there are at least two possibilities I’ve seen on my system. First, if the firmware is configured to prefer BIOS booting over UEFI or if the UEIF booting is disabled in the firmware this can happen. Second, he states he had GPT partitions on the disk previously so I’d assume he had a UEFI bootable system installed at some point. If that was Windows or almost any version of Linux those installations would have set the UEFI variables for booting such as which system to boot. If those variables no longer apply to the setup on his newly installed system the UEFI boot will most likely fail and fall back to a BIOS boot. The UEFI variables are normally managed by a utility such as efibootmgr which doesn’t exist (yet) in NetBSD though. So getting rid of them or reconfiguring them can be a problem. In my system I can boot into the BIOS to manage boot sources, enable/disable UEFI booting and also reset the firmware. Resetting the firmware removes all the currently defined UEFI variables. I’ve also managed the UEFI boot variables by booting up a Linux CDROM and running its efibootmgr. However, to do this the CDROM has to be booted up via UEFI; booting it up via BIOS doesn’t load the components necessary to run efibootmgr.
Re: Trouble installing NetBSD 9.0 amd64
Hi. Yes you are correct. It is a typo, the /media/EFI/boot/ is from the unitedbsd installing tutorial. I have been correcting it in my reinstalls to /mnt/EFI/boot. But I still can not get it up and running. On Thursday, 21 May 2020, 00:13:45 GMT+12, Dima Veselov wrote: On Wed, May 20, 2020 at 07:54:34AM +0200, Martin Husemann wrote: >> gpt resize -i 1 -s80m wd0 >> >> That command worked, as the new block size on the dk0 was smaller, I then >>did >> newfs_msdos -F 12 /dev/rdk0 >> mount_msdos /dev/dk0 /mnt >> mkdir -p /media/EFI/boot >> cp /usr/mdec/*.efi /media/EFI/boot >> >> And on reset back to the bios screen. > >Ok, I am out of ideas here - anyone? >What firmware is that? Maybe google knows about it? Maybe you know but its a typo here - you mount efi partition as /mnt but copy file to /media -- Sincerely yours, Dima Veselov Physics R&D Establishment of Saint-Petersburg University
Re: Trouble installing NetBSD 9.0 amd64
On Wed, May 20, 2020 at 07:54:34AM +0200, Martin Husemann wrote: gpt resize -i 1 -s80m wd0 That command worked, as the new block size on the dk0 was smaller, I then did newfs_msdos -F 12 /dev/rdk0 mount_msdos /dev/dk0 /mnt mkdir -p /media/EFI/boot cp /usr/mdec/*.efi /media/EFI/boot And on reset back to the bios screen. Ok, I am out of ideas here - anyone? What firmware is that? Maybe google knows about it? Maybe you know but its a typo here - you mount efi partition as /mnt but copy file to /media -- Sincerely yours, Dima Veselov Physics R&D Establishment of Saint-Petersburg University
Re: Trouble installing NetBSD 9.0 amd64
Reading this thread it appears to me Ahi was booting up from NetBSD 8.0 on a USB stick and then trying to install 9.0 on his hard drive. I’m not sure, but that could be part of his problem. I seem to recall running into problems with GPT partitioning and UEFI booting when I tried doing this some time ago. The second problem would be running the Installer in this setup as it isn’t clear which version of the Installer he’s running, the 8.0 one or the 9.0 one. Third was trying to follow installation instructions from sources other than the NetBSD guides and Wiki from the NetBSD site. I’ve suggested he download the 9.0 USB image and try using it to install 9.0. On the issue of his system going back to the BIOS screen even after setting up the system for UEFI booting, there are at least two possibilities I’ve seen on my system. First, if the firmware is configured to prefer BIOS booting over UEFI or if the UEIF booting is disabled in the firmware this can happen. Second, he states he had GPT partitions on the disk previously so I’d assume he had a UEFI bootable system installed at some point. If that was Windows or almost any version of Linux those installations would have set the UEFI variables for booting such as which system to boot. If those variables no longer apply to the setup on his newly installed system the UEFI boot will most likely fail and fall back to a BIOS boot. The UEFI variables are normally managed by a utility such as efibootmgr which doesn’t exist (yet) in NetBSD though. So getting rid of them or reconfiguring them can be a problem. In my system I can boot into the BIOS to manage boot sources, enable/disable UEFI booting and also reset the firmware. Resetting the firmware removes all the currently defined UEFI variables. I’ve also managed the UEFI boot variables by booting up a Linux CDROM and running its efibootmgr. However, to do this the CDROM has to be booted up via UEFI; booting it up via BIOS doesn’t load the components necessary to run efibootmgr.
Re: Trouble installing NetBSD 9.0 amd64
On Tue, May 19, 2020 at 07:10:01PM +, Ahi Brown wrote: > Hi. > > gpt resize -i 1 -s80m wd0 > > That command worked, as the new block size on the dk0 was smaller, I then did > newfs_msdos -F 12 /dev/rdk0 > mount_msdos /dev/dk0 /mnt > mkdir -p /media/EFI/boot > cp /usr/mdec/*.efi /media/EFI/boot > > And on reset back to the bios screen. Ok, I am out of ideas here - anyone? What firmware is that? Maybe google knows about it? Martin
Re: Trouble installing NetBSD 9.0 amd64
Hi Robert. Yes I will be very interested in this script of yours so I can get NetBSD 9.0 installed and up and running. It has no previous versions on the hard drive just the wedges set up and the packages installed as mentioned on https://archive.unitedbsd.com/t/netbsd-desktop-part-1-manual-netbsd-installation-on-gpt-uefi/284 I have modified that process as the package names have changed from $set.tgz to the current file extension (I forgot the current one but it's no longer .tgz in 9.0) The install 9.0 USB image from the site is based on the current NetBSD 9.0 right?!?! Ahi On Wednesday, 20 May 2020, 05:13:43 GMT+12, Robert Nestor wrote: Been following your posts on your difficulties installing NetBSD on your system. I’ve got a script that I developed before the Installer was updated to support installation on GPT wedges with UEFI booting. It can install NetBSD installation files to either a BIOS or UEFI bootable system. It works for me for systems from 8.x up thru today’s -current on my HP amd64 system. I have also used it with a USB stick where I just copy it onto the USB stick and run it from there to do a complete installation. If you’d like a copy of it to try just let me know. BTW, if you’re trying to install a 9.0 or later system from a booted USB system that’s running 8.0 you might run into problems, especially with GPT partitions and trying to use the Installer. NetBSD 9.x doesn’t have all the “knowledge” and files needed to correctly set up a bootable 9.0 or later system. You really need to copy the 9.0 USB bootable system onto your USB stick and use it instead. -bob
Re: Trouble installing NetBSD 9.0 amd64
Hi. gpt resize -i 1 -s80m wd0 That command worked, as the new block size on the dk0 was smaller, I then did newfs_msdos -F 12 /dev/rdk0 mount_msdos /dev/dk0 /mnt mkdir -p /media/EFI/boot cp /usr/mdec/*.efi /media/EFI/boot And on reset back to the bios screen. Regards Ahi On Tuesday, 19 May 2020, 23:39:23 GMT+12, Martin Husemann wrote: On Tue, May 19, 2020 at 11:27:22AM +, Ahi Brown wrote: > I'm having trouble with this part. I had to use `dkctl wd0 delwedge` > to remove the EFI wedges. I also had trouble trying to gpt resize -a 2m > -s 80m my efi diskwedge. And when I added a new EFI wedge it went to > the end of the list not at the beginning (first 80mb). Not sure if the manual dkctl wd0 delwedge is needed (gpt(8) should do that automatically). For resize I would use something like: gpt resize -i 1 -s 80m wd0 Does that not work? How does it fail? Martin
Re: Trouble installing NetBSD 9.0 amd64
Hi. I'm having trouble with this part. I had to use `dkctl wd0 delwedge` to remove the EFI wedges. I also had trouble trying to gpt resize -a 2m -s 80m my efi diskwedge. And when I added a new EFI wedge it went to the end of the list not at the beginning (first 80mb). Very frustrating. Should I just try mbr install? Regards Ahi On Tuesday, 19 May 2020, 20:08:01 GMT+12, Martin Husemann wrote: On Tue, May 19, 2020 at 06:52:39AM +, Ahi Brown wrote: > Yes both the two files are in the /efi/boot/ directory. My msdos > partition is 4096 size blocks compared to the USB which is 2048 sized > blocks. Would that make much difference? It should not, but that may be an issue with your firmware. So it could be either the size of the EFI partition (there are rumours of firmware requiring less than 100 MB, though I read the EFI spec as asking for 128 MB), or it could be the FAT type of the msdos file system. You could try to newfs_msdos with different -F arguments and see if that makes a difference, and if that does not help make the partition smaller (say 80 MB). Changing this partition size does not require any changes to the other partitions, only a newfs_msdos afterwards (again maybe try different -F arguments). Another option would be firmware variable settings (which we do not create at all, so the bootloader has no proper name in the UEFI boot menu) - but that is true also for the USB device and I have never seen it cause issues. Martin sd0backup.log Description: Binary data wd0backup.log Description: Binary data
Re: Trouble installing NetBSD 9.0 amd64
On Tue, May 19, 2020 at 11:27:22AM +, Ahi Brown wrote: > I'm having trouble with this part. I had to use `dkctl wd0 delwedge` > to remove the EFI wedges. I also had trouble trying to gpt resize -a 2m > -s 80m my efi diskwedge. And when I added a new EFI wedge it went to > the end of the list not at the beginning (first 80mb). Not sure if the manual dkctl wd0 delwedge is needed (gpt(8) should do that automatically). For resize I would use something like: gpt resize -i 1 -s 80m wd0 Does that not work? How does it fail? Martin
Re: Trouble installing NetBSD 9.0 amd64
On Mon, May 18, 2020 at 02:35:02AM +, Ahi Brown wrote: > Hi. > > I am having trouble trying to install NetBSD 9.0 amd64 on a old ASUS S200E > Laptop (2012). I used to play around a bit with NetBSD during the BIOS days > but ever since 2013 when the UEFI laptops have been released I am having > trouble getting it installed or running. > > I am using 3 websites to try to get it installed and running they are: > https://wiki.netbsd.org/Installation_on_UEFI_systems/ When did you look there? It has a section at the top called Installing NetBSD 9.0 or newer on a x86 system with UEFI that tells you *not* to do anything special and some screen shots of the first part of the process. > First of NetBSD 9.0 can boot of the USB stick successfully. Once I > get to sysint I drop into /bin/sh then I follwed > https://wiki.netbsd.org/Installation_on_UEFI_systems/ created a /dev/dk > wedge and went back into the install pointed to that partion and it > managed to install. But it must not have installed the boot properly > because on reboot it hung and I had to use the USB stick to boot. Do not drop to the shell, just select "Install" and follow the installer. If that does not get you a system bootable from your hard disk, we need to look closer at what went wrong. If you still have it installed that way and can boot from USB stick but not from hard disk, we can also try to figure out what is wrong and help you manually fix it - but you need to give more details about the failure mode first: what goes wrong if you try to boot from hard disk. Martin
Trouble installing NetBSD 9.0 amd64
Hi. I am having trouble trying to install NetBSD 9.0 amd64 on a old ASUS S200E Laptop (2012). I used to play around a bit with NetBSD during the BIOS days but ever since 2013 when the UEFI laptops have been released I am having trouble getting it installed or running. I am using 3 websites to try to get it installed and running they are: https://wiki.netbsd.org/Installation_on_UEFI_systems/ https://archive.unitedbsd.com/t/netbsd-desktop-part-1-manual-netbsd-installation-on-gpt-uefi/284 https://wiki.netbsd.org/tutorials/how_to_install_netbsd_from_an_usb_memory_stick/ First of NetBSD 9.0 can boot of the USB stick successfully. Once I get to sysint I drop into /bin/sh then I follwed https://wiki.netbsd.org/Installation_on_UEFI_systems/ created a /dev/dk wedge and went back into the install pointed to that partion and it managed to install. But it must not have installed the boot properly because on reboot it hung and I had to use the USB stick to boot. The second time I tried to follow : https://archive.unitedbsd.com/t/netbsd-desktop-part-1-manual-netbsd-installation-on-gpt-uefi/284 and changed the /dev/rwd0x to the respective /dev/rdkx partitions. I seem to get good results this way and install the packages and once I get to the 'set up a chroot env' part it mounts my wd0 partions and I can run the packages. .i.e I can get twm running :). Having to boot of a usb stick then manually mound the /dev/dk partitions is a pain in the butt. I would like to attempt to get NetBSD up and running of /dev/wd0 if not get it installed on to a bootable USB stick. I hope this is the right place to post this. Thanks.