
fdisk command in Linux Explained [with Examples] - LinuxOPsys
Aug 28, 2022 · fdisk utility primarily used for managing Master Boot Record (MBR) partition tables. Apart it supports GPT, Sun, SGI, and BSD partition tables as well. Syntax. The basic …
fdisk vs parted – Compared - LinuxOPsys
Nov 1, 2023 · fdisk and parted are command-line utilities in Linux for managing disk partitions. While both serve the same purpose, they come with different features and compatibilities. …
gdisk Command in Linux with Examples - LinuxOPsys
Nov 11, 2023 · It is part of the GPT fdisk suite which includes four distinct programs: gdisk, cgdisk, sgdisk, and fixparts. gdisk uses a similar user interface to the traditional fdisk tool. …
How to Mount XFS Filesystem - LinuxOPsys
Jul 5, 2022 · fdisk /dev/sdb If the partition you want to format as XFS already exists on the system you must make sure it's not mounted by using the command umount command like this: # …
Formatting Disk in Linux - LinuxOPsys
Aug 8, 2024 · $ sudo fdisk -l These commands help you accurately identify disks and partitions , ensuring that you work with the correct storage device during the formatting process. This list …
How to Check Unallocated Space on Linux - LinuxOPsys
Jun 27, 2022 · With fdisk command, the start and end columns in your fdisk -l output are the start and end cylinders. From the header of your fdisk -l output, you can also see how many …
Shell Script to Create and Format a Partition
Dec 20, 2023 · Do you have a new disk on your Linux system and want to format it? Here we have created a bash script that creates and formats a partition with the ext4 filesystem.
How to Format a USB Drive as exFAT on Linux - LinuxOPsys
Jun 22, 2022 · To create and add a new partition. Just type n in fdisk menu: n. n - command is for creating a new partition. After you type, It will ask to enter some values, you can just press …
How to Resize LVM Partition in Linux - LinuxOPsys
Jul 1, 2022 · There are some partition tools on the internet such as fdisk and parted. In this guide, we will use fdisk because it is available in most Linux Distributions. The first thing to do is to …
How to List Disks in Linux Command Line - LinuxOPsys
Jun 21, 2022 · 3. fdisk -l. The fdisk command is a text-based utility used to manage disk partitions. Using fdisk you can list disk partitions, create a new partition, delete an existing hard disk …