|
NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster? |
|
Thread Tools | Display Modes |
|
||||
NPF seems very intuitive and am looking forward to using it once I can get the early read-only mode problem ironed out. I should note that this is IIRC a memory stick image downloaded from NetBSD.org, so it shouldn't have a partition issue or I wouldn't think so anyway ...
|
|
|||
Perhaps explain your usage of NPF....
Quote:
__________________
Linux since 1999, & also a BSD user. |
|
||||
I think rons is referring to npf(7).
Quote:
Not sure if I'll be able to help directly though because I don't use NetBSD (sorry). |
|
||||
Quote:
Code:
sd1: fabricating a geometry sd1: 15193 MB, 15193 cyl, 64 heads ... sd1: fabricating a geometry sd1:GPT GUID 29A73 ... dk0 at sd1: "EFI system" ... dk1 at sd1: "NetBSD" boot device: sd1 root on: dk1 root filesystem type: ffs /dev/dk1: file system not clean; please run fsck ... sd1: fabricating a geometry ... sd1: 15193 MB, 15193 cyl, 64 heads ... sd1: GPT GUID: 299A73 ... dk0 at sd1: "EFI system" dk1 at sd1: "NetBSD" boot device: sd1 root on dk1 root filesystem type: ffs /dev/dk1: file system not clean; please run fsck I have tried fsck (which works) - but the next boot it does the same thing anyway. I put fsck into /etc/rc.d/root but that is too late in the boot process, and doesn't allow npf to write, and thus it does not load. So, what do you think? Last edited by ocicat; 16th November 2023 at 02:25 PM. Reason: Added [code] and [/code] tags for clarity. |
|
||||
Here is fstab:
Code:
# NetBSD /etc/fstab # See /usr/share/examples/fstab/ for more examples. /dev/dk1 / ffs rw 1 1 kernfs /kern kernfs rw ptyfs /dev/pts ptyfs rw procfs /proc procfs rw tmpfs /var/shm tmpfs rw,-m1777,-sram%25 Last edited by ocicat; 16th November 2023 at 02:27 PM. Reason: Added [code] and [/code] tags for clarity. |
|
||||
Hi Onauk,
Well , disklabel does give a confusing result. First, output of listwedges: Code:
dkctl sd1 listwedges /dev/rsd1: 2 wedges found: dk0: EFI system, 262144 blocks at 4096, type:msdos dk1: NetBSD, 25165824 blocks at 266240, type ffs dkctl dk1 getwedgeinfo dk1: at sd1: NetBSD dk1: 25165824 blocks at 266240, type ffs |
|
||||
So, listwedges seems OK. But, weirdness in disklabel:
Code:
disklabel sd1 /dev/rsd1: type:SCSI disk: USB3.0 CRW -SD label: fictitious flags: removable bytes/sector: 512 sectors/track: 32 tracks/cyl: 64 total sectors: 31116288 4 partitions: size offset fstype fsize bsize a: 31116288 0 4.2BSD 0 0 b: 31116288 0 unused 0 0 disklabel: boot block size 0 disklabel: super block size 0 Last edited by rons; 18th November 2023 at 06:12 PM. |
|
||||
Perhaps the gpt output will give a better picture of the disk than disklabel by itself:
gpt show sd0 Code:
start length index description 0 1 PMBR 1 1 Pri GPT header 2 32 Pri GPT table 34 4062 Unused 4096 262144 1 GPT part - EFI System 266240 25165824 2 GPT part - NetBSD FFSv1/FFSv2 23432064 5684191 Unused 31116235 32 Sec GPT table 31116287 1 Sec GPT header Last edited by rons; 19th November 2023 at 01:58 PM. |
|
||||
I do not look at GPT very often. What is the purpose of the second table/header? Now that I've been thinking about this stick, I remember that I downloaded the installation memory stick image from NetBSD, and then myself did the installation to this stick (that I'm using now :-) ).
So, any booboo is probably mine. Any ideas? BTW, here is uname -a : NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64 Edit: Perhaps it was the bleeding edge image for NetBSD 9.0, and I should just upgrade to a newer stick image. But then - ugh - I have to reinstall all the apps I've put onto the stick, like this newish version of Firefox that I'm using, etc. Would rather get this one perfected, in the interest of being lazy. Last edited by rons; 19th November 2023 at 02:28 PM. |
|
||||
From https://daemonforums.org/showpost.ph...51&postcount=3 we have:
Quote:
I'm wondering if the presence of the secondary info is confusing the boot process? Just throwing things out there. Pays to read the other guys posts who came before LOL. Sorry I am monopolizing this thread, but I am getting my thoughts organized by blathering LOL. Sure hope I can get the firewall (npf) working on this stick, as everything else in this setup is pretty nifty. I can get a *very* recent version of firefox going, wherein on some of the other OS's to do that you compile it yourself. Last edited by rons; 19th November 2023 at 04:24 PM. |
Tags |
npf, readonly issue, uefi, usb boot |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UEFI & eMMC (?) | bsd-keith | NetBSD Installation and Upgrading | 2 | 7th February 2023 06:04 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 |
dragonfly BSD UEFI | myway_1 | Other BSD and UNIX/UNIX-like | 4 | 31st March 2017 09:29 PM |