fstab (File System Table)
约 1 分钟阅读
The fstab file is used to define how disk partitions, various other block devices, or remote filesystems should be mounted into the filesystem.
Documentation
- ArchWiki - fstab链接wiki.archlinux.org/index.php/fstabThe file is used to define how disk partitions, various other block devices, or remote filesystems should be mounted into the filesystem.笔记:fstab (File System Table)
- Ubuntu Documentation - Fstab链接help.ubuntu.com/community/FstabThe file is used to define how disk partitions, various other block devices, or remote filesystems should be mounted into the filesystem.笔记:fstab (File System Table)
Examples
Common fstab Entries
# Alpine Default Examples
UUID=00000000-5e02-442f-a61b-b9152c0317f7 / ext4 rw,relatime,data=ordered 0 1
UUID=00000000-f3c9-4c46-afd7-dcf0bd9b3183 /boot ext4 rw,relatime,data=ordered 0 2
UUID=00000000-7497-4dfb-938d-a321b2fd9c9c swap swap defaults 0 0
# Removable Devices
/dev/cdrom /media/cdrom iso9660 noauto,ro 0 0
/dev/usbdisk /media/usb vfat noauto 0 0
# Generic Syntax
# <device> <dir> <type> <options> <dump> <fsck>
/dev/sda1 /data ext4 defaults,noatime 0 1Bind Mount
# bind mount
/data/a /data/b none bind 0 0Maintenance
Check Syntax
To check for errors without actually mounting everything (fake mount):
# -f --fake
mount -fav关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
其他外链2 条
- help.ubuntu.com/community/Fstabhelp.ubuntu.com/community/Fstab
- wiki.archlinux.org/index.php/fstabwiki.archlinux.org/index.php/fstab