Note: Remember to check lsblk every time you reconnect to your server before making changes. ![]() ![]() You should see an unrecognized disk label error for the new, unpartitioned disk: ![]() This can be used to help identify the new disk: If you ask parted to list the partition layout of your disks, it will produce an error for any disks that don’t have a valid partition scheme. If this is a completely new drive, One way to identify it on your server is to look for the absence of a partitioning scheme. Step 2 - Identify the New Disk on the Systemīefore you set up the drive, you need to be able to properly identify it on the server. If you are on an RHEL, Rocky Linux, or Fedora server, you can install it by typing:Įvery other command used in this tutorial should be preinstalled, so you can move on to the next step. If you are on an Ubuntu or Debian server and do not have parted installed, you can install it by typing: parted, which creates partitions, is one of the only occasional exceptions. Most of the commands necessary for interacting with a low-level filesystem are available by default on Linux. To partition the drive, you’ll use the parted utility. Mounting and setting up Auto-mounting of the filesystem at boot.Formatting the partition with the Ext4 filesystem (the default in most modern Linux distributions).Creating a single partition that spans the entire drive (most operating systems expect a partition layout, even if only one filesystem is present). ![]() Identifying the new disk on the system.This guide will cover the following process: There are many tools, filesystem formats, and partitioning schemes that may change the process if you have specialized needs, but the fundamentals remain the same. Preparing a new disk for use on a Linux system is a straightforward process.
0 Comments
Leave a Reply. |