Two empty ubuntus in my boot order (no Manjaro)

So, I am quite new with Manjaro and Linux in generel. This might be a stupid question (you're now warned)

It started with my Asus G750jm, from 2011, I wanted to install Linux on it and having that and Windows on it, as Windows is still my main. After a while after sucsessfully installing it I understood that it wasn't the best for gaming, that was Manjaro. That's why I decided on uninstalling Ubuntu and installing Manjaro.

I made a live USB with Win32 imager (I can't remember the name exactly). I booted my laptop with that and installed Manjaro by replacing the Ubuntu with Manjaro. After that I can't boot my laptop. It can't only boot to Manjaro but it boots into Grub (I don't know what to do with that), and when I try to change my boot order I can't see a Manjaro to select, and I see two Ubuntus which seems to be empty.

Please help me. I have tried to look all over the internet to find answers but I am not able to.

(Please tell me if you need more information)

can you return , with usb install
open a terminal

inxi -Fxxxz
fdisk -l 
parted -l 

Use this.

And you go to the grub prompt from your " but it boots into Grub ".

This is what I get in return.
I have to say the screenshot capabilities are incredible :slight_smile:

edit: Using the live usb

It may be better to copy and paste the results instead of screenshots. I don't know the tags to format the text on the forum though.

1 Like

you can use
< > with code and /code < code > and < /code > ( no space )
can you return

sudo fdisk -l
sudo parted -l
1 Like

<

[manjaro@manjaro-gnome ~]$ fdisk -l
fdisk: cannot open /dev/loop0: Permission denied
fdisk: cannot open /dev/loop1: Permission denied
fdisk: cannot open /dev/loop2: Permission denied
fdisk: cannot open /dev/loop3: Permission denied
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
[manjaro@manjaro-gnome ~]$ parted -l
[manjaro@manjaro-gnome ~]$
>

Use sudo before the commands to run as root. The root password for Manjaro live usb is "manjaro"

1 Like
[manjaro@manjaro-gnome ~]$ sudo fdisk -l
Disk /dev/loop0: 75.4 MiB, 79060992 bytes, 154416 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 312.6 MiB, 327819264 bytes, 640272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 1000.1 MiB, 1048686592 bytes, 2048216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 475.5 MiB, 498569216 bytes, 973768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SanDisk SD5SE225
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 81A804AF-F03F-4191-947A-8A229B68A3DD

Device         Start       End   Sectors  Size Type
/dev/sda1       2048    206847    204800  100M EFI System
/dev/sda2     206848   2050047   1843200  900M Windows recovery environment
/dev/sda3    2050048   2312191    262144  128M Microsoft reserved
/dev/sda4    2312192 202352639 200040448 95.4G Microsoft basic data
/dev/sda5  202352640 368862186 166509547 79.4G Microsoft basic data
/dev/sda6  368862187 483340287 114478101 54.6G Linux filesystem
/dev/sda7  483340288 500118158  16777871    8G Linux swap




Disk /dev/sdb: 15.1 GiB, 16248864768 bytes, 31736064 sectors
Disk model: USB Flash Disk  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot   Start     End Sectors  Size Id Type
/dev/sdb1  *         64 3936807 3936744  1.9G  0 Empty
/dev/sdb2       3936808 3944999    8192    4M ef EFI (FAT-12/16/32)
[manjaro@manjaro-gnome ~]$ sudo parted -l
Model: ATA SanDisk SD5SE225 (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  106MB   105MB   fat32           EFI system partition          boot, esp
 2      106MB   1050MB  944MB   ntfs            Basic data partition          hidden, diag
 3      1050MB  1184MB  134MB                   Microsoft reserved partition  msftres
 4      1184MB  104GB   102GB   ntfs            Basic data partition          msftdata
 5      104GB   189GB   85.3GB  ntfs            Basic data partition          msftdata
 6      189GB   247GB   58.6GB  ext4
 7      247GB   256GB   8590MB  linux-swap(v1)


Model: General USB Flash Disk (scsi)
Disk /dev/sdb: 16.2GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      2016MB  2020MB  4194kB  primary               esp


[manjaro@manjaro-gnome ~]$ 

so you boot in EFI
can your return

sudo efibootmgr 
[manjaro@manjaro-gnome ~]$ sudo efibootmgr
BootCurrent: 0014
Timeout: 2 seconds
BootOrder: 0014,0002,0000,0012,0001,0015,0013
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0002* EFI
Boot0012* ubuntu
Boot0013* CD/DVD Drive 
Boot0014* UEFI: General USB Flash Disk 1100
Boot0015* Hard Drive 
[manjaro@manjaro-gnome ~]$ 

I don't understand what you say :grin:

you can remove for ubuntu

sudo efibootmgr -b 002 -B
sudo efibootmgr -b 012 -B

**manjaro entry is missing 
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/sda -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"

Should I just copy and paste this into a terminal?

not the commentary "manjaro entry is missing"
you can paste one by one and check return

[manjaro@manjaro-gnome ~]$ sudo efibootmgr -b 002 -B
BootCurrent: 0014
Timeout: 2 seconds
BootOrder: 0014,0000,0012,0001,0015,0013
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0012* ubuntu
Boot0013* CD/DVD Drive 
Boot0014* UEFI: General USB Flash Disk 1100
Boot0015* Hard Drive 
[manjaro@manjaro-gnome ~]$ sudo efibootmgr -b 012 -B
BootCurrent: 0014
Timeout: 2 seconds
BootOrder: 0014,0000,0001,0015,0013
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0013* CD/DVD Drive 
Boot0014* UEFI: General USB Flash Disk 1100
Boot0015* Hard Drive 
[manjaro@manjaro-gnome ~]$ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
grub-install: error: failed to get canonical path of `/boot/efi'.
[manjaro@manjaro-gnome ~]$ sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
cp: cannot stat '/boot/grub/x86_64-efi/core.efi': No such file or directory
[manjaro@manjaro-gnome ~]$ sudo efibootmgr -c -d /dev/sda -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"
BootCurrent: 0014
Timeout: 2 seconds
BootOrder: 0002,0014,0000,0001,0015,0013
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0013* CD/DVD Drive 
Boot0014* UEFI: General USB Flash Disk 1100
Boot0015* Hard Drive 
Boot0002* manjaro
[manjaro@manjaro-gnome ~]$ 

I can see that it removed one of the ubuntu and the EFI

sudo efibootmgr -b 001 -B

yes you are using /boot/efi from USB not from your disk

sudo manjaro-chroot -a ( if one line reply 1 or enter )
 ** all commands are in root **
cat /etc/fstab  ( your sda with /boot/efi UUID must appears here )
lsblk -fs or lsblk -l ( return UUID )
** if /boot/efi not in /etc/fstab sda ( UUID missing , add 1 line )
nano /etc/fstab and add then save
*** wait when is done 

example for /boot/efi

 # /etc/fstab: static file system information.
 #
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>                           <mount point>  <type>  <options>  <dump>  <pass>
UUID=E05B-8683 				  /boot/efi      vfat    defaults,noatime 0       2
UUID=aa940861-9549-4d9c-8a95-6e556d073aa5 /              ext4    defaults,noatime 0       1

I might be misunderstanding you or doing something wrong, but I tried to find what sda my efi appeared in:

[manjaro@manjaro-gnome ~]$ blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sda1: LABEL="SYSTEM" UUID="BC2A-DE6A" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="7a5524a6-51d9-416e-adf2-ccd2786e1926"
/dev/sda2: LABEL="Recovery" UUID="CA1439901439808D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="91d20bc6-5c33-4a2a-9b16-9ec19c2f9df6"
/dev/sda4: LABEL="OS" UUID="0A78A19278A17CD7" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="9e9d1648-6c95-418e-9b6f-94e62939d74c"
/dev/sda5: LABEL="Data3" UUID="2C123F06123ED514" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6911a038-c05e-4295-a500-ac565416da69"
/dev/sda6: UUID="d8fd0cbb-9f92-4fe1-af19-f4709702a146" TYPE="ext4" PARTUUID="f8582432-e803-4a9a-b187-c683df61ed99"
/dev/sda7: UUID="c6233464-0e63-4296-9d71-494afb8a0214" TYPE="swap" PARTUUID="86ec9974-d24f-4adf-b80f-06b728a65b27"
/dev/sdb1: UUID="2019-03-12-10-29-49-00" LABEL="M1804" TYPE="iso9660"
/dev/sdb2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="88F5-8C2D" TYPE="vfat"

So I then typed (in root):

[manjaro-gnome /]# cat /ect/fstab/sdb2

and got, might not surprise you, this:

cat: /ect/fstab/sdb2: No such file or directory

I used the sdb2 because it was the only one with EFI being mentioned.

sdb is your USB boot install with /boot/efi
sda is what we need to add on disk sda for /etc/fstab

in order to do that , reboot with USB install ( only EFI USB install not your disk )
open a terminal


manjaro-chroot -a  ( if one line reply 1 or enter )
cat /etc/fstab
nano /etc/fstab  ( add if missing )
# <file system>                           <mount point>  <type>  <options>  <dump>  <pass>
UUID=BC2A-DE6A 				  /boot/efi      vfat    defaults,noatime 0       2

and create mkdir /boot/efi
after this 
exit ( leave chroot )
then
 manjaro-chroot -a  ( if one line reply 1 or enter )

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/sda -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"
exit ( for leaving chroot , musta to be done )

Do a normal install and then reboot?
or
Go to terminal right away?

I have noticed that anything I do on with the USB won't be saved anywhere.

yes we have to use chroot