「Linux」ファイルシステムのの管理のメモ

2021年4月12日

# cat /etc/fstab
内容表示
#
# /etc/fstab
# Created by anaconda on Sun Mar 7 10:44:29 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/’.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload’ to update systemd
# units generated from this file.
#
/dev/mapper/cl-root / xfs defaults 0 0
UUID=3524850f-87bc-4cc3-90af-c04fd1a63b66 /boot xfs defaults 0 0
/dev/mapper/cl-swap none swap defaults 0 0
1.ブロックデバイスの情報を表示
# blkid
/dev/sda1: UUID="3524850f-87bc-4cc3-90af-c04fd1a63b66″ BLOCK_SIZE="512″ TYPE="xfs" PARTUUID="637168f8-01″
/dev/sda2: UUID="6OSBw0-bLzf-YJVW-YVzH-2IzV-UK0d-XSZAEg" TYPE="LVM2_member" PARTUUID="637168f8-02″
/dev/mapper/cl-root: UUID="6285900c-05fb-4af6-9aae-28d206290032″ BLOCK_SIZE="512″ TYPE="xfs"
/dev/mapper/cl-swap: UUID="c3b78f08-3b9e-407d-a441-d7abf032fe38″ TYPE="swap"
2.デバイス名、UUID、ファイルシステムのタイプ
# lsblk –output NAME,UUID,FSTYPE
NAME UUID FSTYPE
sda
tqsda1 3524850f-87bc-4cc3-90af-c04fd1a63b66 xfs
mqsda2 6OSBw0-bLzf-YJVW-YVzH-2IzV-UK0d-XSZAEg LVM2_member
tqcl-root 6285900c-05fb-4af6-9aae-28d206290032 xfs
mqcl-swap c3b78f08-3b9e-407d-a441-d7abf032fe38 swap
sr0

Linux

Posted by arkgame