snippetbashTip
mke2fs — Create a Linux filesystem inside a partition. More information: <https://manned.org/mke2fs>.
Viewed 0 times
mke2fscreatecommandpartitionclifilesystemlinuxinside
linux
Problem
How to use the
mke2fs command: Create a Linux filesystem inside a partition. More information: <https://manned.org/mke2fs>.Solution
mke2fs — Create a Linux filesystem inside a partition. More information: <https://manned.org/mke2fs>.Create an ext2 filesystem on a partition:
sudo mke2fs -t ext2 {{/dev/sdXY}}Create an ext3 filesystem on a partition:
sudo mke2fs -t ext3 {{/dev/sdXY}}Create an ext4 filesystem on a partition:
sudo mke2fs -t ext4 {{/dev/sdXY}}Code Snippets
Create an ext2 filesystem on a partition
sudo mke2fs -t ext2 {{/dev/sdXY}}Create an ext3 filesystem on a partition
sudo mke2fs -t ext3 {{/dev/sdXY}}Create an ext4 filesystem on a partition
sudo mke2fs -t ext4 {{/dev/sdXY}}Context
tldr-pages: linux/mke2fs
Revisions (0)
No revisions yet.