May 20, 20206 yr Hi, I am using my unRaid on Lenovo W530 laptop. In linux there is module called power module, which allows me to check if my computer is running on AC or battery. So the battery works like a very good ups. How can I add/enable power module in unRaid to check if I have AC adapter connected ? Second question is, where to put mu custom script to be started at unRaid boot. I would like to write a bash script that will check AC adapter connected and will shutdown unraid server after 5 minutes of no AC plugged in. I think this is very simple task, but I am not familiar with unraid strategy, so i don't know where to put it. In regular linux I would insert launch of my script in /etc/rc.local and script itselfe in /root/script/battery.sh. But what is the unraid way to do this?
May 20, 20206 yr Unraid is running totally in memory, you would need to put a startupscript somewhere in /boot.. Wondering however... What is your use case for running unraid on a laptop ?
May 20, 20206 yr Author It is my home server for nas, dlna (streaming movies to TV), owncloud (sync data between stationary computer and my work laptop), dude (mikrotik CHR server). Laptop is power efficient, has built in huge ups (battery), takes 1,5 U in my rack. It is perfect for server. W is workstation series with i7, two graphic cards, 32GB ram, 2 USB3.0 slots and two internal 2,5 inch hard drives and msata 512 GB drive for VMs and cache. And also it is few years old computer, so I can sell it for little money or have great server at no cost. I will attach photo (2 usb drives attached under the shelf and fan). I think for home media server second hand, profesional series laptop is perfect and cost effective solution. Therefore power module would be neet solution for ups. I think unRaid could provide package with modules compiled for their kernel, so one can copy only that specific module. I understand keeping system as light as possible, but at users own risk there schould be a way
June 5, 20224 yr @Kacper Im looking to get into using Unraid for a storage and home automation and had been thinking of repurposing my old W530 to avoid having to buy an additional pc. I was about to give up on the idea until I randomly ran into your post. Based on your experience, would you recommend using my W530 if this is my first time using Unraid? Im fairly new to the server space and my onlyexperience is with an off the shelf Synology NAS.
May 11, 20251 yr Author Hi sorry for not responding. Yes my W530 works very well since 2020 i think. I had to move it outside rack box, because drives were overheating and failed twice. Now it is mounted to the wall, much cooler and is fine. I have attached TPU google Coral + Frigate as my home DVR with people detection. I am running many dockers and one virtual machine with mikrotik for dude monitoring. It is working quite well. I have 3 hdd drives installed as usb drives and 2+1 drives inside the pc. I would recommend ssd to put inside laptop, as hdd`s are getting quite hot. So basically my setup is: Array: 1 ssd 2.5 in primary drive bay - more often accessed data (owncloud) 1 hdd 2.5 in cdrom drive place - movies, installs, music, etc. 1 msata drive as cache drive for the array 2 hdds on usb - one drive to expand space of the array, and one drive is for parity. 1 spare drive attached by unassigned devices plugin for dvr recording. It is quite important to backup thumb drive with unraid install, as it tends to fail. I have tried many brands and had failure twice already. Good thing is that it was usually accessible when connected to another machine to copy files from it, however it was not booting. Even nvidia gpu is passed to frigate docker and is using it for video decoding from h264 streams, which reliefs cpu a lot. Edited May 11, 20251 yr by Kacper
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.