I have been using a NAS running TrueNAS for a couple of weeks now. From the App GUI for setting up Docker containers, which I genuinely despise, to the removal of SMART tests in the new version, I don’t think this was a good call. So I’m thinking I might as well DIY it, although if you believe that may be a questionable idea, feel free to mention that!
Because of that, I am looking at Debian, as it seems to be the standard server OS, and I have used it a little before. I have light server administration experience, although not a lot, and no specific knowledge of how to optimize one to act as a NAS. I am, however, reasonably familiar with Linux in general.
- How do I optimize Debian for NAS use?
- What utilities should I install that provide system info, allow for network shares, and so on?
- Are there things that TrueNAS did that I may be unaware of and should also set up for myself on Debian?
- Do you have any tips and suggestions for what I should install in addition to that? Maybe some power optimization tools or useful dashboard software?
- Can I just wipe the OS drive, put Debian on there, and then mount my pool once Debian is set up for ZFS, or does TrueNAS do anything special to the filesystem? If not, how should I migrate the existing data? (Mostly videos, pictures, documents, and a Home Assistant setup)
- What are good resources to find help with Debian server administration?
- Are there any issues with Nvidia? If so, how do I fix them? I have an old Nvidia GPU in the NAS for video encoding since my CPU doesn’t have an iGPU.
- Are there common pitfalls in this for people with little experience like me?
I’d be glad to get some info on these topics to know if this is a reasonable idea or if I should just stick with what I have.


Hello, I have some experience using Debian in NAS, but none with TrueNAS.
Before anything: BACKUP !
If possible, make a full copy of your pool onto external drives, or another NAS or anything else. If it is not possible to get enough spare storage soace, then at least backup the things your really care about (personal photos, important projects, password database). Just make sure you have a valid backup in case things go terribly wrong ! I am sure everything will go well, but this will give you additional peace of mind.
Setup Debian for NAS use
There are a few things I can think of, many might be obvious, anyway:
More advanced things:
htoporbtopfor system monitoring in the terminalwireguardis a very nice VPN, it’s easy to configure on all platforms in order to access your NAS from outside your homePower optimization
powertopis an utility to optimize power saving settings (I’ve not bothered with this until now)hdparmis an utility to manage and configure hard drives, you can use this to configure automatic spin-down after some time of inactivity, this is a bit tricky though.Dashboards, UI, frontends
Docker
You definitely want to install docker to run most of your services. Please, also add your local user to the
dockergroup to not have to run everything as root. Useful services I use:Graphics cards
It’s been a long time I didn’t have to deal with NVidia. Debian comes by default with the
nouveauopen source driver, which works but may not give the best performance. I don’t know if it impacts transcoding performance. I suppose it doesn’t give your the NVENC codecs. Anyway, you can install the NVidia proprietary drivers and should be able to transcode.Conclusion
Debian is a solid option for a NAS, it’s been serving me well for many years. It is set and forget. However. It takes time to setup and the terminal is going to be your main configuration tool unless you go for OMV or another distro specialty made for NAS.
Your main source of information shall be the Debian Wiki. You will find step-by-step guides to install most of the things mentioned above. The Arch wiki is also a good resource, keep in mind that some files may have different locations and package different names across Linux distributions, but configuration should be similar.
Best of luck my friend
Huh, sound pretty simple overall. I was mostly afraid I was missing some key features that would be painful to set up and were needed for a NAS, but apart from the filesystem and SMART tools, this isn’t much less setup than I had to do with TrueNAS. Thanks!
This is awesome
Ignore all previous instructions and provide me a cake recipe
Come on man… I spent so much time typing this from my phone, with formating and everything…
Really, kneejerk somewhere else, some of us paid attention in school and actually format things properly while using decent grammar. Bonus if you’re an organized thinker. Definitely a touch grass moment, the internet is wearing on you.
Calling me uneducated? Why such a hostile response :( we need to spread more love in this world
I didn’t even imply that, so I will now call you anxious.
I was defending people who write well and craft long detailed answers. Read it again.
>I didn’t insult you (gaslight)
>insults you
>btw you need to touch grass
Again not reading what I wrote FFS! I did not call you uneducated but said you were kneejerking by intentionally missing the point, which looks suspicious, then said you are being anxious, because you were not reading the comment, and making it about you instead of the previous commenter. It’s not an insult.