Disable Auto-Mounting in Linux Mint Cinnamon
null
Bind mounts let you mount a directory or file at another location in your filesystem hierarchy without duplicating the underlying data. They’re useful for directory reorganization, containerization, and working around path constraints. Here’s how to configure them in /etc/fstab. Basic Syntax The /etc/fstab syntax for bind mounts is straightforward: /source/path /mount/point none bind 0 0…
When deprovisioning Linux VMs in public cloud environments, disk blocks may be reallocated to other customers if the provider doesn’t properly wipe storage. This is a legitimate concern for security audits, compliance validation, and understanding data exposure risks. Quick Recovery Method The most straightforward approach uses dd and strings to extract readable data from block…
There are times when you need direct access to a DomU’s disk from Dom0—for recovery, backup, or maintenance. This is straightforward with Xen’s block device tools, though the commands have evolved depending on your Xen version. Attaching the Disk The method depends on which Xen toolstack you’re using. With xl (Xen 4.1+, recommended): xl block-attach…
When a program appends data to a file, you need to know how much space remains on the partition containing that file. This determines whether the file can grow or if you’re about to hit a capacity limit. Quick answer To find available space for a file, use df: df -B1 /mnt/logs/app-log.log | tail -1…
Accessing Linux filesystems from Windows is useful when dual-booting, migrating data, or recovering files. Read-only access is essential to prevent accidental corruption of ext4 metadata and data. Why Read-Only Access Matters Ext4 is designed for Linux environments. Windows drivers lack complete understanding of ext4 journaling, extended attributes, and other advanced features. Writing through an incomplete…
A hard link is an additional directory entry pointing to the same inode as the original file. Unlike symbolic links, hard links share the same inode number and have identical permissions, ownership, and content. To find all hard links to a file, you need to locate every directory entry with the same inode. Using find…
LVM (Logical Volume Management) abstracts physical storage into logical volumes, giving you flexibility to resize filesystems, snapshot data, and manage disk space without downtime. It sits between your physical disks and the filesystems you mount. The three core LVM concepts are: Physical Volumes (PVs): Physical disks or disk partitions Volume Groups (VGs): Collections of PVs…
NFSv4 significantly simplifies network exposure compared to NFSv3. Where NFSv3 requires managing multiple dynamic ports (mountd, statd, lockd), NFSv4 uses only port 111 (rpcbind) and port 2049 (NFS). This makes firewall configuration and port forwarding straightforward. For production environments, consider implementing Kerberos authentication (krb5, krb5i, or krb5p) instead of relying solely on network-based access control….
When you try to unmount a filesystem with umount, Linux may report “device is busy.” This is a safety mechanism — the kernel blocks unmounting when processes or kernel threads are actively accessing the partition or holding open files on it. Forcing an unmount without understanding what’s using the filesystem risks data corruption and data…
When writing to disk, you need to know if space is available — especially in systems software, daemons, and critical applications. The POSIX statvfs() call provides filesystem statistics across all POSIX systems, making it more reliable than Linux-specific alternatives like statfs(). The statvfs() API Include the required header: #include <sys/statvfs.h> Function signature: int statvfs(const char…
The /etc/fstab file defines how Linux mounts filesystems at boot and controls mounting behavior for both the system and individual users. Understanding its format and options is essential for reliable storage management. File Format and Fields Each line in /etc/fstab represents one filesystem. Fields are separated by whitespace (tabs or spaces), and lines beginning with…
Playing video files stored on a remote server without downloading them locally is practical with modern tools. Whether you’re accessing a home NAS, media server, or remote workstation, SSH combined with a media player gives you several approaches depending on network conditions and your use case. We’ll assume a file located at ~/movie.mp4 on user@example.org….
LVM abstracts physical storage into logical volumes, letting you resize filesystems online, add drives transparently, and manage capacity without downtime. This guide covers the most common task: extending a mounted ext4 filesystem when you need more space. Prerequisites Online extension requires the resize_inode option enabled on your ext4 filesystem. Check this first: tune2fs -l /dev/vg/lv_home…
This guide sets up OpenLDAP for centralized authentication and NFS with automount to provide unified home directories across a cluster. The setup uses modern OpenLDAP backends and current NFS4 best practices. System Environment Server: LDAP and NFS: 10.0.0.2, Fedora 41 x86_64 Base DN: dc=lgcpu1 Clients: Range: 10.0.0.1/24, Fedora 41 x86_64 LDAP Server Setup Package Installation…
When /etc/fstab contains errors or your hardware configuration changes, the system may fail to boot or hang during the mount phase. You can recover by modifying kernel parameters at boot time to bypass automatic mounting, then repair the configuration. Method 1: Boot to Single-User Mode Single-user mode skips mounting filesystems listed in fstab, letting you…
rclone is the modern standard for mounting Google Drive on Linux — it’s actively maintained, handles authentication reliably, and works across distributions without compilation. Install rclone Most distributions package rclone. Install via your package manager: # Debian/Ubuntu sudo apt install rclone # Fedora/RHEL sudo dnf install rclone # Arch sudo pacman -S rclone Or install…
Symbolic links (symlinks) are aliases that point to other files or directories. Most operations treat them transparently—programs reading or writing through a symlink behave as if working with the target directly. Understanding how to create, test, and manage them correctly is essential for system administration. Creating Symbolic Links Create a basic symlink: ln -s ../target…
Insert the installation media and create a mount point: sudo mkdir -p /media/dvd sudo mount /dev/sr0 /media/dvd For a DVD image file instead of physical media: sudo mount -o loop /path/to/image.iso /media/dvd Verify the mount and check that packages exist: ls /media/dvd/Packages/ | head On systems with automatic mounting (systemd-based), the DVD may already be…