LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-19-2021, 05:39 AM   #16
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019

I like to mount my /boot/efi with ro and sync.
Code:
LABEL="SYSTEM"      /boot/efi       vfat    defaults,ro,sync        0   0
Then, when I update it, I flip it 'rw' and back.
Code:
mount -o remount,rw /boot/efi
cp vmlinuz initrd.gz /boot/efi/EFI/Slackware && sync
mount -o remount,ro /boot/efi
Possibly overkill, but it works for me.
 
3 members found this post helpful.
Old 08-19-2021, 06:22 AM   #17
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
I like to mount my /boot/efi with ro and sync.
Code:
LABEL="SYSTEM"      /boot/efi       vfat    defaults,ro,sync        0   0
Then, when I update it, I flip it 'rw' and back.
Code:
mount -o remount,rw /boot/efi
cp vmlinuz initrd.gz /boot/efi/EFI/Slackware && sync
mount -o remount,ro /boot/efi
Possibly overkill, but it works for me.
As an aside, if using GRUB you would only need to write in the ESP once after OS installation, to put there the OS loader, the kernels and initrds being referred to in /boot/grub/grub.cfg, which can be read by the OS loader as it is able to access many file systems outside of the ESP, including the one used for /boot, which also allows it to load the initrds and kernels stored in /boot.

Then, you won't need to mount the ESP anymore: neither ro nor rw.

Also, if another OS using GRUB is already installed when you install Slackware you won't even need to install a specific OS loader and set up an ESP for Slackware, as running as root from this OS after Slackware installation the command below will add boot entries for Slackware in GRUB's boot menu[1]:
Code:
grub-mkconfig -o /boot/grub/grub.cfg
[1]for the generic kernel, if os-prober is enabled for the other OS and Slackware's initrd is symlinked to or renamed initrd-generic-<kernel version>

Last edited by Didier Spaier; 08-20-2021 at 05:46 AM. Reason: Typo fix.
 
2 members found this post helpful.
Old 08-19-2021, 09:25 AM   #18
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
Quote:
Originally Posted by hazel View Post
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.
True but IMHO that just emphasizes how much more important it is to update file systems than such things as BIOS/UEFI with the likes of SecureBoot. That's like turning a firehose on a candle while the rest of the house is in flames.
 
Old 08-20-2021, 02:13 AM   #19
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 174

Rep: Reputation: 42
Like Didier, I'm also using grub, so I don't have to mount ESP on boot.
 
Old 08-20-2021, 07:06 PM   #20
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by walecha View Post
Like Didier, I'm also using grub, so I don't have to mount ESP on boot.
Fwiw, I use eLilo and I keep the ESP unmounted until I wish to add a kernel. I do this by adding the "noauto" option to fstab.

Haven't figured out how to use grub yet, but I appreciate that it can do things which eLilo can't... That's mainly because I've never been in a situation where eLilo doesn't work. Ain't nobody got time to figure out how to read grub's config files.
 
  


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 02:38 PM.

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