0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux][system][command] ファイルシステム作成_ext4, XFS, Btrfs, vfat, exFAT, mkfs, mke2fs, mkswap

Last updated at Posted at 2025-02-06

ファイルシステムの説明

ファイルシステム 特徴
ext2 - mkfs, mke2fsのデフォルト
ext3 - ext2の後継
- ジャーナリング
ext4 - ext3の後継
- ジャーナリング
JFS - ジャーナリング
- 動的inode (inode数に制限なし)
XFS - ジャーナリング
- 動的inode (inode数に制限なし)
- 並列処理
- スナップショット
Btrfs - スナップショット
- データ圧縮
- マルチデバイス
- サブボリューム
vfat - 容量:4GB
exFAT - 容量:16EiB
- フラッシュドライブ向けのファイルシステム

mkfsコマンド

$ mkfs [オプション] デバイス名
オプション 由来 説明
default make filesystem - 指定したデバイスにファイルシステムを作成する
- -tを指定しなければext2のファイルシステムが作成される
-t type - ファイルシステムの種類を指定する
(例:mkfs -t ext4 /dev/sdX1
-c check - 不良ブロックをスキャンしてからフォーマットする

mke2fs コマンド

$ mke2fs [オプション] デバイス名
オプション 由来 説明
default make ext2 filesystem - 指定したデバイスにext2ファイルシステムを作成する(-tオプションでext3ext4も作成可能)
-t type - 作成するファイルシステムの種類を指定
(例:mke2fs -t ext4 /dev/sdX1
-c check - 不良ブロックをスキャンしてからフォーマットする
-j journal - ext3ファイルシステムを作成する(ext2からext3へ変換)

Ping-t

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?