How Do I Create a New File System in Linux?
Contents

How do you create a filesystem?

To create a filesystem, there are three steps:

  1. Create partitions using fdisk or Disk Utility. …
  2. Format the partitions using mkfs or Disk Utility.
  3. Mount the partitions using the mount command or automate it using the /etc/fstab file.

How do I change a file system in Linux?

First backup all your data then follow the given steps.

  1. First of all, check for your kernel. Run uname –r command to know the kernel you are using. …
  2. Boot from Ubuntu Live CD.
  3. 3 Convert the filesystem to ext4. …
  4. Check the filesystem for errors. …
  5. Mount the filesystem. …
  6. Update the filesystem type in fstab file. …
  7. Update grub. …
  8. Reboot.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest