LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-14-2018, 09:39 AM   #1
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,023
Blog Entries: 28

Rep: Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277Reputation: 2277
Arrow 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!

Last edited by onebuck; 06-14-2018 at 09:41 AM. Reason: correct URL
 
Old 06-14-2018, 10:47 AM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Xubuntu
Posts: 4,966

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


Reply

Tags
gpt, parted, partition


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help on parted command to create second partition. manoj.linux Linux - Enterprise 2 07-27-2015 01:10 PM
[SOLVED] parted 2.3: moving a partition in a disk with master boot record stf92 Slackware 9 10-11-2014 12:15 PM
sudo parted /dev/sda print Error: Can't have a partition outside the disk! MichaelSTL77 Ubuntu 1 02-28-2011 09:42 PM
cannot use 100% of hard disk, fdisk / parted / partition question lucastic Linux - Hardware 5 12-02-2005 08:58 PM
Resizing a linux partition using parted Ofvitinn Linux - General 5 10-04-2004 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration