0

I am trying to fix a specific problem (this problem) and a solution that somebody else has suggested involves me re-naming a particular file under a live session of Ubuntu... But I cannot seem to make /boot/efi writable.

I have tried various suggestions I found online, but they all relate to an installed session and when I try the same with a live session, Ubuntu just whinges at me that it's "not allowed".

Another thing I tried, which someone suggested elsewhere is this, from root (/)...

Input:

fdisk -l

Output:

/dev/sdb1 (type is "empty")
/dev/sdb2 (type is "EFI")
/dev/sdb3 (type is Linux)

Input:

mkdir efi

Output:

mkdir: cannot create directory 'efi': Permission denied

Input:

sudo mount /dev/sdb2

Output:

mount: /dev/sdb2: can't find in /etc/fstab

What I want is to delete mmx64.efi and rename grubx64.efi as mmx64.efi (I figure if I am going to rename grubx64.efi as mmx64.efi, I might as well delete mmx64.efi first), like is discussed over here (my problem is different, but very, very similar and it has been suggested that this solution might fix my problem as well).

Gregory Opera
  • 2,639
  • 7
  • 33
  • 59
  • Have you tried unmounting /boot/efi and remounting it with the rw option? – Jos Apr 29 '20 at 10:36
  • I used sudo -o remount,rw '/' to make the filesystem writable (I need to delete one file and rename another, both under /cdrom/EFI/BOOT), I did not see an error, but it dropped to a new line, awaiting the next command... However, when I try to delete and re-name the respective files, it still tells me "read-only file system". – Gregory Opera Apr 29 '20 at 11:15
  • But /boot/efi is not the root partition. It is a separate partition. – Jos Apr 29 '20 at 11:21
  • The files I need to delete and remove are found there (I searched for them and it said that's where the files are)... It's the solution discussed here ( https://askubuntu.com/questions/1085550/cant-install-ubuntu-18-10-on-xps-15-efi-boot-mmx64-efi-not-found ) that I am trying, for a very similar problem. – Gregory Opera Apr 29 '20 at 11:32
  • In Terminal run sudo -H nautilus, Nautilus will open and if mounted /boot/efi will be writable. You could also install nautilus-admin. – C.S.Cameron Apr 29 '20 at 13:34
  • sudo -H nautilus opened Nautilus all right, but it didn't make /boot/efi writable... – Gregory Opera Apr 29 '20 at 13:47

1 Answers1

0

I was using the wrong commands, and another user elsewhere assisted me with identifying the correct commands...

cd /tmp sudo mkdir efi sudo mount /dev/sdb2 efi cd /tmp/efi ls

Once I changed to the relevant directory, I was then able to make the applicable changes: mv grubx64.efi mmx64.efi

Sadly, it did not resolve my problem, as I now have a similar - albeit slightly different - error message when I try to start my computer...

Failed to open |EFI\BOOT\grubx64.efi - Not found
Failed to load image \EFI\BOOT\grubx64.efi: Not found
start_image() returned Not found
Gregory Opera
  • 2,639
  • 7
  • 33
  • 59