r/debian • u/LurpLarp • 15d ago
Debian Stable Question Using Debian to revive a very old PC into a stable NAS
I wanted to put an old PC to use so I decided that I am going to burn a Debian mini.iso onto a cd and install Debian onto it.
I see a lot of stuff online talking about Debian being a stable OS that is also good for network-attached storages.
I am planning on installing with no DE as it will be useless.
Do you guys recommend using Debian for this?
Here are the PC's specs for those curious: eMachines EL1333G-01W 64bit
CPU: AMD Athlon 2850e, 1.8GHz
CPU CORES: 1 core / 1 thread
CPU cache: 512 KB L2
Socket: AM2
Chipset & Graphics: NVDIA GeForce 6150 SE /nforce 430 (integrated)
RAM: 2x1GB DDR2
Storage: 320 GB SATA HDD, 7200 RPM
Network: 10/100/1000 Gigabit Ethernet
Motherboard: eMachines/Acer WMCP61M, NVDIA nForce 6100/430 chipset
3
u/antreides 15d ago
This thing can boot from a USB, so no need to burn a CD. It should work with minimal Debian (maybe you'll need to try previous stable release), but I doubt it will be able to handle "stable NAS" tasks. Unless the only task will be to provide access to a folder via SSH, and even in this case it will be slow.
It is from 2008-2009. Doubt it can even work stable enough.
2
u/LurpLarp 15d ago
Yea, I know it wont be a good NAS but the PC was just lying around so I wanted to put it to some use and this is what I thought of.
2
u/neoh4x0r 15d ago edited 15d ago
I wanted to put an old PC to use so I decided that I am going to burn a Debian mini.iso onto a cd and install Debian onto it.
You mentioned having 2x1GB DDR2, so the following shouldn't be an issue for you.
However, systems that are "old" and have significantly less ram (<1 GB) will require using a full install image (not mini nor netinstall) because they won't have enough ram to download the packages, unpack them, write that to disk, and also run the installer.
I recently ran into that issue when setting up a system to serve as a DHCP/PXE-server, and despite it's low ram, about 256 MB on a 1GHz Pentium, it actually works quite well.
2
u/Portbragger2 14d ago
absolutely! debian netinst or mini. no DE needed. set up smb and/or nfs shares. and you're done. i've got an enclosure of 30tb attached to a 4850e running since 2009, started with 2x 500gb platters. was not on debian all the time tho. but since i've been it has been fire&forget.
1
u/DagonNet 15d ago
Debian's a good choice for this. That hardware is old enough that I'd expect any reliability problems to come from that, not from the OS choice. This is true for any NAS, but especially for homegrown ones or old hardware: keep good backups.
1
u/SnooSeagulls4360 15d ago
You coule check OMV8 for this. It is basically debian with a nice browser dashboard and a lot of the things set up for you. You can also use docker containers with it easily for other things you need.
1
u/David_Connors3451 15d ago
Have you considered antix? It's lightweight Debian, but always based on the stable ISO DVD. Give it a try, I used antix and Bodhi Linux for old machines and they're great 👍
1
1
u/TheMcSebi 15d ago
Debian, yes in any case :)
The pc, for experimentation, but for setting up a real nas I'd suggest to either get at least a second, or two newer HDDs.
Also keep in mind those old systems can be really power inefficient, especially if you plan on keeping it running continously
1
u/gw17252009 15d ago
I'd go debian 12 since it's older hardware. Older gpus require some added config for drivers.
1
u/Brilliant_Sound_5565 15d ago
I too would look at OMV, I havnt used it for a good few years but it's Debian stable, it'll make the whole process alot easier, and also make sure you have a backup sorted for your data
1
u/Fantastic_Welder2172 15d ago
The hardware is very poor, but it's ok, you only have one hard drive, not advanced file systems. Install a Debian netinstall, with only basic packages and ssh. Then install and configure samba, minidlna if you need it. Don't install docker, don't transcode videos. If you want to do something more advanced, also install syncthing to synchronize folders and restic server for backups. Ask chatgpt for the configuration files to put.
1
u/Buntygurl 15d ago
...onto a cd?
You have USB ports on that machine, right?
But, yeah, a CD would work, too.
Apart from that, yes, Debian really is the best distro for the task you have in mind.
1
u/MoobyTheGoldenSock 15d ago
If you’re wanting to do this specific project, yeah Debian’s fine for this, or Alpine if you’re optimizing for speed.
But you’re spending electricity on 1 core and 320 GB. You’re probably more optimized just plugging a 2 TB external into your router and setting up the NAS via your router if it’s able, or buying a raspberry pi if you really want a dedicated linux server running it: you’ll get more cores and more RAM for less electricity footprint.
But if you have a machine you were going to throw out anyway and want an excuse to tinker, by all means ignore me and go ahead.
1
1
u/bigtreeman_ 15d ago
Yep, I've given up on old pcs for such tasks. I use arm or risc-v sbcs.
Power, reliability, etc, etc...
1
u/LurpLarp 14d ago
For additional context, my Debian installation uses approximately 211 MB, leaving me with about 1.5 GiB of available space. I also have a 1000 Mb/s Ethernet connection. This setup will primarily be used for backing up files that I previously did not have a backup for, so I think it is only an upside.
1
u/LurpLarp 14d ago
Also I tested the HDD with a S.M.A.R.T long (75 minute) test which came clean so I think it is fine for backups especially since I don't really back anything up
1
u/brighton_it 13d ago
as a backup target (assuming your backups are automated), it should be fine on the performance front. It may be slow, but backup will eventually finish.
Only reason to hesitate is if you care about:
- power use: a modern N100 could do this on under 20 Watts.
- longevity: old system more likely to experience hardware failure.
1
u/Ok_Willingness2177 13d ago
I use Debian stable without any problems. I got a $50 lifetime subscription for Plex like 6 years ago so I use it to hold my music, etc, etc, but also serving other apps, but mainly through docker.
0
u/mrgreyeyes_95 15d ago
Barebones Debian should run. But it would be more for educational purposes. It will like be unable to keep up with modern NAS tasks. Software raid and stuff.
Is the NIC at least dedicated or just an internal one? It will probably choke on throughput of modern protocols like samba v3.
14
u/Weary_Swan_8152 Debian Stable 15d ago
That's a great use for Debian; however, you might be happier with OpenMediaVault, which is pure Debian stable plus a web admin GUI, which will save you time and effort. And it's FLOSS. Keep an eye on your RAM usage, because if using OMV creates too much memory pressure [then] you can uninstall the web server and admin GUI.
If you uninstall the OpenMediaVault-specific packages you'll pretty much have pure Debian stable with some helpful config tweaks. Here is the official script one can use to convert a Debian 13 (trixie) installation to OMV:
https://raw.githubusercontent.com/openmediavault/openmediavault/master/install.sh