FSTAB

Differences between revisions 8 and 15 (spanning 7 versions)
Revision 8 as of 2019-11-15 19:57:56
Size: 1013
Editor: xnox
Comment:
Revision 15 as of 2020-01-23 09:27:47
Size: 1882
Editor: xnox
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 First mention a comment that an install time it pointed at a named thing, i.e. mpatha, VG name + LV name, Cryptsetup name, raid md0, device name hda2.
 Then fstab line is specific one in the following order of preferences.

 1. By-path (on s390x only)
    1. On architectures that support useful by-path links, i.e. ```/dev/disk/by-path/ccw-0.0.154d-part1```
Line 12: Line 17:
    1. Other device-mapper
 1. By-fs UUID
    1. bcache ```/dev/bcache/by-uuid/f36394c0-3cc0-4423-8d6f-ffac130f171a```
 1. By-UUID
    1. Things that have UUID, i.e. ext4 ```/dev/disk/by-uuid/9958d086-4f20-4807-8976-58807a5bc7e0```
 1. By-partuuid
    1. GPT partition ```/dev/disk/by-partuuid/1de9150c-fbdf-45a1-9c85-930a9bbb6188```
 1. By-path (on s390x only)
    1. On architectures that support useful by-path links, i.e. ```/dev/disk/by-path/ccw-0.0.154d-part1```
Line 15: Line 25:
    1. ```/dev/hda2```
Line 23: Line 34:
== bootloader specification ==

= Examples =
== TODO ==
 1. zfs? Just this? ```pool/path/to/dataset /mountpoint zfs defaults 0 0```
 1. prioritise by-path on z? => yes
 1. btrfs?

FSTAB

This document will describe fstab stanzas for different filesystems and partitions as standardized in Ubuntu across various things that parse/create/install/consume fstab entries.

device specification

  • First mention a comment that an install time it pointed at a named thing, i.e. mpatha, VG name + LV name, Cryptsetup name, raid md0, device name hda2. Then fstab line is specific one in the following order of preferences.
  • By-path (on s390x only)
    1. On architectures that support useful by-path links, i.e. /dev/disk/by-path/ccw-0.0.154d-part1

  • By-id with uuid
    1. Linux RAID /dev/disk/by-id/md-uuid-2df6ae19:d2b8f232:a92a12e1:ff5884f0-part1

    2. LVM /dev/disk/by-id/dm-uuid-LVM-AW4vtN9Nuh503yw4izneqpuLXCui4dVmXUcfJlf355pxKjolkkDmXJhPuJHZmZhI

    3. Multipath /dev/disk/by-id/dm-uuid-part1-mpath-35000c50015ea71ad

    4. LUKS1 /dev/disk/by-id/dm-uuid-CRYPT-LUKS1-85cd9f053c264a9b919a6cf780818425-foobar

    5. LUKS2 /dev/disk/by-id/dm-uuid-CRYPT-LUKS2-85cd9f053c264a9b919a6cf780818425-foobar

    6. bcache /dev/bcache/by-uuid/f36394c0-3cc0-4423-8d6f-ffac130f171a

  • By-UUID
    1. Things that have UUID, i.e. ext4 /dev/disk/by-uuid/9958d086-4f20-4807-8976-58807a5bc7e0

  • By-partuuid
    1. GPT partition /dev/disk/by-partuuid/1de9150c-fbdf-45a1-9c85-930a9bbb6188

  • By-path (on s390x only)
    1. On architectures that support useful by-path links, i.e. /dev/disk/by-path/ccw-0.0.154d-part1

  • By-device name
    1. /dev/hda2

fs default options

  1. any: discard
  2. rootfs: ext4 discard,errors=remount-ro 0 1
  3. /boot: ext4 discard,noatime,nodiratime 0 2
  4. /boot/efi: vfat umask=0077 0 1

TODO

  1. zfs? Just this? pool/path/to/dataset /mountpoint zfs defaults 0 0

  2. prioritise by-path on z? => yes

  3. btrfs?

FSTAB (last edited 2020-01-23 09:27:47 by xnox)