LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 07-31-2023, 11:04 AM   #1
pcondost
LQ Newbie
 
Registered: Jul 2023
Posts: 3

Rep: Reputation: 0
EFI partition write protected


Hi,
I am using a Dell XPS 15 7590 laptop. When I installed Slackware 15 it had me create partitions for EFI, Linux and Swap. Went through those no issue, installed Slack 15 without issue and running the system currently. It has been many years since I have used Slackware and really missed the level of control afforded vs other distributions.

When I tried to compile a new kernel and update elilo I keep getting an error about /boot/efi is read only. I have searched the forums and all mention copying the new kernel into the EFI/Slackware folder and I am not able to. It is also strange that the EFI folder shows an old Windows and Debian entry even after clearing all partitions and recreating from scratch.

Is this normal? Does Dell do something special with EFI and creates it's own partition?

Thanks, Pete
 
Old 07-31-2023, 11:23 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,646
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
/boot/efi should be an empty directory. Its sole purpose is to act as a mountpoint for the EFI system partition (ESP). The permissions of this directory are usually rwxr-xr-x so that root can write to the partition when it is mounted.

Also check the entry for the ESP in /etc/fstab to make sure it isn't being mounted read-only.

If you have weird stuff in this directory even after the ESP has been cleared and recreated, then my guess is that you copied those files over when the ESP wasn't mounted and they went into the actual directory.

Last edited by hazel; 07-31-2023 at 11:25 AM.
 
Old 07-31-2023, 11:57 AM   #3
pcondost
LQ Newbie
 
Registered: Jul 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Hazel,
Thank you for the quick reply.

Here is the line in fstab:

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


Folder permissions:

bash-5.1$ cd /boot/efi
bash-5.1$ ls -l
total 4
drwxr-xr-x 5 root root 4096 Jul 30 12:30 EFI
bash-5.1$ cd EFI
bash-5.1$ ls -l
ls: cannot access 'Dell': Input/output error
total 8
d????????? ? ? ? ? ? Dell
drwxr-xr-x 2 root root 4096 Jul 29 02:19 Slackware
drwxr-xr-x 2 root root 4096 Jul 24 02:01 debian



And the directory structure:

bash-5.1$ cd /boot/efi
bash-5.1$ tree
.
└── EFI
├── Slackware
│** ├── elilo.conf
│** ├── elilo.efi
│** ├── initrd.gz
│** └── vmlinuz
└── debian
├── BOOTX64.CSV
├── fbx64.efi
├── grub.cfg
├── grubx64.efi
├── mmx64.efi
└── shimx64.efi

3 directories, 10 files

Using nano for an editor, when I open elilo.conf it shows in red highlight [ File '/boot/efi/EFI/Slackware/elilo.conf' is unwritable ]

That unknown Dell folder has me thinking something behind the scenes is going on. The partition I created was 256Mb for EFI. The one mounted is 511Mb

From cgdisk:
1 256.0 MiB EFI system partition

From df -h:
/dev/nvme0n1p1 511M 23M 489M 5% /boot/efi

Any help is greatly appreciated and anything needed from my end to help please let me know.

Thanks, Pete
 
Old 07-31-2023, 12:35 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Do a file system check on the partition.
 
Old 07-31-2023, 02:56 PM   #5
pcondost
LQ Newbie
 
Registered: Jul 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you again for helping. When I tried to run fsck on the partition (booted with the install USB stick to be safe) I kept receiveing an invalid seek error. Ended up copying the Slackware folder to my local disk and formatting the partition again. It is now showing the correct partition size and isn't read only anymore.

Thank you for helping me through this annoying issue.
 
Old 07-31-2023, 03:20 PM   #6
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Sometimes NVMe drives need to have their power settings tweaked to perform stabily.

Check out Post NVMe install power limiting.
 
Old 07-31-2023, 06:19 PM   #7
methinx
LQ Newbie
 
Registered: Dec 2011
Location: Michigan
Distribution: slackware 15
Posts: 20

Rep: Reputation: Disabled
bash-5.1$ ls -l
^
|
have you tried running as "#(root)" instead of $(standard user)?

-met-hinx-
 
Old 07-31-2023, 08:39 PM   #8
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
I set my nvme drive to the lowest power level, and it works flawlessly when laptop is plugged into ac, or when battery is above 10%.

But when it is less than 10%, I get read/write errors similar to what you are describing.
 
  


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
[SOLVED] Displaying the contents of buffers in a protected and non-protected critical section mashhype Programming 5 11-22-2010 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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