You are not logged in.
hi, im stuck after doing a clean install of windows in my new SSD, i have my arch linux partition on my old HDD.
arch linux in /dev/sdb4
esp in /dev/sda2
I booted in a live archiso in uefi and did the following instructions
i mounted everything
mount /dev/sdb4 /mnt
mount /dev/sda2 /mnt/boot/efi
arch-root /mntI installed grub in the SSD ESP partition
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archand i generated the grub cgf
grub-mkconfig -o /boot/grub/grub.cfgThe grub installation and the grub-mkconfig were done with no errors.
I also regenerated the fstab
here is some command output
blkid
/dev/sda1: LABEL="Recovery" UUID="3E5ADE345ADDE8A3" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b469a5b3-b7bb-4398-b3db-397df5256421"
/dev/sda2: UUID="62DE-40C3" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="2c914a4d-c4fc-46d8-a0ca-fc774b292361"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="91b2d517-847d-46e8-abfb-b0a94a24f439"
/dev/sda4: UUID="1A00EFDD00EFBDBF" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="dc358538-3d5c-40ae-8c50-3ad8f4e986e2"
/dev/sdb1: LABEL="OS_Install" UUID="9E367B62367B39FB" TYPE="ntfs" PARTUUID="49d14368-5506-f543-a51b-358962beb9aa"
/dev/sdb3: LABEL="Data" UUID="F878E81578E7D104" TYPE="ntfs" PARTUUID="4469e215-396d-954b-8127-f82d109627e0"
/dev/sdb4: LABEL="Arch Linux" UUID="12a50063-776f-4350-9254-98cf42303874" TYPE="ext4" PARTUUID="6300a512-6f77-5043-9254-98cf42303874"
/dev/sdb5: UUID="56e6c2c6-e69a-4d44-9568-adeb4649f1d3" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="51e619d5-a359-4338-a5b3-8a9dc1c6a50a"
/dev/sdc1: LABEL="EASY2BOOT" UUID="DC94-553D" TYPE="vfat" PARTUUID="0199f4f0-01"
/dev/sdc2: SEC_TYPE="msdos" LABEL="PTN2" UUID="350F-0375" TYPE="vfat" PARTUUID="0199f4f0-02"
/dev/loop0: TYPE="squashfs"mount
/dev/sdb4 on / type ext4 (rw,relatime)
/dev/sda2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8134516k,nr_inodes=2033629,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
tmp on /tmp type tmpfs (rw,nosuid,nodev)
airootfs on /etc/resolv.conf type overlay (rw,relatime,lowerdir=/run/archiso/sfs/airootfs,upperdir=/run/archiso/cowspace/persistent_EASY2BOOT/x86_64/upperdir,workdir=/run/archiso/cowspace/persistent_EASY2BOOT/x86_64/workdir,index=off)parted -l
Model: ATA SanDisk SSD PLUS (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 524MB 523MB ntfs Basic data partition hidden, diag
2 524MB 629MB 105MB fat32 EFI system partition boot, esp
3 629MB 646MB 16.8MB Microsoft reserved partition msftres
4 646MB 1000GB 1000GB ntfs Basic data partition msftdata
Model: ATA HGST HTS721010A9 (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 450MB 538GB 537GB ntfs msftdata
3 602GB 855GB 254GB ntfs msftdata
4 855GB 981GB 126GB ext4
5 981GB 986GB 4295MB linux-swap(v1) Linux swap
Model: Lexar USB Flash Drive (scsi)
Disk /dev/sdc: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 13.8GB 14.4GB 618MB primary fat32 boot, lba
2 32.0GB 32.0GB 32.3kB primaryand grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-12a50063-776f-4350-9254-98cf42303874' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=12a50063-776f-4350-9254-98cf42303874 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-12a50063-776f-4350-9254-98cf42303874' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-12a50063-776f-4350-9254-98cf42303874' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=12a50063-776f-4350-9254-98cf42303874 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-12a50063-776f-4350-9254-98cf42303874' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt4' --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 12a50063-776f-4350-9254-98cf42303874
else
search --no-floppy --fs-uuid --set=root 12a50063-776f-4350-9254-98cf42303874
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=12a50063-776f-4350-9254-98cf42303874 rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###when i boot it just skip to windows, even if i change the bcd with
bcdedit /set '{bootmgr}' path \EFI\grub\arch\grubx64.efithanks for your help, hope i was clear ![]()
Last edited by slyr (2018-08-27 01:03:06)
Offline
And the problem is....?
Offline
grub wont even boot, it just skips to windows
Offline
So your EFI boot manager is defaulting to Windows. Is Grub an option in the boot menu?
Offline
Have you disabled Fast Startup?
Offline
So your EFI boot manager is defaulting to Windows. Is Grub an option in the boot menu?
Yes, when i select it it still boot to windows
Offline
Have you disabled Fast Startup?
Yes fast boot and secure boot and fast startup
Last edited by slyr (2018-08-27 01:10:22)
Offline
Has this firmware ever booted grub or another linux boot loader under EFI successfully (excluding installation media)?
Last edited by loqs (2018-08-27 01:14:19)
Offline
Has this firmware ever booted grub or another linux boot loader under EFI successfully (excluding installation media)?
Yes actually, i successfully booted grub weeks ago but it did not want to boot my linux partition. When i selected the Arch linux option it booted to windows. Now grub wont even boot and skips to windows
Offline
im lost, i think ill just do a clean install and then copy all my old data
Offline
On my notebook i actually have 2 EFI files, which allow me to choose OS from UEFI boot list, maybe you can do the same and create a new entry with efibootmgr
Last edited by Skunky (2018-08-27 01:47:50)
Offline
On my notebook i actually have 2 EFI files, which allow me to choose OS from UEFI boot list, maybe you can do the same and create a new entry with efibootmgr
alright ill read about it thanks
Offline
Wow i nearly put my laptop on fire was trying so hard to figure out why in the hell grub was not booting. Figured that I only had to change a simple option in the bios
I had to change the UEFI hard disk drive BBS priorities so the first option to boot is Windows Boot Manager, and not the default wich was (Windows Boot Manager P1 : SSD 1TB ...) in my case.
Is this a common issue ? I think it is only apparent to MSI Laptops
So for the people who have an MSI laptop and windows just keep skipping grub even if it is installed you might want to change these settings in the bios.
Last edited by slyr (2018-09-02 04:05:40)
Offline