You are not logged in.

#1 2015-03-28 02:10:50

theDoorman
Member
Registered: 2015-03-28
Posts: 7

dual boot doesn't work [SOLVED]

So this is my second attempt at installing arch, in my first I made a second EFI system partition and that messed a loth of things up, so I removed all of the previous partitions and started again. and I followed this guide (https://wiki.archlinux.org/index.php/beginners%27_guide) the beginner's guide.(I hope I got it down perfectly)

and I finished everything and when I try to reboot it takes me back to windows, I don't see gummiboot at all.

Sorry in advance if I act like a noob.

Thanks,

Last edited by theDoorman (2015-03-29 23:54:31)

Offline

#2 2015-03-28 03:09:10

eduardojunio
Member
From: World Wide Web
Registered: 2014-09-22
Posts: 20
Website

Re: dual boot doesn't work [SOLVED]

"GRUB is a more complete bootloader, useful if you run into problems with Gummiboot.", try GRUB. big_smile


CODE IS POETRY.

Offline

#3 2015-03-28 03:24:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dual boot doesn't work [SOLVED]

Rod Smith wrote:

GRUB, which is about the most difficult-to-configure boot loader ever devised by human minds.

Recommending someone install grub to solve a problem is not necessarily helping...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2015-03-28 04:19:58

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: dual boot doesn't work [SOLVED]

Can you post your /boot/loader/loader.conf file?
According to the gummiboot homepage, if you haven't set up the timer, you won't see the menu and it will boot the default entry is executed right away.  If you press the spacebar, or any other key when it boots, you should see the menu.

https://wiki.archlinux.org/index.php/Gummiboot
http://freedesktop.org/wiki/Software/gummiboot/

Now, as it boots up directly to windows, that suggests 2 things to me.
1) Windows is the default
2) You didn't actually install gummiboot to the masterboot record.

For option 1, I would suggest configuring the timeout specifically and gummiboot generally to your liking.
For option 2, the archwiki link that I just posted deals with that at the bottom under troubleshooting.  It says what to do if the command gummiboot install fails.

HTH


Knute

Offline

#5 2015-03-28 09:09:04

theDoorman
Member
Registered: 2015-03-28
Posts: 7

Re: dual boot doesn't work [SOLVED]

here's loader.conf (/boot/loader/loader.conf)

 timeout 8
 default arch

and arch.conf (/boot/loader/entries/arch.conf)

 title 	Arch linux
 linux	/vmlinuz-linux
 initrd	/initramfs-linux.img
 options	root=/dev/sda5 rw

Offline

#6 2015-03-28 09:15:12

theDoorman
Member
Registered: 2015-03-28
Posts: 7

Re: dual boot doesn't work [SOLVED]

I don't know if you need it or not, but here's some other files

fstab (/etc/fstab)

# /dev/sda5
UUID=148373fa-1ccf-455f-a05d-5898c3ab43b2	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/sda2 LABEL=ESP
UUID=9A88-DA90      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

# /dev/sda8
UUID=44e42fc5-252e-4b38-975b-ce7074751637	/home     	ext4      	rw,relatime,data=ordered	0 2

# /dev/sda7
UUID=2b8e822b-7f06-4435-986c-5007ffa0f907	none      	swap      	defaults  	0 0

Offline

#7 2015-03-28 09:15:45

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: dual boot doesn't work [SOLVED]

Well, since you have the timeout and the default is not windows, that means that gummiboot is probably not installed to the mbr.  Have you tried reinstalling gummiboot like it says in the archwiki page?


Knute

Offline

#8 2015-03-28 10:49:12

theDoorman
Member
Registered: 2015-03-28
Posts: 7

Re: dual boot doesn't work [SOLVED]

Knute wrote:

Well, since you have the timeout and the default is not windows, that means that gummiboot is probably not installed to the mbr.  Have you tried reinstalling gummiboot like it says in the archwiki page?

nope that doesn't work

gummiboot --path=/boot install

that's what I used after

gummiboot remove

there is something though
I run efibootmgr and this comes up

BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 2001,0000,2002,2003
Boot0000* Windows Boot Manager
Boot0001* USB HDD: USB DISK 2.0
Boot0002* Linux Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

and then if i run

 efibootmgr -o 1,2,0 

this comes up

BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 0001,0002,0000
Boot0000* Windows Boot Manager
Boot0001* USB HDD: USB DISK 2.0
Boot0002* Linux Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

but.. you guessed it windows still boots first
and for some reason when I chroot back and check efibootmgr it comes back with the same order as before

Offline

#9 2015-03-28 10:50:04

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: dual boot doesn't work [SOLVED]

Boot back in to the LiveCD (in UEFI mode), and make sure that gummiboot has an entry in

efibootmgr

.

Paste the output of efibootmgr here (using a pastebin service if necessary).

EDIT: Mind reader. o_o

EDIT2: I suspect that you have the same firmware problem described in this thread: http://forums.fedoraforum.org/showthread.php?t=288802

Can you modify the boot order in the BIOS?

Last edited by WorMzy (2015-03-28 10:57:15)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2015-03-28 12:09:13

theDoorman
Member
Registered: 2015-03-28
Posts: 7

Re: dual boot doesn't work [SOLVED]

yea I can change my boot order,

2015_03_28_22_58_33.jpg

that's what it looks like.

Offline

#11 2015-03-28 12:52:08

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: dual boot doesn't work [SOLVED]

Weird. I'd expect there to be an entry in the list for 'Linux Boot Manager', since 'Windows Boot Manager' is explicitly listed.

There may be a BIOS update available that fixes the boot order problem, but if not, all I can suggest is to try the Fedora forums workaround.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#12 2015-03-28 14:03:06

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: dual boot doesn't work [SOLVED]

Does your /boot partition have the bootable flag set?


Knute

Offline

#13 2015-03-28 14:03:28

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

Re: dual boot doesn't work [SOLVED]

Will entry number 2 in the firmware (BIOS) screen you have posted boot the gummiboot loader?

If not, try creating an NVRAM entry manually using:

# efibootmgr -d /dev/sda -p 2 -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sda5 rw initrd=/initramfs-linux.img"

One of my laptops will boot the Windows boot manager automatically even if the order is changed or the Windows entry removed using `efibootmgr` (or `bcdedit` from Windows).

The only solution I have found is to rename Windows folder so that so my firmware can't "find" it:

# mv /boot/Microsoft /boot/hidden

Then I created a gummiboot menu entry for Windows manually at /boot/loader/entries/windows.conf

title   Windows
efi     /hidden/Boot/bootmgfw.efi

If entry number 2 in your firmware (BIOS) menu won't boot the gummiboot loader, you can make this entry manually using:

# efibootmgr -d /dev/sda -p 2 -c -L "Windows" -l /hidden/Boot/bootmgfw.efi

EDIT: Once the /boot/Microsoft folder is re-named, gummiboot should install normally and will persist in the NVRAM entries so you may not need to use the `efibootmgr` commands (YMMV).

Last edited by Head_on_a_Stick (2015-03-28 14:07:04)

Offline

#14 2015-03-29 23:32:36

theDoorman
Member
Registered: 2015-03-28
Posts: 7

Re: dual boot doesn't work [SOLVED]

Head_on_a_Stick wrote:

The only solution I have found is to rename Windows folder so that so my firmware can't "find" it:

# mv /boot/Microsoft /boot/hidden

Then I created a gummiboot menu entry for Windows manually at /boot/loader/entries/windows.conf

title   Windows
efi     /hidden/Boot/bootmgfw.efi

That seems to have fixed it, I found bootmgfw.efi on my system and made the /Microsoft /hidden
and then a reboot brought me to gummiboot and then the windows entry and I'm done

If i got this correct then I guess the problem I had was becasue I had the same EFI sys partition for arch and windows

thanks to everyone that helped.

Offline

#15 2015-03-29 23:35:47

theDoorman
Member
Registered: 2015-03-28
Posts: 7

Re: dual boot doesn't work [SOLVED]

Sorry I am a complete noob how do I set this as solved

Offline

#16 2015-03-29 23:38:43

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: dual boot doesn't work [SOLVED]

theDoorman wrote:

Sorry I am a complete noob how do I set this as solved

big_smile

Edit your first post and then you can change the title. 

big_smile

Live and learn.


Knute

Offline

#17 2015-03-30 07:15:17

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

Re: dual boot doesn't work [SOLVED]

theDoorman wrote:

If i got this correct then I guess the problem I had was becasue I had the same EFI sys partition for arch and windows

No, the problem is that your firmware has been pre-programmed to automatically boot $ESP\Microsoft\Boot\bootmgfw.efi (and automatically re-create an NVRAM entry for this if it is manually deleted) in an attempt to "help" you...

Sharing the ESP is the recommended approach.

Offline

Board footer

Powered by FluxBB