$linuxjunkies
>
::

Maintenance & Troubleshooting

Updates, logs with journalctl, disks and LVM, boot failures and fixing what broke.

Maintenance & Troubleshooting· 7 min read

How to Reset the Linux Network Stack

Reset a broken Linux network stack without rebooting: restart NetworkManager or systemd-networkd, flush the DNS cache, renew DHCP leases, and clear stale routes.

IntermediateUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 8 min read

How to Recover Deleted Files on Linux with PhotoRec

Accidentally deleted files on Linux? PhotoRec scans raw disk sectors to recover documents, images, and more — no filesystem needed. Here's exactly how.

IntermediateUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 7 min read

How to Fix dpkg "Broken Packages" Errors

Fix dpkg broken package errors step by step: configure pending packages, repair dependencies with apt --fix-broken, force-remove stuck packages, and rebuild the dpkg database.

IntermediateUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 6 min read

How to Fix "Could not get lock /var/lib/dpkg/lock"

Fix the /var/lib/dpkg/lock error safely: identify the process holding the lock, handle stale files, and repair the package database without causing corruption.

BeginnerUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 7 min read

How to Recover a Forgotten Root Password

Forgot the Linux root password? Boot into single-user mode or use rd.break to reset it safely, with steps for Debian, Fedora/RHEL, and Arch.

IntermediateUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 8 min read

How to Read Logs with journalctl

Learn to filter systemd journal logs by unit, time, and priority with journalctl, follow logs live, and manage disk usage on any modern Linux system.

BeginnerUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 8 min read

How to Mount and Unmount Drives

Learn how to mount and unmount drives on Linux using mount, umount, and /etc/fstab with UUIDs for reliable, persistent automounting across reboots.

BeginnerUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 7 min read

How to Manage Services with systemctl

Learn to start, stop, enable, disable, and mask Linux services using systemctl, plus how to read failures and diagnose problems with journalctl.

BeginnerUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 9 min read

How to Manage Disk Partitions on Linux

Learn to create, resize, and format Linux disk partitions using fdisk and parted, covering GPT, ext4/xfs/btrfs filesystems, fstab, and safe resizing procedures.

IntermediateUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 8 min read

Linux Troubleshooting: A Practical First-Response Guide

A repeatable first-response method for Linux problems: read the error carefully, query journalctl, isolate the triggering change, search precisely, and ask for help effectively.

BeginnerUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 9 min read

How to Keep Linux Updated

Learn how to safely update Debian, Ubuntu, Fedora, RHEL, and Arch Linux systems using apt, dnf, and pacman — including how to hold or exclude packages.

BeginnerUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 9 min read

How to Free Up Disk Space on Linux

Recover gigabytes on any Linux system by clearing package caches, trimming the systemd journal, removing old kernels, and hunting large files with ncdu.

BeginnerUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 9 min read

How to Diagnose High CPU and Memory Usage

Learn to diagnose Linux CPU and memory problems using top, htop, load average, and the OOM killer log—from spotting runaway processes to preventing OOM kills.

IntermediateUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 8 min read

How to Fix a Broken GRUB Bootloader

Fix a broken GRUB bootloader by booting from live media, chrooting into your installed system, reinstalling GRUB, and regenerating grub.cfg — covers BIOS/MBR and UEFI/GPT.

IntermediateUbuntuDebianFedoraArch
Maintenance & Troubleshooting· 8 min read

How to Check Disk Health with SMART

Learn to use smartctl to read SMART attributes, run drive self-tests, and identify early warning signs of HDD and SSD failure before data loss occurs.

BeginnerUbuntuDebianFedoraArch