Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:storage:fstab [2019/08/26 12:03] – tag optimization, formatting optimization vgaeteradocs:guide-user:storage:fstab [2021/08/10 14:02] – [The Mount sections] daniel
Line 7: Line 7:
 Since the tool dealing with mounts is **block**, all current options can be found in its [[https://git.openwrt.org/?p=project/fstools.git;a=blob;f=block.c;hb=HEAD|source code]]. Since the tool dealing with mounts is **block**, all current options can be found in its [[https://git.openwrt.org/?p=project/fstools.git;a=blob;f=block.c;hb=HEAD|source code]].
  
-==== Creating fstab ====+===== Creating fstab =====
 You should use the //block// utility. You should use the //block// utility.
 Install the package //block-mount//: Install the package //block-mount//:
Line 52: Line 52:
  
 ==== The Mount sections ==== ==== The Mount sections ====
-^Name      ^Type  ^Required^Default^Description                                                                                        ^ +^Name       ^Type   ^Required ^Default^Description                                                                                        ^ 
-|//device//|string|no      |-      |The data partition’s device node (e.g. sda1)                                                       | +|//enabled//|boolean|no       |1      |Enables/disables using UCI section                                                                 | 
-|//uuid//  |string|no      |-      |The data partition’s UUID                                                                          +|//uuid//   |string |yes (one)|-      |The data partition’s file system UUID (not GPT partition UUIDs, aka PARTUUID)                      | 
-|//target//|string|no      |-      |The data partition’s mount point. Some values have special meanings, see the Extroot section below.| +|//label//  |string |:::      |-      |The data partition’s label                                                                         | 
-|//options//|string|no     |-      |The data partition's mount options, e.g. noexec,noatime,nodiratim.                                 |+|//device// |string |:::      |-      |The data partition’s device node (e.g. sda1)                                                       | 
 +|//autofs// |boolean|no       |0      |Should autofs (on-demand mounting) be used                                                         
 +|//target// |string |no       |-      |The data partition’s mount point. Some values have special meanings, see the Extroot section below.| 
 +|//options//|string |no       |-      |The data partition's mount options, e.g. noexec,noatime,nodiratim.                                 | 
 + 
 +<WRAP important> 
 +Managing //autofs// as well as mount notifications (for procd triggers) is taken care of by ''blockd''. Hence ''blockd'' needs to be installed for those features to work. 
 +</WRAP>
  
 ===== The right amount of SWAP ===== ===== The right amount of SWAP =====
  • Last modified: 2024/01/05 21:45
  • by linus