Bottom line: A decommissioned laptop makes a genuinely useful 10-15W idle NAS for one or two drives, but the USB-to-SATA bridge and its spin-down behavior, not the laptop, decide whether it survives 24/7 duty.

The laptop half of this problem is basically solved: pull the battery if it’s swollen, set a charge threshold if the firmware allows it, disable the display, and you have a machine idling in the low teens of watts with an x86 CPU that can saturate gigabit Ethernet for SMB or NFS. The storage half is where people get burned. A single USB 3.0 port or a spare SATA III header limits you to one or two drives, and the enclosure firmware determines whether the drive sleeps when idle, whether it wakes cleanly, and whether it drops off the bus under sustained load. I ran this setup for months before writing anything down, and most of the tuning was on the USB side.

Measure the idle floor before you commit

Do not trust the label on the power brick. Measure at the wall with the machine in its final state: drives attached, network up, services running. A cheap plug-in energy meter is enough; you want a 24-hour average, not a spot reading.

On the host, get a baseline from the package power counters and cross-check against the wall meter:

1
2
3
4
5
6
7
# Package and core power (Intel; AMD uses a different MSR path)
sudo apt install linux-cpupower powertop
sudo powertop --time=60 --html=/tmp/powertop.html
grep -E 'Pkg|Core|DRAM' /tmp/powertop.html | head -20

# Confirm the CPU is actually entering deep C-states
cpupower idle-info

If powertop shows the package sitting in C2 rather than C6/C7, something is waking it constantly — usually a USB device, a timer, or a NIC interrupt. That is your first clue that the idle figure will be worse than expected.

What I measured on a Haswell-era laptop (i5-4300U, 8GB, one 2.5” drive in a USB 3.0 enclosure, gigabit Ethernet): 11-14W at the wall with the panel off and the drive spun down, 16-19W with the drive spinning. A newer low-power platform will land lower; an old quad-core workstation laptop will land higher. Treat those as a range, not a spec.

The port reality: one USB 3.0 or one SATA III

Most decommissioned laptops give you one of two storage paths:

Path Link speed Typical real throughput Drives supported Notes
Internal SATA III 6 Gb/s 500-550 MB/s sequential 1 (2.5” bay) Best latency, native NCQ, clean suspend
USB 3.0 (5 Gb/s) via UAS 5 Gb/s 350-420 MB/s sequential 1 per port, 2 with a powered hub Bridge firmware is the wildcard
USB 3.0 via BOT (no UAS) 5 Gb/s 250-300 MB/s sequential same Higher CPU overhead, worse queueing
USB 2.0 fallback 480 Mb/s 35-40 MB/s same Fine for one stream, useless for parity rebuilds

The internal SATA bay is almost always the better home for your primary drive: native command queueing, proper power management, and no bridge chip to misbehave. Use USB for the second drive, and put it on a port that shares a root hub with as little else as possible.

Check what the bridge actually negotiated:

1
2
3
4
5
6
7
8
9
# List USB devices and confirm the bridge and negotiated speed
lsusb -t

# Check whether the kernel bound the UAS driver or fell back to usb-storage
dmesg | grep -iE 'uas|usb-storage' | tail -20

# Identify the SCSI host and confirm queue depth
lsblk -o NAME,TRAN,SIZE,MODEL
cat /sys/block/sdb/device/queue_depth

If lsusb -t shows the device at 480M rather than 5000M, you have a cable, port, or hub problem before you have a storage problem. If dmesg shows usb-storage instead of uas, the bridge is running in Bulk-Only Transport mode — usable, but expect higher CPU load and worse behavior under concurrent I/O.

UAS, quirks, and why some bridges need blacklisting

UAS (USB Attached SCSI) gives you real command queueing over USB and is what makes a USB drive feel like a SATA drive. Most modern bridges support it. Some older ones claim to and then corrupt data or reset under load. The kernel maintains a quirk list for exactly this; you can force a specific device back to usb-storage without touching the rest of the system.

1
2
3
4
5
6
7
8
9
# Find the vendor:product ID of the bridge
lsusb | grep -iE 'sata|jmicron|asmedia|realtek'

# Example: force a known-bad bridge back to usb-storage
# /etc/modprobe.d/usb-storage-quirks.conf
options usb-storage quirks=152d:0578:u

# Rebuild initramfs and reboot for the quirk to apply early
sudo update-initramfs -u

The :u flag tells the kernel to ignore UAS for that device. The trade-off is real: you lose queue depth and pay more CPU per I/O, but you gain stability on bridges that reset mid-write. Symptom to watch for is uas_eh_abort_handler or reset SuperSpeed USB device in dmesg under sustained writes — that is the bridge, not the drive.

Spin-down: the setting that decides reliability

A NAS that idles at 12W only idles at 12W if the drive is asleep. Laptop drives and most 2.5” NAS drives support APM and standby timers; 3.5” drives in a powered enclosure usually do too. The question is whether your bridge passes the commands through and whether the drive wakes cleanly.

1
2
3
4
5
6
7
8
9
# Install smartmontools and check current APM/standby state
sudo apt install smartmontools
sudo smartctl -a /dev/sdb | grep -iE 'APM|Standby|Power mode'

# Set APM level 128 (allow spin-down) and a 20-minute standby timer
sudo hdparm -B 128 -S 240 /dev/sdb

# Verify the drive actually sleeps after the timer expires
sudo hdparm -C /dev/sdb

Two failure modes matter. First, the bridge may not forward hdparm power commands at all — the drive stays spinning and your idle figure is 5-7W higher than expected. Second, the drive may sleep but the bridge does not, so the enclosure keeps drawing power and the host sees a device that never fully suspends. Check both with the wall meter: if hdparm -C reports standby but the meter does not drop, the bridge is the culprit.

Aggressive spin-down is not free. Every wake is a head load and a spin-up, and drives rated for 24/7 duty tolerate far more of these than laptop drives do. A 20-30 minute timer is a reasonable compromise for a lightly used NAS; a 5-minute timer will rack up load cycles fast. Watch smartctl -a for the Load Cycle Count and Start/Stop Count attributes and back off if they climb faster than you expect.

Filesystem and service choices that respect the hardware

You have one or two drives and limited RAM. That rules out anything that wants a large cache or heavy metadata writes. On a 2-drive setup, a mirrored pool is the sane default; on a single drive, a plain filesystem plus a tested backup beats parity you cannot rebuild.

1
2
3
4
5
6
7
# Single-drive ext4 with a conservative mount for spin-down friendliness
# /etc/fstab
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /srv/nas ext4 defaults,noatime,nodiratime,commit=60 0 2

# Two-drive mirror with mdadm (adjust device names)
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
sudo mkfs.ext4 -m 0 -L nas /dev/md0

noatime alone removes a surprising amount of write traffic. commit=60 batches metadata writes so the drive is not woken every few seconds. If you run Samba, set oplocks = yes and avoid logging every access; if you run NFS, keep the export options simple and mount with noatime on clients too. The goal is to let the drive stay asleep between actual transfers.

For the network side, a laptop’s gigabit NIC is usually fine. Disable Wake-on-LAN if you are not using it, and check that the NIC is not generating interrupts that keep the package out of deep C-states:

1
2
# Check interrupt rates that may be preventing deep sleep
grep -E 'eth|xhci|usb' /proc/interrupts

Pitfalls and how to diagnose them

  • Bridge resets under sustained writes. Look for uas_eh_abort_handler, reset SuperSpeed USB device, or tag# errors in dmesg. Fix with the usb-storage quirks entry above, or move the drive to the internal SATA bay.
  • Drive never spins down. Run hdparm -C after the timer; if it reports active/idle, the bridge is not forwarding power commands. Try a different enclosure or accept the higher idle figure.
  • Drive spins down but the meter does not drop. The bridge is staying powered. This is common on enclosures with a separate power brick; the only fix is a different enclosure.
  • High Load Cycle Count. Check smartctl -a attributes 4 and 193. If they climb by dozens per day, lengthen the standby timer or disable spin-down entirely and accept the watts.
  • USB port drops to 480M after a reboot. Cable or hub. Swap the cable first, then the port, then the hub.
  • Package stuck in C2. Usually a USB device or the NIC. Unplug devices one at a time and watch powertop; a misbehaving bridge can keep the whole package awake.
  • Filesystem errors after an unclean shutdown. Laptop power loss plus a USB bridge that does not flush its cache is a data-loss combination. Use a UPS if the machine matters, and mount with sync only if you can tolerate the write amplification.

FAQ

How much idle power should I actually expect from an old laptop NAS?

Measured at the wall with the panel off, one drive spun down, and gigabit Ethernet up, most Haswell-through-Skylake laptops land in the 10-15W range. Newer low-power platforms go lower; older quad-core workstation laptops go higher. The drive and enclosure add 3-7W when spinning, so the total is dominated by whether spin-down actually works.

Is USB 3.0 fast enough for a two-drive NAS?

For a single gigabit client, yes — a UAS enclosure delivers 350-420 MB/s sequential, well above what gigabit Ethernet can carry. The limit shows up during parity rebuilds or concurrent streams, where BOT-mode bridges and USB 2.0 fallbacks become painful. Put the primary drive on internal SATA if you have the bay.

Why does my drive keep waking up every few minutes?

Something is touching the filesystem. Common causes are atime updates, Samba or NFS logging, monitoring agents that stat the mount, and smartd polling too aggressively. Mount with noatime, check dmesg and iotop for the writer, and lengthen smartd‘s check interval.

Should I blacklist UAS for my enclosure?

Only if you see resets, aborts, or corruption under load. UAS is faster and lighter on CPU when it works. The quirk entry is a targeted fix for a specific bridge, not a blanket recommendation — apply it to the vendor:product ID that misbehaves and leave everything else alone.

Can I run more than two drives on a laptop?

Not reliably without external power. Bus-powered hubs will brown out under spin-up current, and a single USB 3.0 controller shares bandwidth across its ports. If you need more than two drives, a powered enclosure or a small dedicated board is the better path; the laptop stops being the right tool.

What happens to the battery if I leave it in?

It degrades, and a swollen battery in a machine running 24/7 is a fire risk. Pull it if the laptop runs on mains, or set a charge threshold in firmware if the vendor exposes one. Many business laptops let you cap charging at 50-80%, which is the best compromise if you want the battery as a poor man’s UPS.