NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ChunkySocks
Sep 04, 2025Guide
sudo: unable to write to /var/lib/sudo/ts/admin: No space left on device
I've SSHed into my NAS and got this message: sudo: unable to write to /var/lib/sudo/ts/admin: No space left on device This has all seemed to start after doing some tinkering with the Logitech...
ChunkySocks
Sep 05, 2025Guide
So it looks like I've corrupted the filesystem on the system partition.
Is this repairable?
btrfs fi show /dev/md0
gives
Label: '758ad464:root' uuid: f08a0f90-adfd-47e1-a519-189247895ced
Total devices 1 FS bytes used 1.14GiB
devid 1 size 4.00GiB used 3.67GiB path /dev/md0
Now if I input
df -h
the results are
Filesystem Size Used Avail Use% Mounted on
udev 10M 4.0K 10M 1% /dev
/dev/md0 4.0G 1.3G 2.4G 35% /
tmpfs 491M 4.0K 491M 1% /dev/shm
tmpfs 491M 3.7M 487M 1% /run
tmpfs 246M 4.0M 242M 2% /run/lock
tmpfs 491M 0 491M 0% /sys/fs/cgroup
/dev/md127 2.8T 1.5T 1.4T 52% /data
/dev/md127 2.8T 1.5T 1.4T 52% /apps
/dev/md127 2.8T 1.5T 1.4T 52% /home
so there's more space on /dev/md0 but the LLM is now advising that I run
btrfs check --repair
from Ubuntu that's installed on a USB drive but is it possible to amend the boot order in the BIOS using SSH?
Thanks for any assistance.
StephenB
Sep 05, 2025Guru - Experienced User
ChunkySocks wrote:/dev/md0 4.0G 1.3G 2.4G 35% /
This is normal - did you remove files to bring it down to this level?
ChunkySocks wrote:btrfs check --repair
Don't. The --repair is quite risky, so it is good to avoid doing if you have other options. And as Sandshark says, there is no evidence that the file system needs repair.
Instead run this (using ssh on the NAS, logged in as root) :
btrfs balance //
If you get an error on the balance, please post the details.
ChunkySocks wrote:I only see ...
Which is what I see on bothe new discussions and replies. What format options are you looking for????
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!