1. Current Location: Home >  NAS >  The NAS wouldn't boot up after a call came in, so I stayed in the BIOS until one o'clock in the morning.

The NAS wouldn't boot up after a call came in, so I stayed in the BIOS until one o'clock in the morning.

Troubleshooting the automatic power-on of NAS when a power outage occurs: BIOS power recovery mode options, sequence of jumpers and system settings, and three-layer troubleshooting paths

This incident was a wake-up call for me when the circuit breaker tripped twice in the summer. The first time the circuit breaker tripped was in the afternoon. My family closed the circuit breaker, and the devices in each house turned on on their own one after another, but there was no movement from the NAS. I didn't take it seriously at the time. I just walked to the study and pressed the power button. The second time I danced in the middle of the night, I didn’t find out until the next morning: The backup of the photo album was interrupted all night, and the N100 with Immich hanging on it at home lay down from beginning to end, and it would not stop when the call came. Two days add up to more than ten hours of free time. My wife stopped me by saying, "This machine won't turn on even when the power is turned on" - yes, why not?

In my impression, the router and the optical modem never need to be taken care of. They can survive by themselves when the power is cut off or when the power comes on. The NAS is also plugged in, so why does it need to be pressed? Just for this reason, I squatted in the study all night, turned the BIOS until one o'clock in the morning, and figured this out completely. Conclusion first: Whether it can start automatically when a call comes in is not in the NAS system at all, but at the hardware level. Feiniu Qunhui can't control it, nor can Windows PE, only the BIOS can.

Make it clear first: This is a matter of hardware and has nothing to do with the NAS system.

My initial train of thought was completely off track. There is a scheduled power-on setting page in the Feiniu system. I thought that if I set it to power on at eight o'clock every morning, even if the power goes out in the middle of the night, it should wake up by itself at eight o'clock. The night after setting up the test, I unplugged and plugged it in again, but the machine didn't respond - scheduled power-on is a system-level matter. When the power is cut off, the system will be gone. Who will perform the "on-time power-on"? This doesn't make sense logically, and I actually believed it for half a month.

The real switch is in the BIOS, and its name is usually Restore AC Power Loss, which translates to "what to do after the call comes in." It has three gears: Power Off After an incoming call, keep the phone turned off and wait for someone to press, Power On When a call comes in, it will turn on immediately. Last State It is to remember the state before the power outage - when the phone was on before the power outage, it will be turned on when the power is turned on. If it was off before the power outage, it will continue to be off. A machine like NAS that hangs up 24 hours a day needs the second or third gear. The one I have at home is the first one by default. No wonder it lies prone when the power comes. Why don't you need to worry about the router's optical modem? There is no concept of "waiting for someone to click" in their firmware. It starts working as soon as it is powered on. Only complete computers like NAS are "reserved".

BIOS toggle options, one name with three ways of writing

After entering the BIOS, the screen is full of English, and I can find the method in a regular manner. For desktop motherboards, under the Advanced or Chipset category, scroll to find the entries with the words AC Power, Restore On AC, and After Power Loss. ; Some small hosts such as N100 are hidden in Power Management. ; Some motherboards are tucked into the South Bridge submenu of Chipset, and you have to click one level down. Mine was under the chipset in Advanced, and it leaked the first time. I exited and entered again before catching it.

Different manufacturers have different names. I have collected three common ways of writing them for you.:

Motherboard/machine option name Location
ASUS motherboard Restore AC Power Loss Advanced/APM Configuration
MSI/GIGABYTE AC Back/After Power Failure Settings or Chipset
N100 bare board small host Power On After Power Failure Advanced/Chipset or Power Management
Synology finished machine There is no such option (factory logic fixed) —

Select Power On and press F10 to save and exit. Don’t be happy after completing this step, you need to test it in practice: With the machine on, just unplug the power cord and plug it back in for three seconds to see if it lights up by itself. Don't feel bad about the machine. The damage to the hardware caused by turning the power on and off is less than expected, and it is gentler than the two tripping times in the summer. After I tested the machine, I got up on my own. The fan turned on, the lights came on, and I entered the system. At that moment, I dared to say that the problem was fixed.

Not only does the BIOS promise, some machines also require battery power.

If you can't afford it after you finish it, look down at this level. The second pitfall was when I used that old ThinkPad as a NAS. There is also Restore on AC Power Loss in the BIOS. I also set Power On, and it still stays the same after unplugging and plugging it back in. After digging around, I found out that this option in the notebook BIOS governs "automatic shutdown when the battery is exhausted when the battery is plugged in, and whether to restore when the external power comes back." Its default logic is to protect the battery. When it detects that the battery is still there and the power is still there, it is considered that there is no need to turn on the computer on its own. If you use a laptop as a NAS, this option will most likely be useless. It will only work if the battery is always plugged in and the external power supply is not removed. I wrote the complete account of this pitfall in the article about using a retired notebook as a NAS. There is a link at the end of the article.

The third power issue is the power-on sequence of the motherboard. In some cases, the power button wiring cap is loose, and the front panel buttons of the case are stuck. The power-on auto-start signal is pushed back by the button status, and the machine turns off when clicked. The judgment method is simple: Look at the power light on the chassis when the power is turned on. If it lights up for half a second and then goes off, it's probably because the keys are stuck. Remove the front panel and straighten out the movement of the keys. There is also a false power mark on the old power supply. When a call comes in, the hard disk collectively seeks, the 12V voltage drops, and the motherboard protection does not turn on the computer. This kind of problem cannot be turned on even when pressed. It is a matter of the power supply, not the BIOS. No matter what settings are made before changing the power supply, it is useless.

For the NAS system, just add some insurance.

Now that the BIOS has been cleared, there are still two things worth doing on the system side. The first thing is that Feiniu’s scheduled power-on setting can be kept as a guarantee.: If the motherboard really can't find the option (some OEM machines really don't provide it), let the system layer wake up once a day at a fixed time. Although it can't save the "wake up immediately when a call comes in", it can reduce the empty window from more than ten hours to once a day at most. This is contrary to the idea of ​​scheduled router restarts - the router wants to be powered on less frequently, while the NAS is concerned about not being offline for too long and not reversing the direction.

The second thing is to "call someone if you can't get up" for important containers and backup tasks. The most painful part of what I learned during those two nights was not lying on the machine, but the fact that no one knew about it. Immich's photo album backup was down all night, and I didn't find it until I checked my phone at noon the next day. Later, I moved the uptime monitoring set over. When the NAS was offline for more than ten minutes, a notification was pushed to the mobile phone. I wrote all about how to match this set of things in the silent failure article. The link is at the end of the article. At least people know that the machine is lying down, which is more important than the machine standing up on its own.

Who doesn’t have to do this at all?

After I repaired this one, I thought about it and realized that not every NAS is worth the trouble. The finished Synology machine is designed to be unattended when it leaves the factory. The auto-start logic when a call is received is solidified in the firmware. It works when plugged in. There are no switches to set, and naturally there are no pitfalls to step on. It's also relevant for those who use UPS - when the power grid trips, the NAS does not experience a power outage at all when the UPS is on top, as long as the UPS itself does not sustain itself until it is exhausted (this is the accident where the RAID was rebuilt to 62% and tripped in the UPS article, the link is at the end of the article). The ones who really need to take the lead are the owners of the three types of self-assembled NAS: N100 small host, retired notebook, and DIY bare-board build machine.: The BIOS default values ​​of these machines are varied, and most of them are shut down by factory default.

Machine type Automatically activate when incoming calls Do you want to take action?
N100/DIY small host Look at the BIOS default values. Most of them shut down by default. If necessary, enter the BIOS and set Power On
retired notebook Options are often dumb With the battery plugged in regularly, don’t expect too much.
Finished product Synology/QNAP Factory cured, ready to work when plugged in Need not
NAS with UPS The trip was covered by UPS No, but set the UPS to shut down safely before running out of power

Three steps to finish: Enter the BIOS and set Restore AC Power Loss to Power On ; Unplug and plug in for actual measurement ; Configure an offline alarm for the NAS. After completing these three steps, next time the circuit breaker trips, you can drink soy milk and click on your phone the next morning to see the notification that "NAS is back online" instead of staring at the backup that was down all night like I did.

Here are some related links:: The complete experience of using a retired ThinkPad as a NAS is here This article , where are all the pitfalls of charging battery for the notebook? ; The accident and configuration of UPS automatically shutting down before exhaustion The article about NAS equipped with UPS ; The whole process of silent backup failure and mobile phone alarm is as follows This article ; The timer switch account is here here , and this article are pros and cons of each other. When it comes to electricity, the NAS can't control the incoming calls, it can only control the way it looked before lying down.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《The NAS wouldn't boot up after a call came in, so I stayed in the BIOS until one o'clock in the morning.》
Article URL: https://www.shunot.com/en/nas/1598.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow