How to specify custom mount options for root filesystem
This document (7016840) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Desktop 12
Situation
Resolution
While SUSE is in the process of developing a final fix for this, a workaround would be to:
Edit the grub2 boot loader config at /etc/default/grub and add the:
rootflags=option with the file system flag added to the GRUB_CMDLINE_LINUX_DEFAULT="" variable, for example:
GRUB_CMDLINE_LINUX_DEFAULT="rootflags=discard"Make sure to run:
grup2-installor
grub2-mkconfig -o /boot/grub2/grub2.cfgafterwards to enable these settings.
Cause
If this variable is not specified, the root filesystem is mounted firstly with the default mount options and then remounted with the options specified in /etc/fstab.
However, some filesystems (e.g. XFS) do not support changing the mount options during remount.
Thus the settings in /etc/fstab are ignored.
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7016840
- Creation Date: 17-Sep-2015
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com