Feature changed by: Carlos Robinson (robin_listas) Feature #314483, revision 3 Title: Automatically set secondary partitions as 'nofail' in /etc/fstab openSUSE Distribution: Unconfirmed Priority Requester: Mandatory Requested by: Mircea Kitsune (mirceakitsune) Partner organization: openSUSE.org Description: I had a discussion yesterday about how partitions in fstab disappearing (such as unplugging an internal drive) will cause openSUSE to no longer boot and go to the emergency console, unless the 'nofail' parameter is set. For those who wish to see the full thread: http://forums.opensuse.org/english/get-technical-help-here/install-boot-logi... Being a newbie myself, I found this difficult to solve and understand until someone explained me how fstab works. Until then I thought the system had been compromised beyond repair. Some users might remove drives or change partitions without knowing how fstab works. They would then find themselves stuck in an "emergency console" without any information as to why they are there, conclude the only solution is to reinstall the system, and go through a frustrating experience thinking Linux is too unsafe and unstable. My suggestion is defaulting the 'nofail' parameter for all drives except root and swap (possibly the /home partition if it can be detected) when openSUSE / Partitioner automatically add a drive to fstab. There's no point in failing the boot if a partition that's not needed to boot is missing. I have three NTFS partitions mounted in /windows/[letter]/ and immediately added this flag to them after being informed of it, to avoid potential issues in case one of them breaks or I temporarily disconnect it. Separately, I'm also proposing a message in the emergency console about what brought the user there. If possible, mentioning that in /etc/fstab there's a partition that's no longer accessible. The only information currently shown is "Welcome to the emergency console, please give your root password". If the user forgets what changes they made, they might never know what's broken and what to try fixing... at least if they're not experts and have a console command ready. Test Case: Make sure you have a partition on a secondary drive configured to auto- mount in /etc/fstab (for NTFS that should be /windows/[letter]/). Shut down your computer and unplug that drive. When booting into openSUSE, you will be taken to the recovery console before reaching the logon screen, without any information as to why. If you add the 'nofail' parameter to the missing partition in /etc/fstab, it will boot as normal and just ignore the missing drive. Business case (Partner benefit): openSUSE.org: Newbies might not know all the settings in fstab or edit them manually for drives auto-mounted by openSUSE. If a secondary drive breaks or is disconnected, they can be left with an irrecoverable system without even knowing why. Even an expert will need to boot using a Live-CD distro to edit /etc/fstab manually to get the system booting again without that drive. Automatically setting alternative drives as 'nofail' would prevent such risks, and also make most sense in my opinion. + Discussion: + #1: Carlos Robinson (robin_listas) (2012-09-28 16:27:09) + No, it can not be the default option. First, only the admin knows which + partitions are optional. Second, if a partition fails to mount for some + reason, it will do so silently, without any error message. If someone, + or a script, tries to use that partition, the writes will go to the + parent partition where it should be mounted. + For example, suppose you mount "/backup" with nofail, and it is a 2 TiB + drive. It fails to mount, then the automated backup script triggers and + does a backup to "/backup", which writes into "/" instead which is a + partition of 20 GiB, fills it fast, and crashes the system (which will + not boot if you try). -- openSUSE Feature: https://features.opensuse.org/314483