Names and Name Servers in Linux

Name resolution is the process of turning a hostname into an IP address. When a Linux machine cannot reach a host by name, check DNS settings before assuming the network itself is down. Check resolver configuration This shows the name servers currently being used by the system. On many modern distributions this file may be … Read more

Accessing Remote File Systems in Linux

Linux can access remote file systems in several ways. The right method depends on whether you need temporary file copy, interactive browsing, or a mounted network location. Copy files over SSH For one-off file copies, scp or rsync over SSH is usually simpler than mounting a remote filesystem. Mount with SSHFS Unmount it when finished: … Read more

Can’t Mount Root Filesystem in Linux

A “cannot mount root filesystem” or “can’t mount root fs” error usually means the kernel cannot access the root partition during boot. This can happen because of an incorrect root device, missing storage driver, filesystem issue, or bootloader configuration problem. Things to check first Was the disk or partition layout changed recently? Was the kernel … Read more

Reading a Foreign File System in Linux

Linux can read many different file systems, but support depends on the kernel, installed packages and whether the file system was cleanly unmounted. Identify the device and file system This shows block devices, mount points and detected file system types. Create a mount point Mount read-only first Mounting read-only is safer when checking an unknown, … Read more

Resizing Linux Filesystems: Safe Checks Before You Start

Resizing a Linux filesystem can be useful when a partition or logical volume has become too small, but it should be treated as a careful maintenance task rather than a routine command. Check the current layout These commands help confirm the device name, mount point and filesystem type before making any change. Important safety notes … Read more

Mount NTFS Drives in Linux

Linux can read and write NTFS drives using the NTFS driver available in modern distributions. This is useful when accessing Windows partitions or external drives. Identify the device Confirm the device name and filesystem type before mounting. Do not guess device names. Create a mount point Mount the NTFS drive Replace /dev/sdXN with the correct … Read more

Write-Protect Important Files in Linux

Linux file permissions can reduce accidental changes, but for some files you may also want an extra layer of protection. On filesystems that support it, the immutable attribute can help. View file attributes Make a file immutable An immutable file cannot be modified, renamed or deleted until the attribute is removed. Remove the protection Use … Read more