You are not logged in.

#1 2016-05-19 16:16:14

arghya
Member
Registered: 2016-05-14
Posts: 6

Set Arch Linux as default Grub Entry and stop loading Grub prompt

I have Arch Linux installed in sda2 while my grub is installed in sda1.
Whenever I boot, I’m sent to the Grub terminal with the 'grub>' prompt.
To boot into Arch, I use the following commands:

set root=(hd0,1) 
chainloader (${root})/efi/arch_grub/grubx64.efi
boot 

This boots to the default Grub Screen from where i can choose Linux or Linux-LTS and then it boots into the system.

It is quite inconvenient to type these commands every time I boot. How can I boot into the Grub Screen directly as it was in the beginning?

P.S.- I’m using UEFI boot mode and GPT partition.

Offline

#2 2016-05-19 19:44:41

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

arghya wrote:

my grub is installed in sda1

Why have you installed GRUB to a partition?

This is not recommended, see https://wiki.archlinux.org/index.php/GR … nless_disk

Please list the exact commands you used to install the bootloader to the disk.

Please also post the output of:

# parted -l
# efibootmgr -v

These commands can be run from any GUN/Linux live ISO image.

Have you seen https://wiki.archlinux.org/index.php/GRUB#UEFI_systems?

Offline

#3 2016-05-19 20:19:02

arghya
Member
Registered: 2016-05-14
Posts: 6

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

Head_on_a_Stick wrote:
arghya wrote:

my grub is installed in sda1

Why have you installed GRUB to a partition?

This is not recommended, see https://wiki.archlinux.org/index.php/GR … nless_disk

Please list the exact commands you used to install the bootloader to the disk.

I don't remember the commands used to install as it was quite a while ago. But I can say I followed the wiki.
sda1 is my efi partition, that's what I meant to say. I had installed the grub in sda and not sda1 most probably as it used to work till yesterday.
I beg your pardon as I find UEFI very confusing.

Please also post the output of:

# parted -l
# efibootmgr -v

These commands can be run from any GUN/Linux live ISO image.

Is there any way I can get the output of these within the installed OS? Else I'll have to make a live ISO image again.

Of course. I read it all before posting in here.

Offline

#4 2016-05-19 21:44:32

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

arghya wrote:

Is there any way I can get the output of these within the installed OS? Else I'll have to make a live ISO image again.

You can run the commands from the installed system as well if you want.

Offline

#5 2016-05-20 07:32:34

arghya
Member
Registered: 2016-05-14
Posts: 6

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

[root@Arch arghya]# parted -l
Model: ATA TOSHIBA MQ01ABF0 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                  Flags
 1      1049kB  538MB   537MB   fat32           EFI System Partition  boot, esp
 2      538MB   66.4GB  65.9GB  ext4
 7      66.4GB  174GB   107GB   ntfs                                  msftdata
 6      174GB   281GB   107GB   ntfs                                  msftdata
 5      281GB   389GB   107GB   ntfs                                  msftdata
 4      389GB   496GB   107GB   ntfs                                  msftdata
 3      496GB   500GB   4167MB  linux-swap(v1)


Model: hp v112b (scsi)
Disk /dev/sdb: 8087MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  8087MB  8086MB  primary  ntfs         boot


[root@Arch arghya]# efibootmgr -v
bash: efibootmgr: command not found

These are the output of the commands.

Last edited by arghya (2016-05-20 07:35:41)

Offline

#6 2016-05-21 21:30:34

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

arghya wrote:
[root@Arch arghya]# efibootmgr -v
bash: efibootmgr: command not found

You need to:

# pacman -S efibootmgr

Then try again:

# efibootmgr -v

Offline

#7 2016-05-21 22:10:11

arghya
Member
Registered: 2016-05-14
Posts: 6

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

Here's the output:

[arghya@Antergian ~]$ efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000,2001,2002,2003
Boot0000* Windows Boot Manager	HD(1,GPT,d3e54720-d6e3-4b03-883e-9df9facbf530,0x800,0x100000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0001* Ubuntu	HD(1,GPT,d3e54720-d6e3-4b03-883e-9df9facbf530,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)RC
efibootmgr: Could not parse device path: No such file or directory
Boot2001* EFI USB Device

As far as i understood from the output, It seems to contain the path of Windows and Ubuntu efi files. Both of the OS doesn't exist and that's why it goes to the terminal. How can I add the EFI file of my current OS in the menu and delete the others maybe? Or do i need to do something else?

Last edited by arghya (2016-05-21 22:18:38)

Offline

#8 2016-05-21 22:32:18

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

arghya wrote:

Or do i need to do something else?

Install GRUB to your hard drive.

See https://wiki.archlinux.org/index.php/GR … allation_2

Offline

#9 2016-05-25 19:29:26

stingA0815
Member
From: Löffingen, Germany
Registered: 2016-04-21
Posts: 31

Re: Set Arch Linux as default Grub Entry and stop loading Grub prompt

To answre your question, have a look at /etc/default/grub

GRUB_DEFAULT=0
GRUB_TIMEOUT=25

should be the interesting one

Last edited by stingA0815 (2016-05-25 19:31:19)

Offline

Board footer

Powered by FluxBB