You are on page 1of 1

Execute these command for Block and Partitions:

lsblk
df -h
sudo fdisk -l
sudo fdisk -l /dev/sdb

Creating Partitions:
sudo fdisk /dev/sda

Use the d command control to delete the default partitions.


When you issue the d command control, fdisk asks you to enter the number of
partitions you want to delete. Since you have twelve partitions,
fdisk automatically selects the last partition by default, and pressing Enter
deletes the last partition.
Repeat this process until you delete all the twelve partitions.

Now, execute this command to Create New Partition:


Enter: n
Hit Enter button two times.
Enter: 2097200

Second Partition:
Enter: n
Hit Enter button three times.

Change the Partition to a different Partition type:


Enter: t
Enter: 1
Enter: L
Enter: 19

Verify and Commit the changes:


Enter: v
Enter: w

Formatting partitions using mkfs:


Execute: lsblk
Execute: sudo mkfs -t ext4 /dev/sda2

Mount:
sudo mount /dev/[SECOND DRIVE]2 /home/my_drive
lsblk

You might also like