LinuxQuestions.org
Visit Jeremy's Blog.
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 08-18-2021, 01:02 AM   #1
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Rep: Reputation: Disabled
EFI partition


I have a new installation of slackware64-current with elilo boot loader.
So there is a FAT efi partition, which is in fstab

Quote:
/dev/sdb1 /boot/efi vfat defaults 1 0
(this comes from the installation process).

I see this message at boot:

Quote:
[ 10.875319] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Is it harmful ?
 
Old 08-18-2021, 01:33 AM   #2
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 610

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Depends!
You can try this:
Code:
umount /boot/efi
fsck.vfat /dev/sdb1
If errors occur, correct them.
Mount the partition with command:
Code:
mount -t vfat /dev/sdb1 /boot/efi

Last edited by teoberi; 08-18-2021 at 01:39 AM.
 
Old 08-18-2021, 01:47 AM   #3
Toutatis
Member
 
Registered: Feb 2013
Posts: 412

Original Poster
Rep: Reputation: Disabled
fsck.vfat /dev/sdb1 gives

Quote:
fsck.fat 4.2 (2021-01-31)
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offsetriginal/backup)
65:01/00
1) Copy original to backup
2) Copy backup to original
3) No action
I choose 3)
 
Old 08-18-2021, 01:51 AM   #4
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 610

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You can also choose 1) and check again for fsck errors.

Last edited by teoberi; 08-18-2021 at 01:58 AM.
 
Old 08-18-2021, 05:33 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
On my machine, the ESP doesn't like being unmounted by the general shutdown umount -a. It develops that "error" as a result. After correcting it, I suggest that you don't mount that partition automatically, only when you need it, and then unmount by hand. But if anyone can tell me why this makes a difference, I'd love to know.
 
2 members found this post helpful.
Old 08-18-2021, 05:38 AM   #6
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 610

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Same situation!
I would love to know too!
 
Old 08-18-2021, 08:24 AM   #7
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,538

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
That partition is just finicky. I've seen that message (and been able to clean it with fsck) after power outages. (Yeah, I know, I should be on a UPS.)
 
Old 08-18-2021, 08:40 AM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Wait it is not unmounting when you restart? I thought this was addressed as I noticed similar behavior awhile back.
 
Old 08-18-2021, 08:41 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
Maybe there's something slightly dicky with the kernel's vfat driver. I assume that any driver for a proprietary filesystem has to depend on occasional guesswork.
 
Old 08-18-2021, 11:01 AM   #10
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
unmount /boot/efi
1) umount /boot/efi

2) run
fsck.vfat -n /dev/device_name
to check for errors

3) next run
fsck.vfat -a /dev/device_name
to fix vfat errors

4) edit /etc/fstab
comment out the reference to boot (EFI) partition

5) never see errors again

6) Mount /boot/efi partition before upgrading kernel
 
Old 08-18-2021, 12:45 PM   #11
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Aeterna View Post
...
4) edit /etc/fstab
comment out the reference to boot (EFI) partition
...
instead of removal, just add "noauto" to the fstab entry...
Code:
UUID=SC56-2X5Y  /boot/efi  vfat  defaults,noauto  1   0
Enjoy!
 
3 members found this post helpful.
Old 08-18-2021, 12:50 PM   #12
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by Chuck56 View Post
instead of removal, just add "noauto" to the fstab entry...
Code:
UUID=SC56-2X5Y  /boot/efi  vfat  defaults,noauto  1   0
Enjoy!
comment out: #
not the same as removal. Removing from fstab would be quite inconvenient.

whichever way: both works
 
Old 08-18-2021, 04:07 PM   #13
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Wouldn't it be great if EFI would alter standards to accommodate other file systems?... even ext2. Isn't it just like Microsoft to require SecurBoot but have an insecure file system as the most fundamental component excepting BIOS/UEFI?

Last edited by enorbet; 08-18-2021 at 04:08 PM.
 
Old 08-18-2021, 04:21 PM   #14
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by enorbet View Post
Wouldn't it be great if EFI would alter standards to accommodate other file systems?... even ext2. Isn't it just like Microsoft to require SecurBoot but have an insecure file system as the most fundamental component excepting BIOS/UEFI?
Why is there even a partition at all? Why can't the firmware boot (EFI), like legacy BIOS. Of course on the other hand, I do have a separate /boot partition , but only because you can't boot / install lilo on XFS, so thats kinda different though (plus I am not using UEFI but legacy). Then again I don't know all the specifications of UEFI, and I guess somehow fat32 is considered "universal" these days, but even I myself had questions about this when it was introduced, since this brings back the old days of pre- NT days of Windows when you only had fat 12/16/32 to work with and any sort of improper shutdown (power loss), would result in constant errors and waiting for scandisk. We seem to have, reverted/returned/regressed to that period in time.

Last edited by Jeebizz; 08-18-2021 at 04:34 PM.
 
Old 08-19-2021, 05:18 AM   #15
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,587
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
All the usb keys that you buy are formatted fat32 so any OS has to be able to read that format. I guess it really is universal.
 
  


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
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM

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

All times are GMT -5. The time now is 07:49 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