SG-5100 won't boot after update 21.02.1 > 21.02.2
-
I have SG-5100 and after I updated it from 21.02.1 to 21.02.2 I had a short power outage. After that, the SG-5100 does not boot. In the console I can see that booting process stuck on:
Trying to mount root from ufs:/dev/ufsid/60429683c2d3f3dd [rw,noatime]...
WARNING: / was not properly dismounted
WARNING: /: mount pending error: blocks 34568 files 301
Dual Console: Serial Primary, Video Secondary
2021-04-22T16:02:38.529817+02:00 init 34 - - login_getclass: unknown class 'daemon'
2021-04-22T16:02:38.535456+02:00 init 34 - - login_getclass: no default/fallback class 'default'
ld-elf.so.1: Shared object "libedit.so.7" not found, required by "sh"
Enter full pathname of shell or RETURN for /bin/sh: uhub0: 8 ports with 8 removable, self poweredI tried to boot the old kernel, but it didn't help. Is there anything else I could try?
-
The SG-5100 is more like a desktop PC than a typical home router/firewall. Any pfSense installation absolutely hates a power disruption that results in an unplanned shutdown. That usually leaves the disk system corrupted. It's the same as just forcibly powering down your desktop PC, for example. Sometimes it comes back up, but sometimes it does not.
You need to run
fsck
several times to repair the file system. Here are some details from the official docs: https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html.And after you get the file system cleaned up and restored, you should immediatley order a UPS (Uninterruptible Power Supply) for your firewall and connect it up. Use the
apcupsd
ornut
package to allow pfSense to monitor the UPS state and shut itself down gracefully if the UPS switches to battery and the battery is nearing exhaustion. -
Thank you for responding to my post. I tried your recommendation from the link, but unfortunately it didn't help.
In the console menu, I selected option 3 (Escape to loader prompt) and after the system wrote this:
Type '?' for a list of commands, 'help' for more detailed help.
OKi wrote boot -s
The system started booting and stopped with:
Trying to mount root from ufs: / dev / ufsid / 60429683c2d3f3dd [rw, noatime] ...
WARNING: / was not properly dismounted
WARNING: /: mount pending error: blocks 34568 files 301
Dual Console: Serial Primary, Video Secondary
Enter full pathname of shell or RETURN for / bin / sh: uhub0: 8 ports with 8 removable, self poweredthen i entered fsck -fy /
and got the answer:
Enter full pathname of shell or RETURN for / bin / sh: fsck -fy /
2021-04-23T15: 13: 34.179025 + 02: 00 init 38 - - can't exec fsck -fy / for single user: No such file or directory
ld-elf.so.1: Shared object "libedit.so.7" not found, required by "sh"
2021-04-23T15: 13: 34.195622 + 02: 00 init 39 - - login_getclass: unknown class 'daemon'
2021-04-23T15: 13: 34.195918 + 02: 00 init 39 - - login_getclass: no default / fallback class 'default'
ld-elf.so.1: Shared object "libedit.so.7" not found, required by "sh"
Enter full pathname of shell or RETURN for / bin / sh:Did I do something wrong? Is there anything else I could try or do I need to reinstall pfSense?
Thank you again for helping me.
-
Well, that result (being unable to even see the directory) is not promising. If you have the install image, I would try reinstalling and importing your config. Here is a link to all the online documentation for your appliance: https://docs.netgate.com/pfsense/en/latest/solutions/sg-5100/index.html. There is a section in the docs about reloading pfSense.
If you need a current image, you can get one for no charge from Netgate by opening ticket here: https://go.netgate.com/. Just register with your email, provide the serial number of your SG-5100, and ask for a current install image.
-
This :
@krunob said in SG-5100 won't boot after update 21.02.1 > 21.02.2:
/ was not properly dismounted
has its own official video : youtube netgate fsck
If that video doesn't help, contact support, get a copy of the 'firmware' pfSense "21.02.2 " and go for the re install.
Btw : Ok not to use an UPS, but guarantee (yourself) that their will be no power outages any more. If you can't guarantee, take an UPS - you can share with your NAS and PC if you want. Or keep a USB drive with the latest firmware ready at hand (as soon as you have it, you'll know that you never gona need it).
-
I contacted Netgate support and got the install image, reinstalled the firmware and for now everything looks fine.
Thank you very much for your help and advice on using the program and equipment.