You are not logged in.

#1 2017-02-07 07:45:35

mazhar
Member
From: Sanandaj
Registered: 2016-07-12
Posts: 60

[SOLVED] cannot boot arch after installing a dual boot ubuntu

Hi archers smile thanks for paying attention to my question.

Story: once upon a time an archer installs ubuntu alongside arch (manual partitioning, not ubuntu default options) and suddenly realizes that grub is changed somehow (i guess ubuntu installed it's own grub, because grub's background changed and ...). so after checking it out the archer erases ubuntu and logically loses bootloader, so he fires up a live usb arch image and follows wiki for installing grub UEFI on ESP, then he boots and see "grub>" prompt, so he boots the live usb again and uses the alternative method in wiki but the same result appears. now he installed a fedora so he can survive from not having an OS.

anyone can help him find and kill the dragon so he can rescure princess arch ? big_smile

Last edited by mazhar (2017-02-07 09:50:29)


We are archers, we live in dark to serve the light.

Offline

#2 2017-02-07 07:52:00

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

Re: [SOLVED] cannot boot arch after installing a dual boot ubuntu

Please post the output of:

# parted --list
# efibootmgr -v

Offline

#3 2017-02-07 07:58:02

mazhar
Member
From: Sanandaj
Registered: 2016-07-12
Posts: 60

Re: [SOLVED] cannot boot arch after installing a dual boot ubuntu

sudo parted --list

Model: ATA Micron_M600_MTFD (scsi)
Disk /dev/sda: 128GB
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   55.1GB  54.6GB  ext4            Linux filesystem
 4      55.1GB  119GB   63.5GB  ext4
 3      119GB   128GB   9386MB  linux-swap(v1)  Linux swap


Model: ATA HGST HTS541010A7 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size   File system  Name  Flags
 1      1049kB  500GB   500GB  ext4         SS    msftdata
 2      500GB   1000GB  500GB  ext4         FS    msftdata

sda2 is my arch and sda4 is fedora posting from now.

efibootmgr -v

BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000,0003
Boot0000* grub	HD(1,GPT,3bf16410-b116-4a22-9032-0a7fbdf2ee24,0x800,0x100000)/File(EFI\grub\grubx64.efi)
Boot0001* Fedora	HD(1,GPT,3bf16410-b116-4a22-9032-0a7fbdf2ee24,0x800,0x100000)/File(\EFI\fedora\shim.efi)
Boot0003* UEFI OS	HD(1,GPT,3bf16410-b116-4a22-9032-0a7fbdf2ee24,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)

Last edited by mazhar (2017-02-07 08:00:11)


We are archers, we live in dark to serve the light.

Offline

#4 2017-02-07 08:03:02

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

Re: [SOLVED] cannot boot arch after installing a dual boot ubuntu

Use the Arch live ISO image to re-install the GRUB bootloader, as per https://wiki.archlinux.org/index.php/GR … allation_2 — be sure to mount your ESP before you `arch-chroot` in.

Offline

#5 2017-02-07 08:06:44

mazhar
Member
From: Sanandaj
Registered: 2016-07-12
Posts: 60

Re: [SOLVED] cannot boot arch after installing a dual boot ubuntu

before arch-chroot?
i used to mount /dev/sda2 on /mnt then arch-chroot into it and mount /dev/sda1 (ESP) on /boot which is actually /mnt/boot because i chrooted into /mnt, now where do i mount ESP? in /boot and then installing grub --efi-directory=../boot ?

EDIT: also i deleted everything in /boot of my arch installation, is that a seroius problem?

Last edited by mazhar (2017-02-07 08:10:36)


We are archers, we live in dark to serve the light.

Offline

#6 2017-02-07 08:16:46

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

Re: [SOLVED] cannot boot arch after installing a dual boot ubuntu

mazhar wrote:

i used to mount /dev/sda2 on /mnt then arch-chroot into it and mount /dev/sda1 (ESP) on /boot which is actually /mnt/boot because i chrooted into /mnt, now where do i mount ESP? in /boot and then installing grub --efi-directory=../boot ?

Rather than attempt to decipher that rat's nest of a sentence, I will simply fetch my feeding spoon instead:

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt

EDIT: also i deleted everything in /boot of my arch installation, is that a seroius problem?

lol

From the chroot:

pacman -Syu linux grub # then install GRUB to the disk

Offline

#7 2017-02-07 08:30:04

mazhar
Member
From: Sanandaj
Registered: 2016-07-12
Posts: 60

Re: [SOLVED] cannot boot arch after installing a dual boot ubuntu

Head_on_a_Stick wrote:

Rather than attempt to decipher that rat's nest of a sentence, I will simply fetch my feeding spoon instead:

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
arch-chroot /mnt

big_smile I understand, my sentence needed to be decoded seriously. It totally makes sense now, thanks.

384 Mb with my turtle Internet takes a little bit too long, hope it works though, again thanks smile and also nice troubleshoot svg, it helps alot.


We are archers, we live in dark to serve the light.

Offline

#8 2017-02-07 09:50:10

mazhar
Member
From: Sanandaj
Registered: 2016-07-12
Posts: 60

Re: [SOLVED] cannot boot arch after installing a dual boot ubuntu

That was it! Just mounting esp before chroot solved it, however some error prevent startup but that's after grub, meaning it's SOLVED


We are archers, we live in dark to serve the light.

Offline

Board footer

Powered by FluxBB