fstab の話
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[centos8]]
*** fstab 内の記述を UUID で行う [#l8102912]
/dev/sd* がどのような UUID かを見ることができる
[root@serio home]# ls -l /dev/disk/by-uuid/
合計 0
lrwxrwxrwx. 1 root root 10 3月 31 00:28 14735185-0df8-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 19fe9bc3-b9cf-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 205fcb0b-9bb6-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 286cb304-09ff-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 8580346e-b31d-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 9d63e8b4-5650-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 d5f625f6-7318-4...
[root@serio home]#
[root@serio home]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sat Mar 22 19:20:04 2025
#
# Accessible filesystems, by reference, are maintained u...
# See man pages fstab(5), findfs(8), mount(8) and/or blk...
#
# After editing this file, run 'systemctl daemon-reload'...
# units generated from this file.
#
UUID=d5f625f6-7318-4d2d-9113-8aaea6f392ee / ...
UUID=9d63e8b4-5650-4c37-8ace-19f80c04331f /boot ...
UUID=286cb304-09ff-4ce1-be9a-630274b87bee /home ...
UUID=19fe9bc3-b9cf-4ee9-ad0e-16a060ed3239 none ...
/dev/sda1 /mnt/dsk0 ext4 defaults ...
/dev/sdb1 /mnt/dsk1 ext4 defaults ...
/dev/sdc1 /mnt/dsk2 ext4 defaults ...
[root@serio home]#
/mnt 以下も UUID でもいいのだが、抜き差しが手軽な分スロッ...
終了行:
[[centos8]]
*** fstab 内の記述を UUID で行う [#l8102912]
/dev/sd* がどのような UUID かを見ることができる
[root@serio home]# ls -l /dev/disk/by-uuid/
合計 0
lrwxrwxrwx. 1 root root 10 3月 31 00:28 14735185-0df8-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 19fe9bc3-b9cf-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 205fcb0b-9bb6-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 286cb304-09ff-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 8580346e-b31d-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 9d63e8b4-5650-4...
lrwxrwxrwx. 1 root root 10 3月 31 00:29 d5f625f6-7318-4...
[root@serio home]#
[root@serio home]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Sat Mar 22 19:20:04 2025
#
# Accessible filesystems, by reference, are maintained u...
# See man pages fstab(5), findfs(8), mount(8) and/or blk...
#
# After editing this file, run 'systemctl daemon-reload'...
# units generated from this file.
#
UUID=d5f625f6-7318-4d2d-9113-8aaea6f392ee / ...
UUID=9d63e8b4-5650-4c37-8ace-19f80c04331f /boot ...
UUID=286cb304-09ff-4ce1-be9a-630274b87bee /home ...
UUID=19fe9bc3-b9cf-4ee9-ad0e-16a060ed3239 none ...
/dev/sda1 /mnt/dsk0 ext4 defaults ...
/dev/sdb1 /mnt/dsk1 ext4 defaults ...
/dev/sdc1 /mnt/dsk2 ext4 defaults ...
[root@serio home]#
/mnt 以下も UUID でもいいのだが、抜き差しが手軽な分スロッ...
ページ名: