Trending Now DSA Data Structures Algorithms Interview Preparation Data Science Topicwise Practice
Disk Partitioning in Ubuntu using GParted
kushwanthreddy
Read Discuss
Disk Partitioning is a process of separating disks into one (or) more
logical areas so that user and system work on them independently.
When a partition is created, the disk will store the information about
the location and size of partitions in the partition table. With the
partition table, each partition can appear on the operating system as a
logical disk, and users can read and write data on those disks. Learn
more about Disk Partitioning in Linux
What is GParted
Disk Partitioning in Linux is done using command line programs like
fdisk. GParted(GNOME Partition Editor) is a Graphical user program
based on GTK which allows Disk Partitioning with just a click of the
buttons. GParted is the of몭cial GNOME partition-editing application.
GParted is used for creating, deleting, resizing, moving, checking, and
copying disk partitions and manipulating 몭le systems such as exfat,
fat32/64, ext2/3/4, Linux-swap and more.
Installing GParted
You can install GParted in Ubuntu with a single command using APT
sudo apt install gparted
You can verify whether GParted is successfully installed or not using
the below command which gives an output similar to below image
sudo apt policy gparted
GParted is successfully installed
Note: It’s recommended to backup your data in the partition before
using GParted
GParted Interface
To open GParted , go to Activities in Ubuntu and click on the gparted
icon. It will prompt for password as GParted requires sudo privileges.
GParted menu
The above image shows the GParted menu, like many programs, it has
a 몭le menu(GParted), edit menu, view menu, device & partition menu,
and help menu. The icons below the menu bar represent the common
operations performed by gparted
new – create a new partition
delete – delete an existing partition
resize/move – to resize a partition, either shrink(or)increase the size
copy/paste – used to copy/paste the text(or) information
undo – undo the previous action
apply – to perform the operation chosen from above, you have to
click the apply icon to commit any selected operation in gparted
GParted
You can see all the partitions on my hard disk. It has a total of 7
partitions from /dev/sda[1-4] being used for Microsoft Windows and
/dev/sda[5-7] being used by my Linux Distro. The lock icon between
partition and name shows that these partitions can’t be modi몭ed
while running. The partitions can be modi몭ed by using a Live CD (or)
using another OS which doesn’t use these partitions.
GParted clearly shows us
Partition – the logical partition id in the partition table
Name – name of the partition
File System – type of the 몭le system used by the partition which
are like ntfs, fat32, ext4, linux-swap and more.
Mount point – the point where the partition is being mounted by
the OS which is similar to root(/), home(/home)
Size(Used/Unused) – the size of the partition and used and free
space in the partition
Flags – It tells what the partition is being used for, which are like
hidden partition, swap partition, windows partition
Resizing a partition to create a new Partition
Step 1: We will shrink /dev/sda4 by 10GB to create a new ext4
partition. Go on to /dev/sda4 and right-click on it and it opens an option
menu like below.
Options Menu
The menu has options for
create/delete partitions
resize and move partitions
format partitions
name partitions and add 몭ags
Changing UUID and more
Partition properties: To show more information about a partition click
on the information option in the menu shown in the above picture
Step 2: Click on Resize/Move. It will open new windows to select the
size to resize partitions. As we have taken the new partition size as
10GB, add 10000(GB converted into MiB) Free Space following option.
Now click on Resize/Move
resize options
Step 3: Now click “apply icon” in GParted menu( it will in the top with
icons representing actions), It will ask for con몭rmation
con몭rmation warning
After clicking on apply, the partition will be resized.
gparted will start resizing options
Step 4: If the resize is successful you will see a success message like
below.
resize successful
You will see an unallocated space in the GParted list
unallocated space
Creating a New Partition
Click on the unallocated space and select new in GParted menu where
we have selected in the apply icon. Select the options like size, name
as 몭le system and then click add
New partition option
Now click on the apply icon like before to apply the changes, and
accept the warning
apply operations
If the operations are successful, you will see the message like before.
operations successful
We have successfully created a new /dev/sda8 partition using
GParted
NEW Partition
Formatting a new partition
You can choose the format of the 몭le system when creating a new
partition, if you choose to format an existing partition, select the
partition you want to format and right-click on it to open the partition
menu. Then go to the format option and click on the type of 몭lesystem
you want. After selecting, apply the changes just by clicking on the
apply icon in the top menu.
formatting a partition
Deleting a Partition
Deleting a partition is simple. Select the partition you want to delete
and click the delete icon on the top menu and then click apply icon.
Deleting a partition will erase all the data in that partition, so be
careful while using it.
Last Updated : 29 Nov, 2022
Similar Reads
1. Disk Partitioning in Linux
2. How to access my Android's files using WiFi using FileZilla in Ubuntu?
3. Checking Disk Space in Linux Using CommandLine
4. Quickly Analyzing Disk Usage Statistics Using Filelight in Linux
5. Disk cloning in Linux using dd command
6. Disk Cleanup Using Powershell Scripts
7. How to speed up the downloading of packages using aptfast in Ubuntu?
8. How to Setup VPN on Ubuntu Linux System for IP Spoofing Using
windscribe?
9. Create Desktop Shortcuts Using The Terminal on Ubuntu
10. How to Add or Remove PPA in Ubuntu Using GUI and Terminal
Previous Next
How to Spoof SMS Message in Linux Installing Backtrack on VirtualBox
?
?
Article Contributed By :
kushwanthreddy
kushwanthreddy
Vote for dif몭culty
Easy Normal Medium Hard Expert
Improved By : simmytarika5, gabaa406, evina9ue4, vivekanandap3ix
Article Tags : LinuxTools, LinuxUnix
Report Issue
A143, 9th Floor, Sovereign Corporate
Tower, Sector136, Noida, Uttar Pradesh
201305
[email protected]
Company Explore
About Us Job Fair For Students
Legal POTD: Revamped
Careers Python Backend LIVE
In Media Android App Development
Contact Us DevOps LIVE
Advertise with us DSA in JavaScript
Languages Data Structures
Languages Data Structures
Python Array
Java String
C++ Linked List
PHP Stack
GoLang Queue
SQL Tree
R Language Graph
Android Tutorial
Algorithms Web Development
Sorting HTML
Searching CSS
Greedy JavaScript
Dynamic Programming Bootstrap
Pattern Searching ReactJS
Recursion AngularJS
Backtracking NodeJS
Computer Science Python
GATE CS Notes Python Programming Examples
Operating Systems Django Tutorial
Computer Network Python Projects
Database Management System Python Tkinter
So몭ware Engineering OpenCV Python Tutorial
Digital Logic Design Python Interview Question
Engineering Maths
Data Science & ML DevOps
Data Science With Python Git
Data Science For Beginner AWS
Machine Learning Tutorial Docker
Maths For Machine Learning Kubernetes
Pandas Tutorial Azure
NumPy Tutorial GCP
NLP Tutorial
Deep Learning Tutorial
Competitive Programming System Design
Top DSA for CP What is System Design
Top 50 Tree Problems Monolithic and Distributed SD
Top 50 Graph Problems Scalability in SD
Top 50 Array Problems Databases in SD
Top 50 String Problems High Level Design or HLD
Top 50 DP Problems Low Level Design or LLD
Top 15 Websites for CP Top SD Interview Questions
Interview Corner GfG School
Company Preparation CBSE Notes for Class 8
Preparation for SDE CBSE Notes for Class 9
Company Interview Corner CBSE Notes for Class 10
Experienced Interview CBSE Notes for Class 11
Internship Interview CBSE Notes for Class 12
Competitive Programming English Grammar
Aptitude
Commerce UPSC
Accountancy Polity Notes
Business Studies Geography Notes
Microeconomics History Notes
Macroeconomics Science and Technology Notes
Statistics for Economics Economics Notes
Indian Economic Development Important Topics in Ethics
Income Tax UPSC Previous Year Papers
Management
SSC/ BANKING Write & Earn
SSC CGL Syllabus Write an Article
SBI PO Syllabus Improve an Article
SBI Clerk Syllabus Pick Topics to Write
IBPS PO Syllabus Write Interview Experience
IBPS Clerk Syllabus Internships
Aptitude Questions Video Internship
SSC CGL Practice Papers
@geeksforgeeks , Some rights reserved