Can I mount efi partition using usb which manjaro boot drive

My main disk lost their efi partition management giving classic error

error: 'grub_calloc' symbol not found.
Entering recovery mode ...
grub rescue>

then I found a useful page

NAME   FSTYPE  FSVER    LABEL              UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0  squashf 4.0                                                                    0   100% /run/miso/
loop1  squashf 4.0                                                                    0   100% /run/miso/
loop2  squashf 4.0                                                                    0   100% /run/miso/
loop3  squashf 4.0                                                                    0   100% /run/miso/
sda                                                                                            
├─sda1 vfat    FAT32                       88A3-1B1C                                           
├─sda2 ext4    1.0                         3c601e33-9c69-4917-ba31-1c973076ce49                
├─sda3 ext4    1.0                         c3100a32-5b98-4246-abfc-70342fc1fdbf                
├─sda4 ext4    1.0                         1974023c-5c86-4884-a3ce-c8e99ca4bf9e                
└─sda5 swap    1                           9ccb7555-49a7-4a2b-aad5-c685ee6acc4f                
sdb    iso9660 Joliet E MANJARO_GNOME_2104 2021-05-06-11-34-55-00                     0   100% /run/miso/
├─sdb1 iso9660 Joliet E MANJARO_GNOME_2104 2021-05-06-11-34-55-00                              
└─sdb2 vfat    FAT12    MISO_EFI           F780-2E0C

then according the guide

mount /dev/sda1 /mnt/boot/efi
mount: /mnt/boot/efi: mount point does not exist.

What is the wrong I’m doing? I can’t do this?

That means the folder does not exist.

Create the folder first:

sudo mkdir -p  /mnt/boot/efi

(but normally there should be one if the system is EFI)

Yeah :slight_smile: , actually there is but I cant access it

gparted says about that /dev/sda1 and there is a (!)Exclamation mark /dev/sda1(!)

Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for fat32 file system support:  dosfstools, mtools.

I can’t erase it or format with gparted

1 Like

Normally, you would use manjaro-chroot, which will autodetect your EFI partition and mount it in the right place. The error message you’re showing says that the mountpoint does not exist ─ a mountpoint is a directory ─ and it is unclear whether you are doing this from within a chroot environment or not.

From within the live environment, issue the following two commands… :arrow_down:

sudo su -
manjaro-chroot -a

If you are presented with a choice, select your Manjaro root partition. Then reinstall GRUB. :arrow_down:

grub-install --recheck --no-rs-codes --modules="part_msdos part_gpt" --target="x86_64-efi" /dev/sda
update-grub
1 Like

I’m guessing that you (re-)installed or updated Microsoft Windows? If so, Windows resizes the EFI partition and, in the process, destroys it. You’re not the first member of this forum who’s run into that. :frowning_man:

1 Like

Actually, I installed gnome another disk(with efi). Then I need to go back it happend. There is no related MS thing.

1 Like
manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda4]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
mount: /mnt/boot/efi: special device /dev/disk/by-uuid/88A3-1B1C does not exist.
 --> mount: [/mnt/home]

then

grub-install --recheck --no-rs-codes --modules="part_msdos part_gpt" --target="x86_64-efi"
update-grub
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.9-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.9-x86_64.img
Found initrd fallback image: /boot/initramfs-5.9-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
1 Like

See if you can remove the flags from the /dev/sda1 partition, and then try deleting it. If it doesn’t work, then I would suggest deleting your swap partition and using that space to create a new EFI partition and a smaller swap partition. And if that does work, then set the boot or efi flag on the new EFI partition and proceed with the advice in post #4.

2 Likes

Interesting… what did you do before? What could have touched this partition? Maybe a physical HDD error?

Also here… check the UUID at your fstab file.

1 Like

Or, maybe when he installed the GNOME edition over the partition that was already there, he had booted in legacy BIOS mode rather than in UEFI mode?

1 Like

Oh that would be bad… really bad… :thinking:

This error:

as i remember displays often when someone installed grub in efi mode first and then “to repair it”, one installed (maybe be accident) grub in BIOS mode. Grub tries to write the MBR at the beginning and that could indeed destroy the first partition @maxemilian .

I guess you have to recreate the efi partition, correct the UUID at /etc/fstab, chroot and reinstall grub in efi mode like @Aragorn has described above.

1 Like

I didn’t get any error, Disks are completely different which I don’t ruin my main ssd. But all they connected to computer.
Just installed USB HDD manjaro gnome via boot flash memory.

I installed gpt efi second disk and not touched bios.
Now I doesn’t get grub error no longer. I’ll check shortly after

I would prefer to broke sdc hdd but it was so unexpected.

lsblk -f                                                                                  ✔ 
NAME   FSTYPE  FSVER    LABEL              UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0  squashf 4.0                                                                    0   100% /run/miso/
loop1  squashf 4.0                                                                    0   100% /run/miso/
loop2  squashf 4.0                                                                    0   100% /run/miso/
loop3  squashf 4.0                                                                    0   100% /run/miso/
sda                                                                                            
├─sda1 vfat    FAT32                       2823-3F67                                           
├─sda2 ext4    1.0                         3c601e33-9c69-4917-ba31-1c973076ce49                
├─sda3 ext4    1.0                         c3100a32-5b98-4246-abfc-70342fc1fdbf                
├─sda4 ext4    1.0                         1974023c-5c86-4884-a3ce-c8e99ca4bf9e                
└─sda5 swap    1                           9ccb7555-49a7-4a2b-aad5-c685ee6acc4f                
sdb    iso9660 Joliet E MANJARO_GNOME_2104 2021-05-06-11-34-55-00                     0   100% /run/miso/
├─sdb1 iso9660 Joliet E MANJARO_GNOME_2104 2021-05-06-11-34-55-00                              
└─sdb2 vfat    FAT12    MISO_EFI           F780-2E0C                                           
sdc                                                                                            
├─sdc1 vfat    FAT32    NO_LABEL           A382-044C                             299.1M     0% /run/media
├─sdc2 swap    1                           9d5fdcd7-045a-4904-a6d1-9f9928753508                
├─sdc3 ext4    1.0                         7974612a-f70c-44b4-8285-7d922667233e   18.9G    29% /run/media
├─sdc4 ext4    1.0                         2e2c9059-219f-4462-b8d4-2b0795d2daf3   90.2G     0% /run/media
└─sdc5 ext4    1.0                         9f06ad7e-720f-4e4f-9be8-104a644ca3de  307.7G     0% /run/media
sr0 

whatever I tried again to format sda1 then done but re formatted then I am sure somebody/sth kidding with me. look at this :smile:


Disk infected?

With what? GNU/Linux does not have any viruses in the wild.

Just having fun :smile: I fear to touch swap BTW :smile:

You appear to have two Fat32 partitions but neither have the right flags set linux needs esp and boot.

Sir, I removed deliberately according a suggestion above.

My fears walks over me :rofl: Its come true :upside_down_face: :joy_cat:

Do you know following means related sda1

sudo dosfsck -t -a -w /dev/sda1                                                                                                                ✔ 
fsck.fat 4.2 (2021-01-31)
/dev/sda1: 0 files, 1/76893 clusters
sudo fsck.vfat -r /dev/sda1                                                                                                                  6 ✘ 
fsck.fat 4.2 (2021-01-31)
/dev/sda1: 0 files, 1/76893 clusters

Its working sdb1 which mentioned hdd installed gnome shows more than above value

sudo dosfsck -t -a /dev/sdb1                                                                                                                   ✔ 
fsck.fat 4.2 (2021-01-31)
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
  65:01/00
  Not automatically fixing this.
Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.

*** Filesystem was changed ***
Writing changes.
/dev/sdb1: 6 files, 74/76643 clusters

*** Filesystem was changed ***
Writing changes.
/dev/sdb1: 6 files, 74/76643 clusters

Thank you so much guys @megavolt @Aragorn @robin0800 for any help
I’m able to manage this hard core grub error.

I took risk to gpt table repairing first then edited `sda1 with gnome external disk

sudo sfdisk -d /dev/sda > PT_sda.txt 

because I can’t manage to deal with reformat /sda1 as fat32 via booting disk. I don’t know exactly why.
First formatted sda1 as ext4 with gpart or sth else Gnome on external disk

lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0   301M  0 part 
├─sda2   8:2    0 195.3G  0 part 
├─sda3   8:3    0 163.9G  0 part 
├─sda4   8:4    0  98.3G  0 part 
└─sda5   8:5    0     8G  0 part 
sdb      8:16   0 465.8G  0 disk 
├─sdb1   8:17   0   300M  0 part /boot/efi
└─sdb2   8:18   0 465.5G  0 part /
sr0     11:0    1  1024M  0 rom  
[axe@axe-20aws2t12n ~]$ sudo sfdisk -d /dev/sda > PT_sda.txt 

sudo mkfs.vfat /dev/sda1
mkfs.fat 4.2 (2021-01-31)

now past to the booting usb memory.

NAME   FSTYPE   FSVER      LABEL                 UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0  squashfs 4.0                                                                         0   100% /run/miso/sfs/li
loop1  squashfs 4.0                                                                         0   100% /run/miso/sfs/mh
loop2  squashfs 4.0                                                                         0   100% /run/miso/sfs/de
loop3  squashfs 4.0                                                                         0   100% /run/miso/sfs/ro
sda                                                                                                  
├─sda1 ntfs                                      5D6495485AD3C278                                    
├─sda2 ext4     1.0                              3c601e33-9c69-4917-ba31-1c973076ce49                
├─sda3 ext4     1.0                              c3100a32-5b98-4246-abfc-70342fc1fdbf                
├─sda4 ext4     1.0                              1974023c-5c86-4884-a3ce-c8e99ca4bf9e   12.1G    82% /run/media/manja
└─sda5 swap     1                                9ccb7555-49a7-4a2b-aad5-c685ee6acc4f                
sdb    iso9660  Joliet Ext MANJARO_CINNAMON_2104 2021-05-06-21-03-57-00                     0   100% /run/miso/bootmn
├─sdb1 iso9660  Joliet Ext MANJARO_CINNAMON_2104 2021-05-06-21-03-57-00                              
└─sdb2 vfat     FAT12      MISO_EFI              3F1C-56CD                                           
sr0

step 2

sudo su
mount /dev/sda1 /run/media/manjaro/1974023c-5c86-4884-a3ce-c8e99ca4bf9e/mnt/boot/efi/
manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda4]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
mount: /mnt/boot/efi: special device /dev/disk/by-uuid/23426fd0-0da4-4d80-bbb4-c72d3e3fa473 does not exist.
 --> mount: [/mnt/home]

Format sda1 as Fat32
sudo mkfs.msdos -F 32 /dev/sda1
I’ll change wrong UUDI on fstab file with correct one
sudo xed /run/media/manjaro/1974023c-5c86-4884-a3ce-c8e99ca4bf9e/etc/fstab

contune to grub page and applinig steps

su
pacman -Syu grub
[manjaro-cinnamon /]# grub-install --force --target=i386-pc --recheck --boot-directory=/boot /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
grub-mkconfig -o /boot/grub/grub.cfg
...

in step 9999

manjaro-chroot /mnt /bin/bash
mount: /mnt/proc: mount point does not exist.
==> ERROR: failed to setup API filesystems in chroot /mnt

no care contune
restart

Valaaaaaa :metal: It was great fat32 fantasy :grin:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.