跳至正文
Wener Notes

fstab (File System Table)

约 1 分钟阅读
标签:DevOpsStorageFilesystemLinux管理

The fstab file is used to define how disk partitions, various other block devices, or remote filesystems should be mounted into the filesystem.

Documentation

Examples

Common fstab Entries

ini
# 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      1

Bind Mount

ini
# bind mount
/data/a /data/b none bind 0 0

Maintenance

Check Syntax

To check for errors without actually mounting everything (fake mount):

bash
# -f --fake
mount -fav

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

其他外链2 条
最近更新commit 906e816编辑