Format disk in Linux system

Adding and formatting new disk is possible in Linux.

Here the basics. You can use fdisk command.

Type fdisk – l

Fdisk command in Linux

The other way to see presented disks in Linux system is to type  ls /dev/sd*

Disk levices list in Linux

Now you know which disks and partitions exist on the Linux system, and what you would like to format.

The tool mkfs is enough to progress simple formatting. For example to format your partition on disk is necessary

mkfs -t ext4 /dev/sda1

Leave a Comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.