LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to partition a disk in Linux. Learn how to use the 'parted' command to partition storage devices in Linux. (https://www.linuxquestions.org/questions/linux-general-1/how-to-partition-a-disk-in-linux-learn-how-to-use-the-parted-command-to-partition-storage-devices-in-linux-4175631945/)

onebuck 06-14-2018 09:39 AM

How to partition a disk in Linux. Learn how to use the 'parted' command to partition storage devices in Linux.
 
Hi,

How to partition a disk in Linux

Learn how to use the 'parted' command to partition storage devices in Linux.
Quote:

Creating and deleting partitions in Linux is a regular practice because storage devices (such as hard drives and USB drives) must be structured in some way before they can be used. In most cases, large storage devices are divided into separate sections called partitions. Partitioning also allows you to divide your hard drive into isolated sections, where each section behaves as its own hard drive. Partitioning is particularly useful if you run multiple operating systems.
I want to caution new users to the use of parted. Be sure you are aware of the option you wish to use with 'parted'. You can easily remove data/partition when using options like;
Quote:

(parted) mklabel gpt
Warning: the existing disk label on /dev/vdc will be destroyed
and all data on this disk will be lost. Do you want to continue?
Yes/No? Yes
Just be aware of all options that you are about too use.
Quote:

From 'man parted';
NAME
GNU Parted - a partition manipulation program

SYNOPSIS
parted [options] [device [command [options...]...]]

DESCRIPTION
parted is a program to manipulate disk partitions. It supports multiple partition table formats, including MS-DOS and GPT. It is useful for creating space
for new operating systems, reorganising disk usage, and copying data to new hard disks.

This manual page documents parted briefly. Complete documentation is distributed with the package in GNU Info format.
Hope this helps.
Have fun & enjoy!
:hattip:

DavidMcCann 06-14-2018 10:47 AM

Personally, I'd use gparted. It's a lot easier when you can see what you're doing!


All times are GMT -5. The time now is 08:23 PM.