Hi all.
I'd got a freebsd 13.0 system up and running booting from a usb3 disk on
a pi4. Before completing the final touches, I thought I'd stress test it
and simply pulled the mains plug out to see how well it would recover.
It didn't.
It gets part way up, but hangs "waiting for /dev/ufs/rootfs". Networking >seems to be up, as the pi can be pinged. But that's as far as it goes.
I've checked the disk on a separate machine, and fsck'd it. All looks
well. I've also cranked up kern.cam.boot_delay to 20000, but no change.
I guess I'll have to reinstall, but it would be good to know what the
issue is. And I'm disappointed in the failure mode: OK, pulling the plug
is nasty, but power companies do it from time to time; I don't mind if I
have to boot single user and fsck disks, but this.... Not Good.
Any thoughts? (Or recommendations for a UPS to run 2 pi's??)
Thanks.
Hi all.
I'd got a freebsd 13.0 system up and running booting from a usb3 disk on
a pi4. Before completing the final touches, I thought I'd stress test it
and simply pulled the mains plug out to see how well it would recover.
It didn't.
It gets part way up, but hangs "waiting for /dev/ufs/rootfs". Networking seems to be up, as the pi can be pinged. But that's as far as it goes.
I've checked the disk on a separate machine, and fsck'd it. All looks
well. I've also cranked up kern.cam.boot_delay to 20000, but no change.
I guess I'll have to reinstall, but it would be good to know what the
issue is. And I'm disappointed in the failure mode: OK, pulling the plug
is nasty, but power companies do it from time to time; I don't mind if I
have to boot single user and fsck disks, but this.... Not Good.
Any thoughts? (Or recommendations for a UPS to run 2 pi's??)
In comp.sys.raspberry-pi Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
Hi all.
I'd got a freebsd 13.0 system up and running booting from a usb3 disk on
a pi4. Before completing the final touches, I thought I'd stress test it
and simply pulled the mains plug out to see how well it would recover.
It didn't.
It gets part way up, but hangs "waiting for /dev/ufs/rootfs". Networking
seems to be up, as the pi can be pinged. But that's as far as it goes.
I've checked the disk on a separate machine, and fsck'd it. All looks
well. I've also cranked up kern.cam.boot_delay to 20000, but no change.
I guess I'll have to reinstall, but it would be good to know what the
issue is. And I'm disappointed in the failure mode: OK, pulling the plug
is nasty, but power companies do it from time to time; I don't mind if I
have to boot single user and fsck disks, but this.... Not Good.
Any thoughts? (Or recommendations for a UPS to run 2 pi's??)
It's hard to diagnose what's wrong without a serial console. AFAIK that's
the only way to use single-user mode, which is how one normally recovers
from an ungraceful shutdown. It's also useful for tinkering with u-boot
if that becomes necessary. FreeBSD is still a little undercooked around
the edges on the RPi series, but I've crashed mine more than a few times without serious problems.
hth,
bob prohaska
The hardest part
seems to be the firewall - I understand pf imperfectly but well enough; >iptables/firewalld seems to me a bit of a conceptual morass ATM.
On a sunny day (Tue, 25 Jan 2022 08:48:54 +0000) it happened Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote in <ssodho$2jk$1@dont-email.me>:.....snip...
The hardest part
seems to be the firewall - I understand pf imperfectly but well enough;
iptables/firewalld seems to me a bit of a conceptual morass ATM.
For me to make using it simple I wrote 2 scripts:
In comp.sys.raspberry-pi Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
Hi all.
I'd got a freebsd 13.0 system up and running booting from a usb3 disk on
a pi4. Before completing the final touches, I thought I'd stress test it
and simply pulled the mains plug out to see how well it would recover.
It didn't.
It gets part way up, but hangs "waiting for /dev/ufs/rootfs". Networking
seems to be up, as the pi can be pinged. But that's as far as it goes.
I've checked the disk on a separate machine, and fsck'd it. All looks
well. I've also cranked up kern.cam.boot_delay to 20000, but no change.
I guess I'll have to reinstall, but it would be good to know what the
issue is. And I'm disappointed in the failure mode: OK, pulling the plug
is nasty, but power companies do it from time to time; I don't mind if I
have to boot single user and fsck disks, but this.... Not Good.
Any thoughts? (Or recommendations for a UPS to run 2 pi's??)
It's hard to diagnose what's wrong without a serial console. AFAIK that's
the only way to use single-user mode, which is how one normally recovers
from an ungraceful shutdown. It's also useful for tinkering with u-boot
if that becomes necessary. FreeBSD is still a little undercooked around
the edges on the RPi series, but I've crashed mine more than a few times without serious problems.
hth,
bob prohaska
Ah, bingo. There's the solution.
I've put 'hw.fdt.console="NO"' into loader.conf. Now I see errors on the screen - and after fixing them up, it boots. Also, 'boot -s' now works,
which I'd assumed was intentionally disabled.
Mind you, I also see at the top of loader.conf a 'boot_multicons="yes"',
and maybe switching that to 'no' would have the same effect.
Who on earth thought switching errors mid-startup just to a serial
console was a good idea?!
'autoboot_delay="2"' also seems a useful idea for the pi4, which seems
to have a much slower countdown than the pi3.
But it looks as though I can stay with freebsd, which is a big win for
me; I've learned a lot about linux's firewall which is also a win.
And while typing this, I've pulled the plug on the rpi several times:
usual complaints about improper dismounts, but starts every time.
For me to make using it simple I wrote 2 scripts:
To block an IP address:
To test if firewall active type
<snip>
Simple ;-)
In comp.sys.raspberry-pi Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
Ah, bingo. There's the solution.
I've put 'hw.fdt.console="NO"' into loader.conf. Now I see errors on the
screen - and after fixing them up, it boots. Also, 'boot -s' now works,
which I'd assumed was intentionally disabled.
Is this on HDMI/USB console? If so it's a considerable step forward. I've always used serial consoles and never thought to try it.
Mind you, I also see at the top of loader.conf a 'boot_multicons="yes"',
and maybe switching that to 'no' would have the same effect.
Who on earth thought switching errors mid-startup just to a serial
console was a good idea?!
'autoboot_delay="2"' also seems a useful idea for the pi4, which seems
to have a much slower countdown than the pi3.
I've noticed the slow countdown, not sure if it's intentional or a bug.
As bugs come and go it's not a big itch 8-)
On 25/01/2022 10:41, Jan Panteltje wrote:
On a sunny day (Tue, 25 Jan 2022 08:48:54 +0000) it happened Mike Scott.....snip...
<usenet.16@scottsonline.org.uk.invalid> wrote in
<ssodho$2jk$1@dont-email.me>:
The hardest part
seems to be the firewall - I understand pf imperfectly but well enough;
iptables/firewalld seems to me a bit of a conceptual morass ATM.
For me to make using it simple I wrote 2 scripts:
Thanks for the info.
My major issue is that I make extensive use of pf's "table" feature.
I've recently found out that maps into "IP sets" with firewalld [I
think!], but the interactions between various rule sets I find confusing
ATM. But for reasons noted in my next posting following up BP's
comments, I'll put this on hold.
On 25/01/2022 18:46, bob prohaska wrote:
In comp.sys.raspberry-pi Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
Ah, bingo. There's the solution.
I've put 'hw.fdt.console="NO"' into loader.conf. Now I see errors on the >>> screen - and after fixing them up, it boots. Also, 'boot -s' now works,
which I'd assumed was intentionally disabled.
Is this on HDMI/USB console? If so it's a considerable step forward. I've
always used serial consoles and never thought to try it.
Yes, sorry; I should have said. HDMI video and a wireless USB
keyboard/mouse.
In comp.sys.raspberry-pi Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
On 25/01/2022 18:46, bob prohaska wrote:
In comp.sys.raspberry-pi Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
Ah, bingo. There's the solution.
I've put 'hw.fdt.console="NO"' into loader.conf. Now I see errors on the >>>> screen - and after fixing them up, it boots. Also, 'boot -s' now works, >>>> which I'd assumed was intentionally disabled.
Is this on HDMI/USB console? If so it's a considerable step forward. I've >>> always used serial consoles and never thought to try it.
Yes, sorry; I should have said. HDMI video and a wireless USB
keyboard/mouse.
Just to be clear, you're using single-user on FreeBSD with a
_wireless_ keyboard?
FreeBSD was anywhere near supporting native Pi wireless features,
whether bluetooth or wifi.
Thanks for writing!
bob prohaska
Yes, sorry; I should have said. HDMI video and a wireless USB
keyboard/mouse.
Just to be clear, you're using single-user on FreeBSD with a
_wireless_ keyboard?
USB keyboard that uses wireless to get to the USB...
That's a double surprise, I didn't think
FreeBSD was anywhere near supporting native Pi wireless features,
whether bluetooth or wifi.
It doesnt need to be,
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 174:56:48 |
Calls: | 7,915 |
Files: | 12,983 |
Messages: | 5,797,724 |