0% found this document useful (0 votes)
11 views

Partition creation

The document outlines the process of creating disk partitions in Linux, explaining the types of partitions (Primary, Extended, Logical) and the tools used (fdisk and parted). It details the steps for partitioning a disk, including listing disks, selecting a storage disk, creating a new partition, and writing changes to the disk. Key reasons for partitioning include organization, performance optimization, multi-OS booting, data security, and flexibility in file system choices.

Uploaded by

saranyat2701
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Partition creation

The document outlines the process of creating disk partitions in Linux, explaining the types of partitions (Primary, Extended, Logical) and the tools used (fdisk and parted). It details the steps for partitioning a disk, including listing disks, selecting a storage disk, creating a new partition, and writing changes to the disk. Key reasons for partitioning include organization, performance optimization, multi-OS booting, data security, and flexibility in file system choices.

Uploaded by

saranyat2701
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Partition creation

Partition creation
• Large storage devices are divided into separate sections are called
partitions
• Partitioning allows the use of different file systems to be installed for
different kinds of files.
• There are three types of partitions with which you will be
dealing; Primary, Extended, and Logical partitions.
• fdisk and parted are a command-line disk partitioning tool that is
part of the util-linux utility package. It enables users to create,
manage, and delete disk partitions via a dialog-driven interface.
Key Reasons to Partition a Disk

• Organization
• Performance Optimization
• Multi-OS Booting
• Data Security and System Stability
• Flexibility in File System Choices
Process to Partition a Disk in
Linux
Step 1: List Disks and Partitions
• Identify the disk you want to partition . In this example we’ll be
working with /dev/sda.
• This command lists all the disks and their partitions:
• Syntax: sudo fdisk -1
• The example output below shows two disks, /dev/sda and /dev/sdb.
The first storage disk, /dev/sda, has been formatted already and
contains the operating system. The second disk, /dev/sdb, contains
unallocated space only.
Step 2: Select Storage Disk
To select the storage disk for partitioning, run the following command,
replacing [disk-name] with the actual storage disk name.
• Syntax
• sudo fdisk [disk-name]
• The fdisk utility displays a welcome message and opens a shell
prompt.
#3 Create a New Partition

• The fdisk shell prompt accepts one-letter commands that perform


disk management functions or start a dialog for multi-step
procedures. To create a new partition on an empty storage disk,
proceed with the steps below.
• 1.Run the n commands to start partition creation.
• 2.Select the partition number. If unsure which number to select,
proceed with the default option.
• 3. Enter the first sector of the partition. Typing the default number
ensures that the partition starts at the beginning of the disk or where
the previous partition ends.
Continue...
• 4.Type the last sector of the partition. The partition size can also be
expressed in megabites or gigabytes For example, type +2GB to create
a 2GB partition.
• A message appears confirming that the partition is created.
Step 4: Write on Disk
• Executing the procedure described in the last step creates the
partition, but the changes must still be written onto the disk. To write
the changes, run the w command.
• The output confirms that the partition table has been altered.
• Verify that the partition is created by entering:.

• Sudo fdisk -1
• The new /dev/sdb1 partition is now visible in the partition list.

You might also like