LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-17-2021, 11:29 AM   #1
slvr32
Member
 
Registered: Feb 2021
Posts: 33

Rep: Reputation: Disabled
slackware64-current, /etc/rc.d/rc.6 doesn't umount efi partition


It looks like /etc/rc.d/rc.6 doesn't have logic to umount EFI partions, e.g. /boot/efi

# Unmount local file systems:
echo "Unmounting local file systems:"
/bin/umount -v -a -t no,proc,sysfs,devtmpfs,fuse.gvfsd-fuse,tmpfs

I don't know if adding vfat to the -t list is the appropriate fix, or if needs to be more complicated.

I just noticed the issue after a reboot...

[ 16.959016] FAT-fs (nvme0n1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

and the related /etc/fstab entry as an example...

/dev/nvme0n1p1 /boot/efi vfat defaults 1 0

Last edited by slvr32; 04-21-2021 at 12:27 PM.
 
Old 04-17-2021, 01:02 PM   #2
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 458

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
The "no" at the start of that list means that umount ignores the filesystem types that follow, i.e., unmounts everything else. This can be verified by rebooting or halting from tty, which should show that /boot/efi is unmounted at that point.

So far as I know, the message is harmless. A dirty bit just gets set for some reason.
 
Old 04-17-2021, 07:49 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
slackware64-current, /etc/rc.d/rc.6 doesn't umount efi partition

I always put ',noauto' after defaults.

There is no need to mount the EFI partition every time you reboot.

In fact, my thoughts are that you only need to mount it if you're upgrading the kernel. It probably shouldn't be auto-mounted by default.
 
1 members found this post helpful.
Old 04-17-2021, 07:53 PM   #4
slvr32
Member
 
Registered: Feb 2021
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pghvlaans View Post
The "no" at the start of that list means that umount ignores the filesystem types that follow, i.e., unmounts everything else. This can be verified by rebooting or halting from tty, which should show that /boot/efi is unmounted at that point.

So far as I know, the message is harmless. A dirty bit just gets set for some reason.
Well, I watched a reboot, and /boot/efi does get cleanly unmounted, so the fsck complaint was probably old.

In any case, fsck'ing the filesystem is easy enough to get rid of the complaint, and it's better to not ignore it.
 
Old 04-17-2021, 08:04 PM   #5
slvr32
Member
 
Registered: Feb 2021
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
I always put ',noauto' after defaults.

There is no need to mount the EFI partition every time you reboot.

In fact, my thoughts are that you only need to mount it if you're upgrading the kernel. It probably shouldn't be auto-mounted by default.
Funny, /boot/efi is added to /etc/fstab by the installer, there's no harm in mounting it, and manually mounting it (to copy /boot/{vmlinuz,initrd.gz} to /boot/efi/EFI/Slackware for kernel upgrades sounds silly to me.

Seeing /boot/efi mounted on a system is a pretty good hint/reminder that a system is using EFI, so I like that it gets added to /etc/fstab by default.

Last edited by slvr32; 04-17-2021 at 08:11 PM.
 
Old 04-17-2021, 08:10 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Not so silly. In case it is mounted and your computer crashes the crappy FAT filesystem may get corrupted. Running fsck on it may or may not repair it. Why risk with all this trouble and keep it mounted unnecessarily?
 
2 members found this post helpful.
Old 04-17-2021, 10:12 PM   #7
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 458

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Originally Posted by Emerson View Post
Not so silly. In case it is mounted and your computer crashes the crappy FAT filesystem may get corrupted. Running fsck on it may or may not repair it. Why risk with all this trouble and keep it mounted unnecessarily?
That's a good point; maybe I've been too casual about this. Removed from fstab
 
Old 04-17-2021, 10:22 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Better put it back in fstab with noauto option, then it is easy to mount from command line.
 
Old 04-17-2021, 10:41 PM   #9
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 458

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
I use GRUB with an unchanging configuration file, so no need to mount for kernel installations.
 
Old 04-17-2021, 10:43 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Right, but some may put EFI stub kernels there, I do.
 
Old 04-17-2021, 10:45 PM   #11
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 458

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Fair enough!
 
Old 04-17-2021, 10:51 PM   #12
slvr32
Member
 
Registered: Feb 2021
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pghvlaans View Post
I use GRUB with an unchanging configuration file, so no need to mount for kernel installations.
I think you can get banned from the slackware forum for admitting to using grub over lilo or elilo.
 
1 members found this post helpful.
Old 04-18-2021, 09:34 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by slvr32 View Post
there's no harm in mounting it
I would agree with you if it used any other file system, (except possibly NTFS).

FAT is among the most flaky file systems around, and easily corruptible. Linux support for it (much like NTFS) has had to be reverse-engineered. FAT has a terrible track record when it comes to data loss, corruption and recoverability. If it were up to me, we wouldn't be using it anywhere... but here we are, so we have to make do with what we have.

If there is a sudden interruption in electricity supply and your computer crashes as a result of it, there is an increased possibility that your computer won't boot due to a corrupted EFI partition if this all happened while it was mounted.

Personally, I don't find it that difficult to type 'mount /boot/efi' whenever I want to access it.

Windows 10 doesn't mount the EFI partition by default. I can't help but wonder if even a small part of Microsoft's reasoning is that they know how flaky the file system is.
Quote:
Originally Posted by slvr32 View Post
I like that it gets added to /etc/fstab by default.
Yes, me too. But I think it should have the 'noauto' option included by default as well.
 
Old 04-18-2021, 10:35 PM   #14
slvr32
Member
 
Registered: Feb 2021
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
... <FAT sucks...>, cue Pachelbel Canon in D Major ...
Too. much. tuna.
 
Old 04-18-2021, 11:16 PM   #15
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Not tuna. Violin.

Anyway, do you honestly disagree?

Last edited by rkelsen; 04-18-2021 at 11:21 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
EFI System Partition: Using it as /boot versus /boot/efi MirceaKitsune Linux - General 4 04-06-2021 11:07 AM
[SOLVED] Ooooy. EFI boot mmx64.efi.efi not found bulgin Linux - Newbie 12 12-20-2018 11:03 AM
[7.3] umount says: "umount: /very/long/path (/dev/loop0) is unmounted" ? McZ Linux From Scratch 4 03-24-2013 01:29 PM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM
Mount. Umount. Mount. Umount. Mount. Umount. Mount.. cwizardone Slackware 10 03-22-2007 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration