From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create parititons using Parted

Create parititons using Parted

From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Start my 1-month free trial

Create parititons using Parted

- [Instructor] Parted is a lot like f disk or g disk because it creates partitions. Older versions can also resize, copy and move volumes, as well as format and rescue them. Some of these features were removed after version 2.4, including check, cp, mk part fs, move and resize. Parted can be used in interactive and non-interactive modes. Let's start by installing Parted, if it isn't already. Type in sudo yum install -y parted. Type in your password if prompted. If it's installed, go ahead and run it. Type in sudo parted and hit enter. We'll start out by typing in help. The help command shows all sub-commands. To get help on a specific sub-command, such as the print command, we can type in help print and hit enter. We can see that there's a print all option. Let's type in print all and hit enter. This shows all drives and partitions in a way that is very similar to f disk -l that we saw in a previous video. To get a short, concise list of drives, type in print devices and hit enter. I…

Contents