You are not logged in.
So, I have recently removed my Ubuntu system and replaced it with Archlinux in a dual boot setup along with Windows 10.
Now. I think i have missed up Grub2 configuratin as I can only get a minimal grub2 screen in which I have to point it to the Root and then insert mod linux and then load the kernal. then initrd and finally boot.
I have (/boot, /home, /) Boot, Home and Root partition
$lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
|-sda1 8:1 0 1000M 0 part
|-sda2 8:2 0 260M 0 part /boot
|-sda3 8:3 0 1000M 0 part
|-sda4 8:4 0 128M 0 part
|-sda5 8:5 0 278.7G 0 part
|-sda6 8:6 0 496M 0 part
|-sda7 8:7 0 58.6G 0 part /
|-sda8 8:8 0 3.9G 0 part [SWAP]
|-sda9 8:9 0 84G 0 part /home
|-sda10 8:10 0 25G 0 part
`-sda11 8:11 0 12.8G 0 part
Which files from /boot is needed to help debug the problem ?
Offline
Why do you have so many partitions? :X
Is sda1 the EFISYS partition or /boot?
Offline
I think i have missed up Grub2 configuratin as I can only get a minimal grub2 screen in which I have to point it to the Root and then insert mod linux and then load the kernal. then initrd and finally boot.
https://wiki.archlinux.org/index.php/GR … ation_file, perhaps?
Jin, Jîyan, Azadî
Offline
beta990: I have so many partitions due to OEM windows. Some for recover and some for backups. Not entirly sure what they are for
Head_on_stick: Thanks for the link and i have already made the configuration file and i tried couple of different ways too.
#Here is more information
- I boot my system by doing the following
$ set root=(hd0,gpt7)
$ insmod linux
$ linux /boot/vmlinuz-linux root=/dev/sda7
$ initrd /boot/initramfs-linux.img
$ boot
# keep in mind i use autocomplete so i don't remember the exact filenames but its vmlinuz-linux or initfslinux.img
- I have boot partition which is EFI partition: sda2
$ls /boot
drwxr-xr-x 5 root root 16K Jan 1 1970 .
drwxr-xr-x 18 root root 4.0K Aug 27 00:21 ..
-rwxr-xr-x 1 root root 1 Oct 30 2015 BOOTNXT
drwxr-xr-x 42 root root 8.0K Jul 27 10:05 Boot
drwxr-xr-x 8 root root 8.0K Aug 27 00:07 EFI
-r-xr-xr-x 1 root root 391K Jul 1 05:09 bootmgr
drwxr-xr-x 6 root root 8.0K Aug 27 02:39 grub
$ ls /boot/EFI/
drwxr-xr-x 8 root root 8.0K Aug 27 00:07 .
drwxr-xr-x 5 root root 16K Jan 1 1970 ..
drwxr-xr-x 2 root root 8.0K Jul 27 10:05 Boot
drwxr-xr-x 2 root root 8.0K Aug 26 23:48 EFI
drwxr-xr-x 4 root root 8.0K Jul 27 10:03 Microsoft
drwxr-xr-x 2 root root 8.0K Aug 26 22:49 arch
drwxr-xr-x 3 root root 8.0K Aug 27 02:42 grub
drwxr-xr-x 3 root root 8.0K Aug 5 06:29 ubuntu
# The ubuntu folder is from the previous ubuntu instalation.
- Inside the partition i have 2 grub folders the generated config files are located as follows
----------------------------------------------------------------------------------
/boot/grub/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='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 985460d2-1f6e-454b-8c8b-e43c2d6b2ae0
else
search --no-floppy --fs-uuid --set=root 985460d2-1f6e-454b-8c8b-e43c2d6b2ae0
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
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 ###
### 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 ###
-----------------------------------------------------------------------------------------------------------------
/boot/EFI/grub/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='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7 985460d2-1f6e-454b-8c8b-e43c2d6b2ae0
else
search --no-floppy --fs-uuid --set=root 985460d2-1f6e-454b-8c8b-e43c2d6b2ae0
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
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 ###
### 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 ###
------------------------------------------------------------------------------------------------------
I am guessing the configuration file in the EFI folder is the one i should be using. But i can't tell whats the problem
Last edited by mrb101 (2016-08-28 20:42:39)
Offline
Please post the output of:
# efibootmgr -v
Please use code tags when posting terminal output and edit your post above to include these.
It looks like you have no menu entries in /boot/grub/grub.cfg
Also:
- I boot my system by doing the following
$ set root=(hd0,gpt7) $ insmod linux $ linux /boot/vmlinuz-linux root=/dev/sda7 $ initrd /boot/initramfs-linux.img $ boot
That would suggest that your kernel image is located on /dev/sda7 rather than /dev/sda2 and that /boot is (or was) *not* mounted to the ESP.
Please provide full details of your installation procedure.
Jin, Jîyan, Azadî
Offline
Sorry for not using the tags.
The output of efiboomgr -v
$ efibootmgr -v
BootCurrent: 0002
Timeout: 10 seconds
BootOrder: 0002,0000,0007,0005,0004,0001,0013,0014,0015,0016,0017,001B
Boot0000* ubuntu HD(2,GPT,0dff2e1e-d3ae-4716-af6e-b352f8e5307a,0x1f4800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0001 Linux Boot Manager HD(8,GPT,18874086-4c01-4de2-accf-51db2bafd4dc,0x232f2000,0x96000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0002* arch HD(2,GPT,0dff2e1e-d3ae-4716-af6e-b352f8e5307a,0x1f4800,0x82000)/File(\EFI\arch\grubx64.efi)
Boot0004 CentOS HD(2,GPT,0dff2e1e-d3ae-4716-af6e-b352f8e5307a,0x1f4800,0x82000)/File(\EFI\centos\shim.efi)
Boot0005 grub HD(2,GPT,0dff2e1e-d3ae-4716-af6e-b352f8e5307a,0x1f4800,0x82000)/File(\EFI\grub\grubx64.efi)
Boot0007* Windows Boot Manager HD(2,GPT,0dff2e1e-d3ae-4716-af6e-b352f8e5307a,0x1f4800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....N...............
Boot0010 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012 Diagnostic Splash FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0014* ATA HDD: TOSHIBA MQ01ABF050 PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)..bYVD.A...O.*..
Boot0015* USB HDD: hp v250w PciRoot(0x0)/Pci(0x14,0x0)/USB(4,0)3.!..3.G..A.....
Boot0016* USB CD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0017* PCI LAN: EFI Network (IPv4) PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54ee75590931,0)/IPv4(0.0.0.0:0<->0.0.0.0:0,0,0)x.J.+*.N.....=8.
Boot0018* PCI LAN: EFI Network (IPv6) PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(000000000000,0)/IPv6([::]:<->[::]:,0,0)x.J.+*.N.....=8.
Boot001A* Lenovo Recovery System PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(3,GPT,40e1820d-7fda-4516-80e8-7481659b09cd,0x276800,0x1f4000)/File(\EFI\Microsoft\Boot\lrsBootMgr.efi)
Boot001B* PCI LAN: EFI Network (IPv6) PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(54ee75590931,0)/IPv6([::]:<->[::]:,0,0)x.J.+*.N.....=8.
And to answer your second question:
I had centos first and then i installed ubuntu and used it for a while as dual boot with windows. I wanted to install archlinux again. so i installed Archlinux on the same root partition of ubuntu after formating that partition following the normal instalation steps mentioned in the documentation.
Offline
And to answer your second question:
I had centos first and then i installed ubuntu and used it for a while as dual boot with windows. I wanted to install archlinux again. so i installed Archlinux on the same root partition of ubuntu after formating that partition following the normal instalation steps mentioned in the documentation.
I meant that you should detail the exact commands that you used to install your Arch system.
Jin, Jîyan, Azadî
Offline
Can I find these in a log ?
Beacause i am not sure if i remember exactly the commands i used.
$ wifi-menu --> connected to internet
$ mkfs.ext4 /dev/sda7
$ mount /dev/sda7 /mnt
$ mount /dev/sda2 /mnt/boot
$ pacstrap /mnt base
$ genfstab -U /mnt >> /mnt/etc/fstab
$ arch-chroot /mnt
$ ln -s /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime
$ hwclock --systohc --utc
$ locale-gen
$ echo LANG=en_US.UTF-8 > /etc/locale.conf
$ echo each-arch > /etc/hostname
add the host name to my /etc/hosts
$ mkinitcpio -p linux
changed my password with passwd
$ pacman -S grub os-prober
$ grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch --boot-directory=/boot --debug
$ grub-mkconfig -o /boot/grub/grub.cfg
Note: I have used used more than one location. reinstalled and configured grub into. as the first time didn't work i tried a different time in a different location like
/boot/EFI
$ umount /mnt/boot
$ umount /mnt
$ reboot
The commands were like this.
Last edited by mrb101 (2016-08-29 19:19:03)
Offline
- I have boot partition which is EFI partition: sda2
$ls /boot drwxr-xr-x 5 root root 16K Jan 1 1970 . drwxr-xr-x 18 root root 4.0K Aug 27 00:21 .. -rwxr-xr-x 1 root root 1 Oct 30 2015 BOOTNXT drwxr-xr-x 42 root root 8.0K Jul 27 10:05 Boot drwxr-xr-x 8 root root 8.0K Aug 27 00:07 EFI -r-xr-xr-x 1 root root 391K Jul 1 05:09 bootmgr drwxr-xr-x 6 root root 8.0K Aug 27 02:39 grub $ ls /boot/EFI/ drwxr-xr-x 8 root root 8.0K Aug 27 00:07 . drwxr-xr-x 5 root root 16K Jan 1 1970 .. drwxr-xr-x 2 root root 8.0K Jul 27 10:05 Boot drwxr-xr-x 2 root root 8.0K Aug 26 23:48 EFI drwxr-xr-x 4 root root 8.0K Jul 27 10:03 Microsoft drwxr-xr-x 2 root root 8.0K Aug 26 22:49 arch drwxr-xr-x 3 root root 8.0K Aug 27 02:42 grub drwxr-xr-x 3 root root 8.0K Aug 5 06:29 ubuntu
I missed this because of the lack of code tags (that's my excuse & I'm sticking to it) -- you have no kernel image or initramfs on the EFI system partition.
You need to load up the Arch live ISO image, mount your partitions (especially the ESP) then use `arch-chroot` and re-install the linux package.
EDIT: Then reconfigure GRUB to generate the menu entries.
Last edited by Head_on_a_Stick (2016-08-30 07:47:23)
Jin, Jîyan, Azadî
Offline
Ill try that now and get back to you
and i apologies for not using the code tags before
thanks for your help
Offline